pip install problems version 1.3dev26

31 views
Skip to first unread message

Maiken Pedersen

unread,
Mar 26, 2020, 12:19:17 PM3/26/20
to elasticluster
Hi!

I am conducting a course tomorrow where students will install and use elasticluster.
We are installing on centos7 and following the procedure below.

In the end you see an error. Have you seen this issue before?


sudo yum install -y gcc gcc-c++ git libffi-devel openssl-devel python-devel python-virtualenv
virtualenv elasticluster
. elasticluster/bin/activate
pip install
--upgrade 'pip>=9.0.0'
pip install
'setuptools>=40.3.0'
cd elasticluster
git clone git
://github.com/gc3-uzh-ch/elasticluster.git src
cd src
pip install
-e .
cd

.
.
.

Collecting appdirs>=1.3.0
 
Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
ERROR
: Could not find a version that satisfies the requirement futurist>=2.1.0 (from openstacksdk>=0.15.0->osc-lib>=1.8.0->python-neutronclient->elasticluster==1.3.dev26) (from versions: 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.22.0, 0.23.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 1.10.0)
ERROR
: No matching distribution found for futurist>=2.1.0 (from openstacksdk>=0.15.0->osc-lib>=1.8.0->python-neutronclient->elasticluster==1.3.dev26)


Maiken Pedersen

unread,
Mar 26, 2020, 12:39:46 PM3/26/20
to elasticluster

If I try to install the futurist requirement I get:

Screen Shot 2020-03-26 at 17.38.24.png

Riccardo Murri

unread,
Mar 26, 2020, 12:46:29 PM3/26/20
to Maiken Pedersen, elasticluster
Hello Maiken,

`futurist` seems to be a legit Python package: https://pypi.org/project/futurist/

The thing is, according to PyPI metadata it is only compatible with Python >=3.6, whereas you are installing with Python 2.7?

It is not a dependency of ElastiCluster per se, but reading the output of `pip install` it seems to come from `openstacksdk`. I guess OpenStack dropped Python 2.7 support now.
For workarounds:

- could you use Python 3.6 instead?
- I can send the list pf Python package dependencies that I use locally, which you may be able to reproduce by doing `pip install -r`.

Ciao,
R

Maiken Pedersen

unread,
Mar 26, 2020, 12:53:41 PM3/26/20
to elasticluster
Thanks for getting back to me.

Yeah, maybe there were some changes since 10.03 where everything worked fine, and now.

Would be perfect if you could send me a list of packages. Since I am on centos7 I am not 100% sure how smooth and easy it will be to use python3 .
It is not there by default.

Typical, just the evening before a tutorial :( :)

Maiken Pedersen

unread,
Mar 26, 2020, 1:01:36 PM3/26/20
to elasticluster
Ok, things went smoothly with python3

```sudo yum install -y python3 python3-virtualenv
virtualenv-3 elasticluster
...
pip3 install -e .
```

Perfect. Thanks!

Riccardo Murri

unread,
Mar 26, 2020, 1:02:53 PM3/26/20
to Maiken Pedersen, elasticluster
Good to know, thanks!

I guess it's now time to switch the Docker container to Py3 as well, then.

Ciao,
R

Maiken Pedersen

unread,
Mar 26, 2020, 1:21:19 PM3/26/20
to elasticluster
Should the instructions be changed in the readme docs? So a separate installation guide for rhel7 with the following procedure:

sudo yum install -y gcc gcc-c++ git libffi-devel openssl-devel python3-devel python3 python3-virtualenv
virtualenv
-3 elasticluster
. elasticluster/bin/activate

cd elasticluster
git clone git
://github.com/gc3-uzh-ch/elasticluster.git src
cd src
pip3 install
-e .
cd


Riccardo Murri

unread,
Mar 29, 2020, 10:41:16 AM3/29/20
to Maiken Pedersen, elasticluster
> Should the instructions be changed in the readme docs? So a separate installation guide for rhel7 with the following procedure:

Good idea; I've changed the installation instructions to use Python 3
on all platforms.

After all, Python 2 is officially EOL'ed since a few months now; if
somebody is still using a platform where they don't have Python 3,
they have probably bigger problems by now.

Thanks for the suggestion and debugging!

Riccardo
Reply all
Reply to author
Forward
0 new messages