-
Notifications
You must be signed in to change notification settings - Fork 62
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
PythonCall not playing nicely with pyinstaller #248
Comments
Thanks for the report. It seems very odd indeed that that line would be the problematic one, but ok! The downside of commenting out that line is that trying to use Do you have a MWE for this issue please? I have never used pyinstaller. |
Sorry for not responding yet. It was a bit of a rush to get something delivered at the time, now I have some more time, I will see what I can share to illustrate the issue. |
Looking at the help docs it looks like I can easily make that problematic line work by setting |
I have fixed this on the main branch now, to appear in the next release. Thanks for the report. |
Just going to post a link to the commit for reference. |
@KeithWM would you mind sharing how you managed to include Having an example (albeit on Windows) could still help! 🙂 |
I think the only thing I did was to comment the line |
Thanks @KeithWM for answering 🙂 In my minial build (on Linux) I have
Do you do anything special in your PyInstaller command / .spec file? Including the julia binaries maybe? |
First of all I'd like to express my appreciation for all the great work being done here. I think this package is a great facilitator for moving Julia out of it's initial niche towards integration into real, practical applications.
In that line, I've been trying to call Julia from a Python application that is then made into a (Windows) executable using pyinstaller. This did not work "out of the box". After a lot of digging, I discovered the bug was in the
init_consts
function, in particular in the evaluation ofCommenting the
:help
insrc/constants/consts.jl:66
gave a working application, much to my joy and that of my colleagues, but I don't know exactly why this helped, and if there's any downside to doing this. Even if my immediate problem has been resolved/avoided, I thought I should share what I found for the benefit of the community.The text was updated successfully, but these errors were encountered: