ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
342 stars 36 forks source link

fix recipe qt5 import error #446

Closed kangni closed 2 years ago

kangni commented 2 years ago
Traceback (most recent call last):
  File "/Users/kang/.virtualenvs/test/lib/python3.9/site-packages/py2app/recipes/qt5.py", line 33, in check
    mf.import_hook("sip", m)
  File "/Users/kang/.virtualenvs/test/lib/python3.9/site-packages/modulegraph/modulegraph.py", line 1131, in import_hook
    q, tail = self._find_head_package(parent, name, level)
  File "/Users/kang/.virtualenvs/test/lib/python3.9/site-packages/modulegraph/modulegraph.py", line 1232, in _find_head_package
    raise ImportError("No module named " + qname)
ImportError: No module named sip
kangni commented 2 years ago

notes:

importing-the-sip-module

ronaldoussoren commented 2 years ago

Thanks for the PR. The patch looks good, will merge once the checks have finished.