You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Someone have suggested that I should downgrade the PyCall version (cant see his comment anymore, perhaps deleted). I would like to thank him very much. I downgraded the Python version instead and the issue was solved. I downgraded from Python 3.8 to Python 3.7 and the Py_CompileString error disappeared.
Hi @Sinansi , I removed my comment because I lost confidence in my answer : the missing Py_compileString issue made a comeback when I attempted to install JuliaPy, and I sort of gave up after that. Glad to know it works on your end ! I'll take a look at downgrading Python to 3.7 as that sounds like a likely fix to the issue.
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!
The text was updated successfully, but these errors were encountered: