-
Notifications
You must be signed in to change notification settings - Fork 594
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
Pyinstaller issues #412
Comments
Oh interesting, it looks like This might be related. Maybe try some variant of adding |
Added to requested enhancements list, closing for now. |
Looks like adding |
Have there been developments on this? AFAIK there isn't another clean way to use |
Hey, most of the live applications using trimesh (including the ones I work on) run as backend services in docker containers. There are pre-built images based on That being said, I would be happy to accept PR's to fix issues with pyinstaller and run it in unit tests. |
Hiya, I'm trying to compile a python script with pyinstaller and although I can get test files working, the script that used trimesh ends with this error when I try to run the exe: "Traceback (most recent call last): Any ideas on how to fix this? Is there a command switch to use with pyinstaller to force the use of trimesh? Currently all I'm using is "pyinstaller --onefile example.py". |
…o_inches.json in resources folder. This file goes undetected when using pyinstaller. Adding a hook solved the issue. This issue is highlighted here: mikedh/trimesh#412
…o_inches.json in resources folder. This file goes undetected when using pyinstaller. Adding a hook solved the issue. This issue is highlighted here: mikedh/trimesh#412 edit: add an end of line for hook-trimesh.py
How to make this work with Pyinstaller
Gives this error
Traceback (most recent call last):
File "Temp_extractor.py", line 18, in
File "mesh_voxel.py", line 31, in voxelmesher2
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in load_unlocked
File "c:\users\dpal\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\trimesh_init.py", line 15, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in load_unlocked
File "c:\users\dpal\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\trimesh\base.py", line 15, in
File "", line 983, in find_and_load
File "", line 967, in find_and_load_unlocked
File "", line 677, in load_unlocked
File "c:\users\dpal\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\trimesh\units.py", line 15, in
File "site-packages\trimesh\resources_init.py", line 20, in get_resource
File "site-packages\pkg_resources_init.py", line 1157, in resource_string
File "site-packages\pkg_resources_init.py", line 1401, in get_resource_string
File "site-packages\pkg_resources_init.py", line 1540, in _get
File "c:\users\dpal\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 475, in get_data
with open(path, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\dpal\Documents\ansysdev\Pythonthermalsolver\dist\Temp_extractor\trimesh\resources\units_to_inches.json'
[15260] Failed to execute script Temp_extractor
The text was updated successfully, but these errors were encountered: