-
Notifications
You must be signed in to change notification settings - Fork 188
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
Building pyCalll fails after update from 1.18.4 to 1.18.5 on Julia 1.0.1 #592
Comments
There is a bug I introduced in error handling (already fixed in master). But this still indicates that Python configuration failed. See alo: https://discourse.julialang.org/t/error-building-pycall/16270/4 To get more information, you can run:
|
It was not finding the custom pythonpath that the Conda package had installed. After reading README.md (which i should have done immediately) I found I should have set ENV["PYTHON"]="" to do this. It works now. Thanks for your reply. For others who might stumble across this. For a pythonpath just for Julia when building Conda you need ENV["PYTHONPATH"]="" and then for using this path when building PyCall, you need ENV["PYTHON"]="". |
Interesting... What is the OS your using? How do you install Python? Also, what is the output of the following? versioninfo(verbose=true)
run(`which python`)
I think what you meant to run was |
Thanks. Just figured that out and edited my last comment. Indeed confused about PYTHONPATH and PYTHON. |
See the first version of the comment JuliaPy#592 (comment)
Your previous comment #592 (comment) helped me find yet another bug (fixed in #595). Thanks! Do you mind let us know the OS you are using and the output of the above command I mentioned #592 (comment)? |
Stuff is working now. So idk if this is still helpful. But here you go:
|
Ah yes, it would be more informative if it's done before you re-build PyCall. But thanks anyway. I'm closing the issue since it's fixed in your setup. (So it looks like in openSUSE libpython may not be installed by default? Maybe it's similar to Debian family...) |
* Fix show_dlopen_error See the first version of the comment #592 (comment) * Fix a possible bug in exec_find_libpython The previous code accidentally worked presumably because $PWD was set do deps when running deps/build.jl. Cherry-picked from #595.
Also watch out for 32 bit Julia trying to PyCall from a 64 bit Jupyter Notebook This happened to me because I did 'sudo snap install julia' from ubuntu terminal and it found a 32 bit version and I didn't realise for an hour or so. |
output of package update:
help
The text was updated successfully, but these errors were encountered: