{"id":15576568,"url":"https://github.com/abn/pycharm-namespace-package-issue","last_synced_at":"2026-04-20T23:32:00.252Z","repository":{"id":149541989,"uuid":"431470697","full_name":"abn/pycharm-namespace-package-issue","owner":"abn","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-24T12:28:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T05:25:32.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-24T12:12:52.000Z","updated_at":"2021-11-24T12:28:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7103290-c23a-4942-9424-2049649e3706","html_url":"https://github.com/abn/pycharm-namespace-package-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abn/pycharm-namespace-package-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fpycharm-namespace-package-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fpycharm-namespace-package-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fpycharm-namespace-package-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fpycharm-namespace-package-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abn","download_url":"https://codeload.github.com/abn/pycharm-namespace-package-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Fpycharm-namespace-package-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32070628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:52:22.474Z","updated_at":"2026-04-20T23:32:00.223Z","avatar_url":"https://github.com/abn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproducer for namespace package issue in PyCharm\n\n### Steps to reproduce\nOnce you have cloned the repository you can set up the environment as follows.\n\n#### Initialise the virtual environment\n```shell\n# this ensures the virtual environment is created in the project directory\npoetry config --local virtualenvs.in-project true\n# this sets the environment up with all the required dependencies\npoetry install\n```\n\n#### Open the `namespace` project in PyCharm\nOnce opened do the following.\n\n1. Set the interpreter if not already detected (`namespace/.venv/bin/python`).\n2. Mark `src` as source directory for the project.\n\n### Expected behaviour\nThe file at [`namespace/src/namespace/hello.py`](namespace/src/namespace/hello.py) should not have any inspection errors.\n\n### Actual behaviour\nThe file [`namespace/src/namespace/hello.py`](namespace/src/namespace/hello.py) has inspection errors, like shown here.\n\n```\nCannot find reference 'core' in '__init__.py'\n```\n\nThis is because PyCharm does not correctly detect `namespace-core` in the active environment when the `__init__.py` is \nomitted in the `namespace-core` and a source directory is marked in `namespace`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Fpycharm-namespace-package-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabn%2Fpycharm-namespace-package-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Fpycharm-namespace-package-issue/lists"}