Bug #5136
closed
arv-run arv-keep command gives error while running
Added by Sabarish Subramanian about 9 years ago.
Updated over 4 years ago.
Description
If I run arv-run command, I get the following error:
Traceback (most recent call last):
File "/usr/bin/arv-run", line 3, in <module>
from arvados.commands.run import main
File "/usr/lib/python2.6/site-packages/arvados/__init__.py", line 21, in <module>
from api import *
File "/usr/lib/python2.6/site-packages/arvados/api.py", line 13, in <module>
import util
File "/usr/lib/python2.6/site-packages/arvados/util.py", line 8, in <module>
from arvados.collection import *
File "/usr/lib/python2.6/site-packages/arvados/collection.py", line 644
for attr in self.STATE_PROPS}
^
SyntaxError: invalid syntax
- Assigned To deleted (
Brad Chapman)
- Priority changed from Immediate to Normal
It appears you are using Python 2.6. Unfortunately, the Arvados SDK only supports Python 2.7. Are you able to upgrade?
Thank you @Peter. I installed python 2.7.Now I get the following error if I run arv-run
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/bin/arv-run", line 3, in <module>
from arvados.commands.run import main
ImportError: No module named arvados.commands.run
Hi Sabarish, how are you installing the Arvados Python SDK? Did you install using "pip" or are you running from the source tree?
If you are running directly from the source tree, you will need to do something like "export PYTHONPATH=$ARVADOS/sdk/python" (where $ARVADOS is the directory where you cloned the Arvados source) so that Python is able to find the Arvados SDK.
- Assigned To set to Peter Amstutz
Hi Peter,
Finally found out the problem.Pip was from python 2.6.I changed it to python 2.7.Now after this ,if I install python sdk with pip, I couldnt find arv-run command alone.Please let me know the possible reason for this error.
Hi Sabarish,
There was a problem with our Python packaging that was resulting in an outdated package being installed by pip
. This was recently fixed. Could you try upgrading?
$ pip install --upgrade arvados-python-client
- Assigned To deleted (
Peter Amstutz)
- Status changed from New to Closed
Also available in: Atom
PDF