Closed AlexanderSenf closed 5 years ago
Could you check the python version? It should be python 3.x
pip --version
pip 18.1 from /home/martini/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pip (python 3.7)
Maybe you have to call pip3 explicitely
pip --version pip 18.1 from /home/asenf/.local/lib/python2.7/site-packages/pip (python 2.7)
Aha! Python 2.7. I will update and try again:
pip3 --version pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
pip3 install git+https://github.com/EGA-archive/crypt4gh.git
Collecting git+https://github.com/EGA-archive/crypt4gh.git
Cloning https://github.com/EGA-archive/crypt4gh.git to /tmp/pip-0itbr44h-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
----------------------------------------
I just can't get around this (it also happens on Ubuntu 14.05.5 LTS / Python 3.4.3) :
File "setup.py", line 23 f'{PROG} = crypt4gh.main:main' , ^ SyntaxError: invalid syntax
The issue may be that I am using Python 3.4 / 3.5. f-String only work with Python 3.6+
Ok. I created an Ubuntu 18 VM.
I do actually need to type 'pip3'. And I had to 'pip3 install pynacl'.
Then I could install it without issue!
@AlexanderSenf install one of:
with Python3.6
File "setup.py", line 23 f'{PROG} = crypt4gh.main:main' , ^ SyntaxError: invalid syntax
That error is related to F strings which were introduced in Python 3.6+
Thank you ! :) This worked, on a brand new Ubuntu 16.04 LTS VM:
sudo apt-get update sudo apt-get install -y software-properties-common curl sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install -y python3.6 python3.6-venv
mkdir environments cd environments
virtualenv --python=python3.6 myvenv source myvenv/bin/activate
pip install pynacl pip install paramiko
pip install git+https://github.com/EGA-archive/crypt4gh.git
@AlexanderSenf good :+1: I made this comment https://github.com/EGA-archive/crypt4gh/issues/3#issuecomment-459001744 before seeing this: https://github.com/EGA-archive/crypt4gh/issues/3#issuecomment-458950892
@silverdaz maybe we should add such instructions to the installation setup, also these might be good for LocalEGA as well
Sure. That's on the "roadmap". Wanna give a hand?
PS: do leave LocalEGA out of this.
Closing this issue as it is not an issue anymore.
pip install git+https://github.com/EGA-archive/crypt4gh.git Collecting git+https://github.com/EGA-archive/crypt4gh.git Cloning https://github.com/EGA-archive/crypt4gh.git to /tmp/pip-req-build-zze_dA Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-req-build-zze_dA/setup.py", line 23
f'{PROG} = crypt4gh.main:main' ,
^
SyntaxError: invalid syntax
This is on: Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial