Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgutil.get_data() get confused by local modules for module installed with pip install --editable #118383

Open
user202729 opened this issue Apr 29, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@user202729
Copy link

user202729 commented Apr 29, 2024

Bug report

Bug description:

First execute in bash:

git clone https://github.com/pyx-project/pyx
cd pyx
pip install -e .
cd pyx  # important! Now the directory is inside two layers of /pyx
python

Then execute in Python:

import pkgutil
pkgutil.get_data("pyx", "data/pyxrc")

Return value is None.

Note that the return value would not be None if either -e or the second cd is omitted --- which shows that the data file is correctly available.

CPython versions tested on:

3.11

Operating systems tested on:

No response

@user202729 user202729 added the type-bug An unexpected behavior, bug, or error label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant