NLeSC / software.esciencecenter.nl

eStep website with projects software and people.
http://software.esciencecenter.nl
Other
4 stars 3 forks source link

estep validator error #78

Closed arnikz closed 8 years ago

arnikz commented 8 years ago

I'm getting the following error on my MacBook (OS X 10.11.2; Python 2.7.1): Is this due to my *.md files or something else? Thanks.

$ estep validate -v Traceback (most recent call last): File "/usr/local/bin/estep", line 9, in load_entry_point('estep==1.0.0', 'console_scripts', 'estep')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/Users/arni/Downloads/mygitrepos/software.esciencecenter.nl/estep/script.py", line 23, in from .validate import Validator, AbstractValidators, url_to_path, url_to_collection_name, load_schemas File "/Users/arni/Downloads/mygitrepos/software.esciencecenter.nl/estep/validate.py", line 88, in class AbstractValidators(AbstractValidator, six.moves.UserList): AttributeError: '_MovedItems' object has no attribute 'UserList'

blootsvoets commented 8 years ago

Try a

pip install -r requirements.txt

We got a previous one fixed because of a different six version.

arnikz commented 8 years ago

I got now the correct six version (1.10.0) but the error remains.

jmaassen commented 8 years ago

Same error for me on Linux Mint 17

blootsvoets commented 8 years ago

Hmm... ok. Maybe we'll add a part in the README that people have to use virtualenv or conda to install the requirements. e.g. (from repository directory):

cd ..
sudo pip install virtualenv
virtualenv estepenv
. estepenv/bin/activate
cd software.esciencecenter.nl
pip install -r requirements
pip install .

Does that work?

sverhoeven commented 8 years ago

For Jsaon, using a virtualenv worked.

arnikz commented 8 years ago

Thanks, works fine now. B.t.w. the last cmd line seems redundant.