Stephane-S / Simplot_PlusPlus

GNU General Public License v3.0
31 stars 6 forks source link

Two issues (and their fixes) when installing on Debian 11 #5

Open max-hill opened 1 year ago

max-hill commented 1 year ago

Hi,

I ran into two issues installing Simplot on Debian 11 when following the install instructions. I am recording here the issues I had and the solutions I found, in hopes that it might be helpful.

When following the install instructions, I had no problems running Steps 1-4. Then in Step 5, when running the line

python3 -m pip install -r requirements.txt

the code failed and returned a very long message. The error message terminated with

ERROR: Failed building wheel for pandas 
Failed to build pandas
ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

To get around this, I manually installed the dependencies with the following code

SimPlot++_env/bin/pip install PyQt5 cogent3 pandas matplotlib tabulate psutil Bio networkx bokeh colorcet

Then, having installed the dependencies, I ran

SimPlot++_env/bin/python3 main.py

But this gave another error:

ImportError: cannot import name 'Panel' from 'bokeh.models'

This appears to be due to a recent name change of "Panel" to "TabPanel" (see https://github.com/bokeh/bokeh/issues/12728#issuecomment-1382960373). I resolved this error by manually editing the file /lib/SimPlot/quality_report.py where I replaced the line from bokeh.models import Panel with from bokeh.models import TabPanel

Having done this, I can now start SimPlot by running

SimPlot++_env/bin/python3 main.py

I haven't tried running SimPlot yet with my data, but will update if I run into further issues.

Best, Max