question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TST: pyinstaller job failed with No module named 'mypackage'

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
pllimcommented, Mar 29, 2022
0reactions
pllimcommented, Mar 30, 2022

See #13018

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found