JuliaPy / SymPy.jl

Julia interface to SymPy via PyCall
http://juliapy.github.io/SymPy.jl/
MIT License
268 stars 62 forks source link

Python 3.11 isn't supported, is it? Where can I check which Python versions each SymPy version supports? #500

Closed KierPrev closed 1 year ago

KierPrev commented 1 year ago

Archlinux recently updated to Python 3.11, which doesn't work with SymPy 1.1.8 (the latest). Unfortunately, downgrading to 3.10 breaks other stuff...

I'll switch to Kubuntu for the moment.

jverzani commented 1 year ago

Let me look to see what can be done. Do you know what doesn't work?

KierPrev commented 1 year ago

Executing using SymPy with Python 3.11, gives the error

caused by: could not load library "/usr/lib/libpython3.10.so.1.0"
/usr/lib/libpython3.10.so.1.0: cannot open shared object file: No such file or directory

Apparently, SymPy 1.1.8 doesn't look for libpython3.11

KierPrev commented 1 year ago

I don't know if this is a SymPy.jl problem, or a PyCall one

jverzani commented 1 year ago

Can you try just loading the sympy library with PyCall:

julia> using PyCall

julia> sympy = PyCall.pyimport_conda("sympy", "sympy")
PyObject <module 'sympy' from '/Users/verzani/.julia/conda/3/lib/python3.7/site-packages/sympy/__init__.py'>
KierPrev commented 1 year ago

Thank you, I simply solved it by building again the PyCall build PyCall

jverzani commented 1 year ago

Great. Glad it worked out.