cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
16 stars 21 forks source link

cellml pip does not install on linux any more #1027

Closed matthiaskoenig closed 2 years ago

matthiaskoenig commented 2 years ago

Hi all, unfortunately you seem to have broken the pypi package for linux.

I.e.

pip install libcellml

only installs a very old version.

Successfully installed libcellml-0.2.0.dev21

but not the latest version on python 3.9 on linux (ubuntu), i.e., https://pypi.org/project/libcellml/

Installation on python 3.10 does not work at all in linux (ubuntu).

Please fix this issues, because the library is not usable at the moment on linux without the pypi package.

Best Matthias

hsorby commented 2 years ago

We are currently working to resolve this issue. Hopefully not too far away from proposing a fix.

matthiaskoenig commented 2 years ago

Sounds good. Seems just to be an issue with the pypi upload as you can see from the failing CI: https://github.com/cellml/libcellml/actions/runs/2907912016

25hWARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         Binary wheel 'libcellml-0.3.100-cp37-cp37m-linux_x86_64.whl' has an    
         unsupported platform tag 'linux_x86_64'.                               
Error: Process completed with exit code 1.

As I understand things you have to use manylinux as stated here: https://stackoverflow.com/questions/59451069/binary-wheel-cant-be-uploaded-on-pypi-using-twine

You cannot upload a linux_*.whl wheel to PyPI (reasons here). You'll need to convert this platform-specific wheel into a manylinux wheel via the manylinux project and the auditwheel tool.

Best Matthias

hsorby commented 2 years ago

A new version is available from pip. I have tested the new version (v0.3.101) on Ubuntu 20.04 and it "worked for me"tm.

matthiaskoenig commented 2 years ago

Perfect. Works on py38, py39 and py310. Thanks so much.