You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ultimately, hatch is not properly adding the installed package to the the PATH. This is incredibly annoying and means that I can only run the program from the my-package/src folder, otherwise I constantly get a Module not found error.
(.venv) users-MacBook-Pro:my-packaye user$ cd src
(.venv) users-MacBook-Pro:src user$ test
Hello, world!
(.venv) users-MacBook-Pro:src user$ cd ..
(.venv) users-MacBook-Pro:my-package user$ test
Traceback (most recent call last):
File "/Users/user/Documents/dev/my-package/.venv/bin/test", line 5, in<module>
from my_package.main import main
ModuleNotFoundError: No module named 'my_package'
Ultimately, hatch is not properly adding the installed package to the the PATH. This is incredibly annoying and means that I can only run the program from the my-package/src folder, otherwise I constantly get a Module not found error.
(it's blank)
This is happening with every new module I create (using hatch new).
the only thing I add to pyproject.toml is:
The text was updated successfully, but these errors were encountered: