genomicsITER / NanoRTax

Real-time analysis pipeline for nanopore 16S rRNA data
MIT License
12 stars 7 forks source link

Errors while trying to run the webapp #9

Open BirgitRijvers opened 1 year ago

BirgitRijvers commented 1 year ago

Hi, I'm trying to set up the viz web application provided with this pipeline for visualizing the output. I have succesfully created a new Conda environment based on the provided 'environment.yml' file, but when I run $python dashboard.py I get this error:

Traceback (most recent call last):
  File "dashboard.py", line 2, in <module>
    import dash
ModuleNotFoundError: No module named 'dash'

This is strange, because the 'environment.yml' file looks like this:

name: nanortax_webapp
channels:
  - conda-forge
  - defaults
  - anaconda
dependencies:
  - conda-forge::python=3.6.13
  - conda-forge::typing_extensions=3.10.0.0
  - conda-forge::dash=1.19.0
  - conda-forge::dash-core-components=1.15.0
  - conda-forge::dash-html-components=1.1.2
  - conda-forge::dash-bootstrap-components=0.12.0
  - conda-forge::dash-table=4.11.2
  - anaconda::scikit-bio=0.5.4
  - plotly::plotly=4.14.3
  - numpy=1.19.5
  - pandas=0.22.0

The dash module thus should be in the Conda environment, but the script can't seem to use it. I installed dash manually with $sudo pip install dash==1.19.0 and I tried to run the 'dashboard.py' script again. I now got this as error message:

Traceback (most recent call last):
  File "dashboard.py", line 6, in <module>
    import dash
  File "/usr/local/lib/python3.8/dist-packages/dash/__init__.py", line 5, in <module>
    from .dash import Dash, no_update  # noqa: F401,E402
  File "/usr/local/lib/python3.8/dist-packages/dash/dash.py", line 22, in <module>
    from werkzeug.debug.tbtools import get_current_traceback
ImportError: cannot import name 'get_current_traceback' from 'werkzeug.debug.tbtools' (/usr/local/lib/python3.8/dist-packages/werkzeug/debug/tbtools.py)

Which indicates that another package that should already be in the Conda environment can't be used.

I am not sure whether I should manually install all the missing packages and modules that result in errors or if there is another solution for this problem. I would gladly hear from anybody who has experienced the same or a simmilar issue, or has some tips for me.