JuliaPy / JuliaPy/PyCall.jl

InitError: ccall: could not find function Py_CompileString in library

Offen
#729 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,
Anyone know what causes this error every time I use PyCall

InitError: ccall: could not find function Py_CompileString in library C:\Users\Sannan\AppData\Local\Programs\Python\Python38\python38.dll
during initialization of module PyCall
macro expansion at exception.jl:81 [inlined]
pyeval_(::String, ::PyCall.PyDict{String,PyCall.PyObject,true}, ::PyCall.PyDict{String,PyCall.PyObject,true}, ::Int64, ::String) at pyeval.jl:36
pyeval_(::String) at pyeval.jl:34
__init__() at pyinit.jl:230
_include_from_serialized(::String, ::Array{Any,1}) at loading.jl:685
_require_search_from_serialized(::Base.PkgId, ::String) at loading.jl:765
_require(::Base.PkgId) at loading.jl:990
require(::Base.PkgId) at loading.jl:911
require(::Module, ::Symbol) at loading.jl:906

Thank you!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the PyCall initialization path in pyinit.jl and the failing evaluation path in pyeval.jl, using the reported Python38 DLL and exception.jl stack trace as the reproduction context. Determine why Py_CompileString is unavailable during module initialization, then document the confirmed cause and a reproducible resolution for this Python and PyCall setup.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, python
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.