ModDotPlot
ModDotPlot copied to clipboard
Missing dependency: svgutils not installed via pip install .
When installing the project via pip install . or pip install moddotplot, the dependency svgutils is not automatically installed. This results in a ModuleNotFoundError: No module named 'svgutils' during execution.
code:
pip install .
Processing /home/asriel/ModDotPlot
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
...
moddotplot -h
Traceback (most recent call last):
File "/home/asriel/micromamba/envs/mod/bin/moddotplot", line 5, in <module>
from moddotplot.__main__ import main
File "/home/asriel/micromamba/envs/mod/lib/python3.12/site-packages/moddotplot/__main__.py", line 4, in <module>
from moddotplot.moddotplot import main
File "/home/asriel/micromamba/envs/mod/lib/python3.12/site-packages/moddotplot/moddotplot.py", line 25, in <module>
from moddotplot.static_plots import read_df_from_file, create_plots, create_grid
File "/home/asriel/micromamba/envs/mod/lib/python3.12/site-packages/moddotplot/static_plots.py", line 30, in <module>
import svgutils.transform as sg
ModuleNotFoundError: No module named 'svgutils'
pip install svgutils
Collecting svgutils
Downloading svgutils-0.3.4-py3-none-any.whl.metadata (1.1 kB)
Collecting lxml (from svgutils)
Downloading lxml-5.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (3.5 kB)
Downloading svgutils-0.3.4-py3-none-any.whl (10 kB)
Downloading lxml-5.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (5.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.0/5.0 MB 4.5 MB/s eta 0:00:00
Installing collected packages: lxml, svgutils
Successfully installed lxml-5.4.0 svgutils-0.3.4
moddotplot -h
__ __ _ _____ _ _____ _ _
| \/ | | | | __ \ | | | __ \| | | |
| \ / | ___ __| | | | | | ___ | |_ | |__) | | ___ | |_
| |\/| |/ _ \ / _` | | | | |/ _ \| __| | ___/| |/ _ \| __|
| | | | (_) | (_| | | |__| | (_) | |_ | | | | (_) | |_
|_| |_|\___/ \__,_| |_____/ \___/ \__| |_| |_|\___/ \__|
v0.9.4
usage: moddotplot [-h] {interactive,static} ...
ModDotPlot: Visualization of Tandem Repeats
positional arguments:
{interactive,static} Choose mode: interactive or static
interactive Interactive mode commands
static Static mode commands
options:
-h, --help show this help message and exit
Hi,
I've submitted a pull request (#47 ) to address this issue by adding svgutils to the dependencies list in pyproject.toml.
You can review the changes here: #47
If this PR is merged, this issue can likely be closed.
Please let me know if any further adjustments are needed.
Thanks for your time! 🙌