Q2studio install - No Module named `gevent`

I am having a similar error, but the above does not resolve the issue. I am running macOS 10.13.2, and the latest builds of node and npm. The qiime 2 environment is installed and works properly, but i get a blank electron screen when I follow the installation instructions. See the following error:

[email protected] start /Users/kent/qiime2-moving-pictures-tutorial/q2studio-2017.11.0/q2studio-2017.11.0/q2studio-2017.11.0
cross-env NODE_ENV=production electron -r babel-register build/main.js

API (error): Traceback (most recent call last):
File “/Users/kent/miniconda3/envs/qiime2-2017.11/lib/python3.5/runpy.py”, line 183, in _run_module_as_main
API (error): mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/Users/kent/miniconda3/envs/qiime2-2017.11/lib/python3.5/runpy.py”, line 142, in _get_module_details
API (error): return _get_module_details(pkg_main_name, error)
File “/Users/kent/miniconda3/envs/qiime2-2017.11/lib/python3.5/runpy.py”, line 109, in _get_module_details
API (error): import(pkg_name)
File “/Users/kent/qiime2-moving-pictures-tutorial/q2studio-2017.11.0/q2studio-2017.11.0/q2studio-2017.11.0/q2studio/init.py”, line 11, in
API (error): from .server import start_server
File “/Users/kent/qiime2-moving-pictures-tutorial/q2studio-2017.11.0/q2studio-2017.11.0/q2studio-2017.11.0/q2studio/server.py”, line 14, in
API (error): from gevent.pywsgi import WSGIServer
ImportError: No module named 'gevent’
API process exited with code 1

Hi @babyDoc — looks like maybe you missed a step in the install directions:

$ pip install .

In this case, gevent is a python dependency that would be installed with the pip command listed above.

Can you review the install guide again, and make sure you run every step? If you are still seeing an error, let us know! :t_rex:

Yes. I have repeated the process and have followed every step. I noted this error this time:

Command “/Users/kent/miniconda3/envs/qiime2-2017.11/bin/python -u -c “import setuptools, tokenize;file=’/private/var/folders/jl/q7f85rnn1rggqpyv12ld1m7m0000gn/T/pip-build-kh5sxagg/greenlet/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /var/folders/jl/q7f85rnn1rggqpyv12ld1m7m0000gn/T/pip-ls73iir4-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /private/var/folders/jl/q7f85rnn1rggqpyv12ld1m7m0000gn/T/pip-build-kh5sxagg/greenlet/

If I continue I get the same result above.

Hmm!! This new error looks like the same issue as before — not all the dependencies appear to be there (this time it is greenlet, which is related to gevent). Maybe it would make sense for you to remove this conda environment and try again?

I reinstalled everything: miniconda3, Node.js and qiime2. When I get to pip install . I get the following error: Could not find a version that satisfies the requirement qiime2==2017.11.* (from q2studio==2017.11.0) (from versions: )
No matching distribution found for qiime2==2017.11.* (from q2studio==2017.11.0)

Hi @babyDoc - that error usually crops up when you forget to activate your conda environment prior to running commands. I suggest you go back to the install guide and make sure you read all of the content there, including the Notes (in blue), and all of the supporting prose - there should be enough information there to get you moving in the right direction!

Two things worth noting though - the Studio is a prototype interface - not all QIIME 2 actions are available through the Studio, so you likely won’t be able to use it for every aspect of your analysis. The second point is that we do distribute the Studio pre-built in the official VirtualBox image, so if you are still having issues with installing locally, you could give the VirtualBox image a shot!

Good luck and keep us posted! :t_rex:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.