Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Error due to libpython issuses

Aperta
#505 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
julia, python
Ambito
api, backend

Direzione di ricerca

Inizia dal traceback in julia/core.py, in particolare dal costruttore Julia e dal relativo controllo UnsupportedPythonError. Riproduci il fallimento di from julia import Base e confrontalo con le soluzioni alternative documentate compiled_modules=False e python-jl nella pagina di troubleshooting collegata. Il lavoro è concluso quando per la configurazione Python/libpython segnalata è disponibile una risoluzione confermata o una limitazione chiaramente documentata, incluso se è possibile importare diffeqpy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, this might be an overlapping issue from previous ones but since I couldn't find a way to solve it, I'm leaving it here.

When I'm trying to import Base, it shows the issue below. I am trying to use another python-julia package diffeqpy and I can not use it also because of this issue.

I tried the "workaround" suggested on the page and seemed nothing really helped much.

Any kind of comments would be very helpful.

>>> from julia import Base
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "/Users/juanko/miniconda3/envs/node/lib/python3.9/site-packages/julia/core.py", line 248, in load_module
    elif self.julia.isafunction(juliapath):
  File "/Users/juanko/miniconda3/envs/node/lib/python3.9/site-packages/julia/core.py", line 239, in julia
    self.__class__.julia = julia = Julia()
  File "/Users/juanko/miniconda3/envs/node/lib/python3.9/site-packages/julia/core.py", line 483, 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/juanko/miniconda3/envs/node/bin/python3
    /Users/juanko/miniconda3/envs/node/lib/libpython3.9.dylib
Python interpreter used to import PyJulia and its libpython.
    /Users/juanko/miniconda3/envs/node/bin/python3
    /Users/juanko/miniconda3/envs/node/lib/libpython3.9.dylib

Your Python interpreter "/Users/juanko/miniconda3/envs/node/bin/python3"
is statically linked to libpython.  Currently, PyJulia does not fully
support such Python interpreter.

The easiest workaround is to pass `compiled_modules=False` to `Julia`
constructor.  To do so, first *reboot* your Python REPL (if this happened
inside an interactive session) and then evaluate:

    >>> from julia.api import Julia
    >>> jl = Julia(compiled_modules=False)

Another workaround is to run your Python script with `python-jl`
command bundled in PyJulia.  You can simply do:

    $ python-jl PATH/TO/YOUR/SCRIPT.py

See `python-jl --help` for more information.

For more information, see:

    https://pyjulia.readthedocs.io/en/latest/troubleshooting.html

Thanks

Lingua principale
Python
Stelle
893
Fork
101
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaPy/pyjulia

Tutte le issue di JuliaPy/pyjulia

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.