I am installing on a clean (just installed) Ubuntu 18.04(.3), and following the instructions for installation for development on the indico site.
All goes exactly as expected up to the step:
“pip install -e .”
at which point I get an ERROR:
ERROR: Package ‘indico’ requires a different Python: 2.7.17 not in ‘~=3.9’
The default Python is indeed 2.7.17, and I am stumped.
Any helpful ideas?
Thanks,
This opens up a lot of questions, however, about the feasibility of developing
agains the stable (2.3) version:
-is version 3 coming soon (ie. within the next 6 months)?
-are there structural differences between versions 2.3 and 3 that would render
any halfway (or even fully) developed 2.3-plugins useless?
etc.
Nobody wants to waste time developing for /dev/null.
is version 3 coming soon (ie. within the next 6 months)?
Certainly. More like within the next 2 months I hope.
are there structural differences between versions 2.3 and 3 that would render any halfway (or even fully) developed 2.3-plugins useless?
No. In fact, when porting the Zoom plugin this is all that needed to be changed. And the majority was fully automated by using modernize --no-diffs -n -w -x import vc_zoom/, then pyupgrade --py38-plus vc_zoom/**/*.py and some cleanups (removing unused six imports, isort, flake8) plus minor bugfixes (for some reason a case of viewitems() didn’t get automatically replaced with items()).
bash: /home/vagrant/.pyenv/plugins/pyenv-virtualenv/shims:/home/vagrant/.pyenv/bin:/home/vagrant/.pyenv/plugins/pyenv-virtualenv/shims:/home/vagrant/.pyenv/bin:/home/vagrant/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory
I think there must be something wrong with your environment. Unfortunately it’s hard to debug such things without having a shell in that environment, but I’d have a look at the docs on https://github.com/pyenv/pyenv/ whether you can find anything useful. In any case I recommend making sure hat pyenv is working correctly before doing any steps regarding Indico.
PS: If your distribution has Python 3.9, you could even skip pyenv altogether - in that case using python3.9 -m venv ... should create a virtual environment using Python 3.9.