Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
Story points:
-

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


Related issues

Related to Arvados - Bug #5137: [SDKs] Add Python version test 2.7 <= sys.version_info < 3RejectedActions
Actions #1

Updated by Peter Amstutz about 9 years ago

  • 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?

Actions #2

Updated by Sabarish Subramanian about 9 years ago

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

Actions #3

Updated by Peter Amstutz about 9 years ago

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.

Actions #4

Updated by Sabarish Subramanian about 9 years ago

  • 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.

Actions #5

Updated by Peter Amstutz about 9 years ago

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
Actions #6

Updated by Peter Amstutz almost 8 years ago

  • Assigned To deleted (Peter Amstutz)
Actions #7

Updated by Peter Amstutz over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF