fix error with pyinstaller not importing representations#112
Open
BiggusVickus wants to merge 2 commits into
Open
fix error with pyinstaller not importing representations#112BiggusVickus wants to merge 2 commits into
BiggusVickus wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Martin,
when tryign to get RosettaX into 1 executable using pyinstaller it would not complete because it couldnt load representations.
After adding the one line for representations, pyinstaller does work.
Stack Trace:
550826 INFO: Looking for dynamic libraries
C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py:227: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import(package)
Traceback (most recent call last):
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 287, in find_binary_dependencies
child.call(import_library, package)
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\isolated_parent.py", line 322, in call
raise SubprocessDiedError(
PyInstaller.isolated._parent.SubprocessDiedError: Child process died calling import_library() with args=('PyMieSim.single.representations',) and kwargs={}. Its exit code was 3221225477.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Scripts\pyinstaller.exe_main.py", line 5, in
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller_main.py", line 231, in console_script_run
run()
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller_main.py", line 215, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller_main_.py", line 70, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 1275, in main
build(specfile, distpath, workpath, clean_build)
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 1213, in build
exec(code, spec_namespace)
File "main.spec", line 25, in
a = Analysis(
^^^^^^^^^
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 584, in init
self.postinit()
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\datastruct.py", line 184, in postinit
self.assemble()
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 967, in assemble
find_binary_dependencies(self.binaries, collected_packages, self.graph._bindepend_symlink_suppression)
File "C:\Users\P100700\AppData\Local\Programs\Python\Python312\Lib\site-packages\PyInstaller\building\build_main.py", line 291, in find_binary_dependencies
raise isolated.SubprocessDiedError(
PyInstaller.isolated._parent.SubprocessDiedError: Isolated subprocess crashed while importing package 'PyMieSim.single.representations'! Package import list: ...