libcellml icon indicating copy to clipboard operation
libcellml copied to clipboard

Can't install libcellml in Python3.12

Open FinbarArgus opened this issue 1 year ago • 3 comments

When using Python3.12, which is now used with OpenCOR, we can't install libcellml. This problem arose from this issue https://github.com/opencor/opencor/issues/2800 for more information.

From the /OpenCOR-2024-08-23-linux/ directory

./pip install libcellml
ERROR: Could not find a version that satisfies the requirement libcellml (from versions: none)
ERROR: No matching distribution found for libcellml
farg967:~/software/OpenCOR-2024-08-23-Linux$ ./pip install libcellml==0.3.102
ERROR: Could not find a version that satisfies the requirement libcellml==0.3.102 (from versions: none)
ERROR: No matching distribution found for libcellml==0.3.102

I'm using Ubuntu22, but I assume this is an issue with Python3.12. As installing libcellml on Ubuntu22 with the python version shipped with OpenCOR-0-7-1 (Python3.7) worked fine.

FinbarArgus avatar Aug 23 '24 16:08 FinbarArgus

Indeed, this is an issue with us not providing a wheel for Python 3.12 rather than Ubuntu 22.04 LTS. We can see that here where Python 3.11 is indeed the most recent version of Python that we support.

agarny avatar Aug 23 '24 16:08 agarny

Seems that following #1206 we probably just need to make a release to get the python 3.12 packages released?

nickerso avatar Aug 23 '24 20:08 nickerso

Seems that following #1206 we probably just need to make a release to get the python 3.12 packages released?

Maybe with #1246 and #1247? I spent the last couple of days on OpenCOR, so will have #1247 ready next week. (#1220 is clearly for later, not least since it currently doesn't work from Python.)

agarny avatar Aug 23 '24 21:08 agarny

With the release of 0.6.0 you should now be able to install libCellML into Python 3.12 environments (also Python 3.13).

hsorby avatar Oct 24 '24 02:10 hsorby

This works great now!

FinbarArgus avatar Nov 20 '24 21:11 FinbarArgus