Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this app be compiled on Linux? #1

Closed
eggice1234 opened this issue Jul 3, 2021 · 3 comments
Closed

Can this app be compiled on Linux? #1

eggice1234 opened this issue Jul 3, 2021 · 3 comments

Comments

@eggice1234
Copy link

Hi Jason,
My OS is Manjaro Linux.
While following the instruction to build from source, an error happened in this step - npm run make-py.
Not sure if Linux is supported since only Windows/Mac binaries were provided.
I have little knowledge to debug. If it's not trivial to deal with, I would boot to my slow win7 anyway.
Any suggesiton? Thanks.
eggice

=========================================================
File "", line 228, in _call_with_frames_removed
File "/home/eggice/.local/lib/python3.9/site-packages/PyInstaller/hooks/hook-gi.repository.Gdk.py", line 16, in
binaries, datas, hiddenimports = get_gi_typelibs('Gdk', '3.0')
File "/home/eggice/.local/lib/python3.9/site-packages/PyInstaller/utils/hooks/gi.py", line 90, in get_gi_typelibs
path = findSystemLibrary(lib.strip())
File "/home/eggice/.local/lib/python3.9/site-packages/PyInstaller/depend/bindepend.py", line 958, in findSystemLibrary
return findLibrary(name)
File "/home/eggice/.local/lib/python3.9/site-packages/PyInstaller/depend/bindepend.py", line 774, in findLibrary
utils.load_ldconfig_cache()
File "/home/eggice/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 402, in load_ldconfig_cache
path = m.groups()[-1]
AttributeError: 'NoneType' object has no attribute 'groups'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blockly-app@1.2.0 make-py: cd ./python && pyinstaller -y --hidden-import=pathlib --hidden-import=matplotlib.pyplot --hidden-import=pynput.keyboard._win32 --hidden-import=pynput.mouse._win32 --hidden-import=pynput.keyboard._darwin --hidden-import=pynput.mouse._darwin --hidden-import=queue --hidden-import=pygame --hidden-import=multiprocessing --hidden-import=pickle --hidden-import=Box2D --hidden-import=sklearn.neighbors --hidden-import=sklearn.tree --hidden-import=sklearn.svm --hidden-import=sklearn.ensemble --hidden-import=sklearn.neural_network --hidden-import=sklearn.metrics --hidden-import=sklearn.utils._weight_vector --hidden-import=scipy.special.cython_special interpreter.py
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blockly-app@1.2.0 make-py script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/eggice/.npm/_logs/2021-07-03T14_37_46_405Z-debug.log
[eggice@eggice-inspiron3543 blockly-app]$ gvim /home/eggice/.npm/_logs/2021-07-03T14_37_46_405Z-debug.log

@jason53415
Copy link
Owner

It seems to be the same issue as pyinstaller/pyinstaller#5540.
Upgrading PyInstaller to 4.3 should help.

@eggice1234
Copy link
Author

Thanks.
After I upgraded PyInstaller to 4.3, I can move on to next step and generate executable.
Although still have trouble building deb/rpm, I can run blockly-app in linux now.

@eggice1234
Copy link
Author

blockly-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants