Affects: PythonCall
Describe the bug
Trying to use PythonCall with ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall" results in the following error:
julia> using PythonCall
┌ Warning: Error requiring `PyCall` from `PythonCall.Compat`
│ exception =
│ UndefVarError: `Core` not defined in `PythonCall.Compat`
│ Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
│ Hint: a global variable of this name also exists in Core.
I think the problem is the Core.Py on this line
|
@eval function Core.Py(x::$PyCall.PyObject) |
Please include the steps required to reproduce the bug. This should include not just code but all the steps required to reproduce the bug
Install PyCall, configure PyCall python with ENV["PYTHON"] variable.
Install PythonCall, configure with ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall".
using PythonCall results in error
I also tried rebuilding PyCall and then PythonCall and that didn't help.
Your system
Ubuntu 24.04
PyCall v1.96.4, PythonCall v0.9.27, Julia 1.11.6
Additional context
Add any other context about the problem here.
Affects: PythonCall
Describe the bug
Trying to use PythonCall with
ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall"results in the following error:I think the problem is the
Core.Pyon this linePythonCall.jl/src/Compat/pycall.jl
Line 13 in 57d143f
Please include the steps required to reproduce the bug. This should include not just code but all the steps required to reproduce the bug
I also tried rebuilding PyCall and then PythonCall and that didn't help.
Your system
Ubuntu 24.04
PyCall v1.96.4, PythonCall v0.9.27, Julia 1.11.6
Additional context
Add any other context about the problem here.