TST: pyinstaller job failed with No module named 'mypackage'
See original GitHub issueI think setuptools 61.0.0 that got released yesterday might have broken this? @nstarman , is it time to move this out of core?
https://github.com/astropy/astropy/runs/5686402514?check_suite_focus=true
________________________ ERROR collecting test session _________________________
_pytest/config/__init__.py:607: in _importconftest
???
_pytest/pathlib.py:533: in import_path
???
importlib/__init__.py:127: in import_module
???
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
_pytest/assertion/rewrite.py:168: in exec_module
???
astropy_tests/cosmology/flrw/tests/conftest.py:5: in <module>
from astropy.cosmology.tests.helper import clean_registry
PyInstaller/loader/pyimod03_importers.py:495: in exec_module
???
astropy/cosmology/tests/__init__.py:7: in <module>
???
E ModuleNotFoundError: No module named 'mypackage'
Issue Analytics
- State:
- Created a year ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Python Import Errors: No module named <myPackage>
Recreating your project from the information provided, I was able to reproduce your error and fixed it by including an __init__.py file ...
Read more >PyInstaller Documentation - Read the Docs
PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a...
Read more >Python import: Advanced Techniques and Tips
In this tutorial, you'll learn how to: Use modules, packages, and namespace packages; Handle resources and data files inside your packages; Import modules...
Read more >Pyinstaller Module Not Found Error
Problem packaging with PyInstaller appears this message: ModuleNotFoundError: No module named 'PyQt5' [43227] Failed to execute script.
Read more >Understanding PyInstaller Hooks
A hook is a module named hook-full.import.name.py in a folder where the ... If a package fails without them, you can use this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Until https://github.com/astropy/integration-testing takes off, yes…
See #13018