Skip to content

Conversation

@esafak
Copy link
Contributor

@esafak esafak commented Aug 16, 2025

The relative import of .info does not work when py_info is invoked as a script:

ModuleNotFoundError No module named 'virtualenv.discovery.info' at .venv/lib/python3.9/site-packages/virtualenv/discovery/py_info.py:663 in _possible_base

Indeed, it used to be imported absolutely.

Fixes #2955

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation
The relative import of .info does not work when py_info is invoked as a script: ```python ModuleNotFoundError No module named 'virtualenv.discovery.info' at .venv/lib/python3.9/site-packages/virtualenv/discovery/py_info.py:663 in _possible_base ``` Indeed, it used to be imported absolutely. Fixes pypa#2955 * Update changelog entry for 2944.bugfix.rst to use getattr. * Update changelog entry for 2774.feature.rst for Windows python3.exe. * Add new changelog entry for 2955.bugfix.rst regarding absolute import. * Fix absolute import of fs_is_case_sensitive in py_info.py. Signed-off-by: Emre Şafak <3928300+esafak@users.noreply.github.com>
@gaborbernat gaborbernat merged commit 66d793e into pypa:main Aug 18, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants