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

Default Conda_env python installation statically linked to libpython? #542

Open
axla-io opened this issue Dec 17, 2023 · 2 comments
Open

Comments

@axla-io
Copy link

axla-io commented Dec 17, 2023

Hi, I want to be able to use pyjulia, but I run into the following issue:

  • I install PyCall
  • I open the python executable installed in Conda_env and run julia.install(). This tells me that "PyCall is already installed and compatible with Python executable."
  • I run from julia import Base and get an error saying:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/Users/me/.local/lib/python3.11/site-packages/julia/core.py", line 248, in load_module
    elif self.julia.isafunction(juliapath):
         ^^^^^^^^^^
  File "/Users/me/.local/lib/python3.11/site-packages/julia/core.py", line 239, in julia
    self.__class__.julia = julia = Julia()
                                   ^^^^^^^
  File "/Users/me/.local/lib/python3.11/site-packages/julia/core.py", line 489, in __init__
    raise UnsupportedPythonError(jlinfo)
julia.core.UnsupportedPythonError: It seems your Julia and PyJulia setup are not supported.

Julia executable:
    julia
Python interpreter and libpython used by PyCall.jl:
    /Users/me/.julia/Conda_env/bin/python
    /Users/me/.julia/Conda_env/lib/libpython3.11.dylib
Python interpreter used to import PyJulia and its libpython.
    /Users/me/.julia/Conda_env/bin/python
    /Users/me/.julia/Conda_env/lib/libpython3.11.dylib

Your Python interpreter "/Users/me/.julia/Conda_env/bin/python"
is statically linked to libpython.  Currently, PyJulia does not fully
support such Python interpreter.```
@axla-io axla-io changed the title Default Conda_env statically linked to libpython? Default Conda_env python installation statically linked to libpython? Dec 17, 2023
@mkitti
Copy link
Member

mkitti commented Dec 17, 2023

What was the original Python you were trying to use?

@mkitti
Copy link
Member

mkitti commented Dec 17, 2023

Also, have you considered https://github.com/JuliaPy/PythonCall.jl / juliacall ?

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

No branches or pull requests

2 participants