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

Can't install versions later than 1.0.2 using pip on Ubuntu 20.04 LTS in Docker #23

Closed
hcstubbe opened this issue Jun 15, 2021 · 4 comments

Comments

@hcstubbe
Copy link

hcstubbe commented Jun 15, 2021

On Ubuntu 20.04 LTS (and on Debian) I cannot freshly (i.e. without earlier versions installed) install the later versions of pyabpoa using pip. The only workaround is to install version 1.0.2 and then update. This makes installing pyabpoa in a docker image extremely hard.

Error message:

#16 1.287 Collecting pyabpoa==1.2.4
#16 1.411 Downloading pyabpoa-1.2.4.tar.gz (138 kB)
#16 1.604 ERROR: Files/directories not found in /tmp/pip-install-6dwget1n/pyabpoa/pip-egg-info

Any idea how to fix this?

Thank You!

@yangao07
Copy link
Owner

This is weird, I can not reproduce your error on my machine.
Does installing it from the source files work for you?https://github.com/yangao07/abPOA/tree/master/python#install-pyabpoa-from-source

Yan

@hcstubbe
Copy link
Author

hcstubbe commented Jun 15, 2021

Hey Yan,

did You try to install it on Ubuntu without a previous installations of pyabpoa? When I run the docker build with this Dockerfile, later versions fail, but not version 1.0.2. This also happens on my WSL2 Ubuntu 20.04 LTS on Windows 10.
Installing from source works, but my script (using C3POa) fails when using later versions than 1.0.6 (in fact, it only works with 1.0.6 - I haven't worked out yet, why this happens).
My workaround is to first install 1.0.2 and then install 1.0.6.

You can try installing it in a docker environment here by running the command pip3 install pyabpoa. For me, this reproduces the error.

Thank You for looking into this!

All the best
Hans

@hcstubbe hcstubbe changed the title Can't install versions later than 1.0.2 using pip on Ubuntu 20.04 LTS Can't install versions later than 1.0.2 using pip on Ubuntu 20.04 LTS in Docker Jun 15, 2021
@yangao07
Copy link
Owner

Hi Hans,
I did reproduce this error on a machine that has no previous version of pyabpoa.
It seems like is caused by the absence of cython.
So you need to mannully

pip install cython

and then

pip install pyabpoa==1.2.4

This works for me.
Let me know if this fixes your issue.

Yan

@hcstubbe
Copy link
Author

Hi Yan,

thank You for looking into this! Manually installing cython before pyabpoa works!

All the best
Hans

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