galaxy-iuc / parsec

Access Galaxy at the speed of light with automatically generated BioBlend wrappers
Apache License 2.0
9 stars 9 forks source link

import error #21

Closed bernt-matthias closed 6 years ago

bernt-matthias commented 6 years ago

calling parsec gives me the following import error:

Traceback (most recent call last):
  File "/home/berntm/.venv/bin/parsec", line 7, in <module>
    from parsec.cli import parsec
ImportError: No module named parsec.cli

I'm using Python 2.7.12 in a virtualenv.

hexylena commented 6 years ago

it works for me?

(.venv) [hxr@mk:/tmp]1$ pip install galaxy-parsec
Collecting galaxy-parsec
Collecting future (from galaxy-parsec)
Collecting wrapt (from galaxy-parsec)
Collecting justbackoff (from galaxy-parsec)
Collecting Click>=6.7 (from galaxy-parsec)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting xunit-wrapper (from galaxy-parsec)
Collecting pyyaml (from galaxy-parsec)
Collecting bioblend (from galaxy-parsec)
  Using cached bioblend-0.10.0-py2.py3-none-any.whl
Collecting junit-xml==1.7 (from xunit-wrapper->galaxy-parsec)
Collecting boto>=2.9.7 (from bioblend->galaxy-parsec)
  Using cached boto-2.48.0-py2.py3-none-any.whl
Collecting six (from bioblend->galaxy-parsec)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting requests!=2.12.0,!=2.12.1,>=2.4.3 (from bioblend->galaxy-parsec)
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting requests-toolbelt (from bioblend->galaxy-parsec)
  Using cached requests_toolbelt-0.8.0-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached certifi-2017.11.5-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached urllib3-1.22-py2.py3-none-any.whl
Installing collected packages: future, wrapt, justbackoff, Click, six, junit-xml, xunit-wrapper, pyyaml, boto, chardet, idna, certifi, urllib3, requests, requests-toolbelt, bioblend, galaxy-parsec
Successfully installed Click-6.7 bioblend-0.10.0 boto-2.48.0 certifi-2017.11.5 chardet-3.0.4 future-0.16.0 galaxy-parsec-1.0.4 idna-2.6 junit-xml-1.7 justbackoff-0.4.0 pyyaml-3.12 requests-2.18.4 requests-toolbelt-0.8.0 six-1.11.0 urllib3-1.22 wrapt-1.10.11 xunit-wrapper-0.12
(.venv) [hxr@mk:/tmp]$ python
Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import parsec
>>> import parsec.cli
>>> 

and

(.venv2) [hxr@mk:/tmp]$ pip install galaxy-parsec
Collecting galaxy-parsec
Collecting justbackoff (from galaxy-parsec)
Collecting pyyaml (from galaxy-parsec)
Collecting future (from galaxy-parsec)
Collecting xunit-wrapper (from galaxy-parsec)
Collecting Click>=6.7 (from galaxy-parsec)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting bioblend (from galaxy-parsec)
  Using cached bioblend-0.10.0-py2.py3-none-any.whl
Collecting wrapt (from galaxy-parsec)
Collecting junit-xml==1.7 (from xunit-wrapper->galaxy-parsec)
Collecting requests-toolbelt (from bioblend->galaxy-parsec)
  Using cached requests_toolbelt-0.8.0-py2.py3-none-any.whl
Collecting six (from bioblend->galaxy-parsec)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting requests!=2.12.0,!=2.12.1,>=2.4.3 (from bioblend->galaxy-parsec)
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting boto>=2.9.7 (from bioblend->galaxy-parsec)
  Using cached boto-2.48.0-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests!=2.12.0,!=2.12.1,>=2.4.3->bioblend->galaxy-parsec)
  Using cached certifi-2017.11.5-py2.py3-none-any.whl
Installing collected packages: justbackoff, pyyaml, future, six, junit-xml, xunit-wrapper, Click, urllib3, idna, chardet, certifi, requests, requests-toolbelt, boto, bioblend, wrapt, galaxy-parsec
Successfully installed Click-6.7 bioblend-0.10.0 boto-2.48.0 certifi-2017.11.5 chardet-3.0.4 future-0.16.0 galaxy-parsec-1.0.4 idna-2.6 junit-xml-1.7 justbackoff-0.4.0 pyyaml-3.12 requests-2.18.4 requests-toolbelt-0.8.0 six-1.11.0 urllib3-1.22 wrapt-1.10.11 xunit-wrapper-0.12
(.venv2) [hxr@mk:/tmp]$ python
Python 2.7.12 (default, Nov 20 2017, 18:23:56) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import parsec
>>> import parsec.cli
bernt-matthias commented 6 years ago

odd. it worked for a clean venv. thanks