Closed d14na closed 5 years ago
You need to execute from dist
and not build
. Be sure also to have python-pyqt5
installed.
apt install python-pyqt5
checked PyQt5
apt install python-pyqt5
Building dependency tree
Reading state information... Done
python-pyqt5 is already the newest version (5.10.1+dfsg-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
but still...
dev@dev-VirtualBox:~/Downloads/ZeronetBrowser/dist/ZeronetBrowser$ ./ZeronetBrowser
[12030] PyInstaller Bootloader 3.x
[12030] LOADER: executable is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/ZeronetBrowser
[12030] LOADER: homepath is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12030] LOADER: _MEIPASS2 is NULL
[12030] LOADER: archivename is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/ZeronetBrowser
[12030] LOADER: Extracting binaries
[12030] LOADER: Executing self as child
[12030] LOADER: set _MEIPASS2 to /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12030] LOADER: LD_LIBRARY_PATH=/home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12030] LOADER: Registering signal handlers
[12031] PyInstaller Bootloader 3.x
[12031] LOADER: executable is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/ZeronetBrowser
[12031] LOADER: homepath is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12031] LOADER: _MEIPASS2 is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12031] LOADER: archivename is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/ZeronetBrowser
[12031] LOADER: Already in the child - running user's code.
[12031] LOADER: Python library: /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/libpython2.7.so.1.0
[12031] LOADER: Loaded functions from Python library.
[12031] LOADER: Manipulating environment (sys.path, sys.prefix)
[12031] LOADER: sys.prefix is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12031] LOADER: Setting runtime options
[12031] LOADER: Initializing python
[12031] LOADER: Overriding Python's sys.path
[12031] LOADER: Post-init sys.path is /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser
[12031] LOADER: Setting sys.argv
[12031] LOADER: setting sys._MEIPASS
[12031] LOADER: importing modules from CArchive
[12031] LOADER: extracted struct
[12031] LOADER: callfunction returned...
[12031] LOADER: extracted pyimod01_os_path
[12031] LOADER: callfunction returned...
[12031] LOADER: extracted pyimod02_archive
[12031] LOADER: callfunction returned...
[12031] LOADER: extracted pyimod03_importers
[12031] LOADER: callfunction returned...
[12031] LOADER: Installing PYZ archive with Python modules.
[12031] LOADER: PYZ archive: PYZ-00.pyz
[12031] LOADER: LC_CTYPE was C but resulted in NULL FileSystemDefaultEncoding
[12031] LOADER: Setting FileSystemDefaultEncoding to UTF-8 (was NULL)
[12031] LOADER: Running pyiboot01_bootstrap.py
[12031] LOADER: Running pyi_rth_pkgres.py
[12031] LOADER: Running pyi_rth_multiprocessing.py
[12031] LOADER: Running launch.py
Traceback (most recent call last):
File "launch.py", line 5, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "MainWindow.py", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "Browser.py", line 1, in <module>
ImportError: No module named PyQt5
[12031] Failed to execute script launch
[12031] LOADER: OK.
[12031] LOADER: Cleaning up Python interpreter.
[12030] LOADER: Restoring signal handlers
[12030] LOADER: freeing args
[12030] LOADER: returning child exit status 255
[12030] LOADER: Back to parent (RC: 255)
[12030] LOADER: Doing cleanup
[12030] LOADER: Freeing archive status for /home/dev/Downloads/ZeronetBrowser/dist/ZeronetBrowser/ZeronetBrowser
I don't get it, I'll give it a try on a different distro as soon as I get a chance.
I'm just gonna guess and say that this could be a PATH issue, but I'm still not sure how to fix it. How would run from source using python ...
and not the executable? Might provide some insight as to where the issue is.
You don't have to build it to try it. You ca just run python launch.py
to get a look.
Could you also try to uninstall python-pyqt5 and reinstall it ? I also believe it is the path. Maybe by re-install it will add itself to the path.
Closing this issue because now you can just get the executable and don't have to build yourself.
No luck executing from build
Also tried executing from dist