Closed feacluster closed 2 years ago
Hi,
Please, have a look here: https://github.com/calculix/ccx2paraview#for-developers
I used PyInstaller for older Python. For newer one you'd better use nuitka.
Also command for PyInstaller was: pyinstaller init.py --onefile
Hope it will help.
Thanks, yes I did try --onefile and got the same error:
[feacluster@micro ccx2paraview]$ pwd
/home/feacluster/.local/lib/python3.6/site-packages/ccx2paraview
[feacluster@micro ccx2paraview]$ cd dist
[feacluster@micro dist]$ ./__init__
Traceback (most recent call last):
File "ccx2paraview/__init__.py", line 21, in <module>
ModuleNotFoundError: No module named 'writer'
[3202] Failed to execute script '__init__' due to unhandled exception!
I am using Python 3.6.8 . Perhaps something to do with how/where I am running pyinstaller. It is not that important. Was just curious to see if it would speedup ccx2paraview execution time...
Think I figured it out . Had to add the directory of the init.py file to pyinstaller:
pyinstaller --paths=/home/feacluster/.local/lib/python3.6/site-packages/ccx2paraview __init__.py --onedir
It is strange that pyinstaller does not automatically include the path where init.py is located in..
I am trying to create a faster a binary with pyinstaller but the executable errors out with "No module found...".. Here is my full output below if there is something obvious I am doing wrong: