import error "from sumatra.projects import Project"

31 views
Skip to first unread message

李鹏

unread,
Apr 5, 2016, 9:45:19 AM4/5/16
to sumatra-users
Hi, 
I have met some error when I use sumatra package :

Can anyone help me ?
Thanks!


>>> from sumatra.projects import Project
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/peng/bio/bcbio/share/anaconda/lib/python2.7/site-packages/Sumatra-0.7.4-py2.7.egg/sumatra/rojects.py", line 47, in <module>
    from sumatra.recordstore import DefaultRecordStore
  File "/home/peng/bio/bcbio/share/anaconda/lib/python2.7/site-packages/Sumatra-0.7.4-py2.7.egg/sumatra/ecordstore/__init__.py", line 19, in <module>
    from . import serialization
  File "/home/peng/bio/bcbio/share/anaconda/lib/python2.7/site-packages/Sumatra-0.7.4-py2.7.egg/sumatra/ecordstore/serialization.py", line 13, in <module>
    from sumatra import programs, launch, datastore, versioncontrol, parameters, dependency_finder
  File "/home/peng/bio/bcbio/share/anaconda/lib/python2.7/site-packages/Sumatra-0.7.4-py2.7.egg/sumatra/arameters.py", line 215, in <module>
    class NTParameterSet(parameters.ParameterSet, ParameterSet):
AttributeError: 'module' object has no attribute 'ParameterSet'

Maximilian Albert

unread,
Apr 6, 2016, 6:27:47 AM4/6/16
to sumatr...@googlegroups.com
Hi,

That's odd. My guess is that the `parameters` package [1], which Sumatra depends on, is either not installed or it is an old version (or Sumatra isn't picking it up for some reason). How did you install Sumatra?

To get a bit more info debugging, can you send the output of the following (commands run from within Python)?

>>> import parameters
>>> print(parameters.__file__)
>>> print(parameters.__version__)

Thanks and best wishes,
Max


--
You received this message because you are subscribed to the Google Groups "sumatra-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sumatra-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

李鹏

unread,
Apr 6, 2016, 7:05:22 AM4/6/16
to sumatra-users
Thanks for your reply. I have installed Sumatra via "pip install sumatra". 

That's the python command output : 


Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
>>> import parameters
>>> print(parameters.__file__)
parameters/__init__.pyc
>>> print(parameters.__version__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'


在 2016年4月6日星期三 UTC+8下午6:27:47,Maximilian Albert写道:

李鹏

unread,
Apr 6, 2016, 7:25:36 AM4/6/16
to sumatra-users
I installed omics_pipe package[1,2] which depend on Sumatra. Omics_pipe have 3 lines code import suamtra:
from sumatra.projects import Project
from sumatra.projects import load_project
from sumatra.parameters import build_parameters

在 2016年4月6日星期三 UTC+8下午6:27:47,Maximilian Albert写道:
Hi,

>>> import parameters
>>> print(parameters.__file__)
>>> print(parameters.__version__)

Thanks and best wishes,

Andrew Davison

unread,
Apr 14, 2016, 8:37:58 AM4/14/16
to sumatra-users
Hi,

It certainly seems as though you have the wrong "parameters" module. Please take a look at `parameters/__init__.py` and compare it to this file: https://github.com/NeuralEnsemble/parameters/blob/master/parameters/__init__.py

If they are different, try running "pip install -U parameters".

Cheers,

Andrew
Reply all
Reply to author
Forward
0 new messages