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

InitError: ccall: could not find function Py_CompileString in library #729

Open
Sinansi opened this issue Dec 4, 2019 · 2 comments
Open

Comments

@Sinansi
Copy link

Sinansi commented Dec 4, 2019

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!

@Sinansi
Copy link
Author

Sinansi commented Dec 8, 2019

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.

@Felix-Gauthier
Copy link

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.

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