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
349 stars 35 forks source link

Unending "no module named..." messages when compiling #462

Open mcmichaelau opened 2 years ago

mcmichaelau commented 2 years ago

I am trying to compile an app that works fine in alias mode. However, when running the "setup.py py2app" I get the error: "ImportError: No module named PyInstaller.hooks.hook-PyQt6.QtXml"

From what I understand, I should use '--include=PyQt6.QtXml' to resolve this issue. This seems to solve the immediate issue but upon attempting to compile again, there is another "No module named" error for another module. I went through and added about 15 of the modules to the '--include' option and yet the errors keep coming.

Is there a way to know what modules I need beforehand and install them in an easier way?

Thanks for the help

ronaldoussoren commented 2 years ago

Do you have PyInstaller installed? If so, could you check if using py2app without having that package installed helps?

It should not be necessary to use --include with a PyQt6 application, py2app contains some code to include the correct bits of PyQt6.

martungithub commented 2 years ago

@ronaldoussoren Thank you so much, sir. It really helped me. I appreciate it.

keeper2597 commented 1 year ago

@ronaldoussoren - Many thanks - that was the stuff.