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

namespace issue when building wheel #161

Closed
zacharyburnett opened this issue May 20, 2024 · 0 comments · Fixed by #160
Closed

namespace issue when building wheel #161

zacharyburnett opened this issue May 20, 2024 · 0 comments · Fixed by #160
Labels

Comments

@zacharyburnett
Copy link
Collaborator

zacharyburnett commented May 20, 2024

Description

when installing this package from a wheel, doing import stsci.tools fails. However, importing tools succeeds.

Expected behavior

❯ pip install stsci.tools
❯ python -c "import stsci.tools"

Actual behavior

❯ pip install stsci.tools
❯ python -c "import stsci.tools"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'stsci.tools'
❯ python -c "import tools"

Steps to Reproduce

  1. create an empty environment
  2. install stsci.tools from a wheel (build one with python -m build . or install from PyPI pip install stsci.tools)
  3. move to a directory away from the source code
  4. attempt to import stsci.tools:
python -c "import stsci.tools"

System Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant