IGS / portal_client

Python-based client for downloading data made available through portals powered by the GDC-based portal system..
MIT License
17 stars 17 forks source link

Client install successfully but shows error while I run the command. #7

Closed jaidevjoshi83 closed 5 years ago

jaidevjoshi83 commented 5 years ago

Command "portal_client --help" rais this error... I tried to install this tool on three different Linux machine, (two fedora, and one Ubuntu ) it shows error on all the machines.

Traceback (most recent call last): File "/home/joshij/anaconda2/envs/jay/bin/portal_client", line 4, in import('pkg_resources').run_script('portal-client==1.4.4', 'portal_client') File "/home/joshij/anaconda2/envs/jay/lib/python2.7/site-packages/pkg_resources/init.py", line 661, in run_script self.require(requires)[0].run_script(script_name, ns) File "/home/joshij/anaconda2/envs/jay/lib/python2.7/site-packages/pkg_resources/init.py", line 1448, in run_script exec(script_code, namespace, namespace) File "/home/joshij/anaconda2/envs/jay/lib/python2.7/site-packages/portal_client-1.4.4-py2.7.egg/EGG-INFO/scripts/portal_client", line 6, in File "build/bdist.linux-x86_64/egg/portal_client.py", line 12, in File "build/bdist.linux-x86_64/egg/manifest_processor.py", line 11, in File "/home/joshij/anaconda2/envs/jay/lib/python2.7/site-packages/portal_client-1.4.4-py2.7.egg/portal_http.py", line 120 print("\r{0}".format(status), end="") ^ SyntaxError: invalid syntax

victor73 commented 5 years ago

I believe this is due to a python compatibility problem. If you can, please try to install into a python3 environment instead of python 2.7. I will adjust the installation documentation to make it more clear than Python 3 is required.