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

Installation instructions - add common error #317

Closed
odunbar opened this issue Aug 29, 2024 · 1 comment · Fixed by #319
Closed

Installation instructions - add common error #317

odunbar opened this issue Aug 29, 2024 · 1 comment · Fixed by #319
Assignees

Comments

@odunbar
Copy link
Collaborator

odunbar commented Aug 29, 2024

Issue

An error we have discovered is that sometimes Python is seemingly not linked properly when installing PyCall/Conda
But seems sporadic

Solution

In the installation instructions docs.
Add links to PyCall.jl, and Conda.jl documentation.
And section below the installation instructions with common errors. Some example text:

Sometimes, if encountering an error such as

ERROR: InitError: PyError (PyImport_ImportModule

The Python package sklearn.gaussian_process.kernels could not be imported by pyimport.

Often this can be fixed by first rebuilding PyCall

julia --project
julia> ENV["PYTHON"]=""
julia> Pkg.build("PyCall")
julia> exit()

then calling the Conda install packages e.g....

julia --project -e 'using Conda; Conda.add("scipy=1.8.1", channel="conda-forge")'
@odunbar
Copy link
Collaborator Author

odunbar commented Sep 6, 2024

Another Build error.

For python 3.12 one cannot build with scipy=1.8.1 and scikit-learn=1.1.1

These should be updated to their current versions (which appear to work fine: scipy = 1.14.1 , scikit-learn=1.5.1 (prefer to pin to new versions over leaving it free to update unit tests etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants