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

Error report when packaging by pyinstaller #123

Open
belike2333 opened this issue Jul 3, 2024 · 2 comments
Open

Error report when packaging by pyinstaller #123

belike2333 opened this issue Jul 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@belike2333
Copy link

it reports error when i use pyinstaller to package the codes into xxx.exe.

the error is about the agently framework can not find 'plugins' in the temp runtime folder.

it's quite wired as the .spec file is normal and i can use pyinstaller to package the codes without agently.

does anyone have the similar problem ? call for help, thx a millon!

@Maplemx Maplemx self-assigned this Jul 5, 2024
@Maplemx Maplemx added the bug Something isn't working label Jul 5, 2024
@Maplemx
Copy link
Owner

Maplemx commented Jul 5, 2024

It seems this error caused by dynamic loading design of Agently framework.

After Agently is packaged into an exe file, the exe file try to dynamic load the plugin modules from the path where the exe file is and can not find any, so there's an error report.

Maybe try to add plugins dir path to exe file when using pyinstaller to package?

pyinstaller --add-data "path/to/Agently/plugins;Agently/plugins" your_script.py

@belike2333
Copy link
Author

It seems this error caused by dynamic loading design of Agently framework.

After Agently is packaged into an exe file, the exe file try to dynamic load the plugin modules from the path where the exe file is and can not find any, so there's an error report.

Maybe try to add plugins dir path to exe file when using pyinstaller to package?

pyinstaller --add-data "path/to/Agently/plugins;Agently/plugins" your_script.py

not work, = =b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants