graph-genome / component_segmentation

Read in ODGI Bin output and identify co-linear components
Apache License 2.0
3 stars 4 forks source link

ModuleNotFoundError: No module named 'matrixcomponent' #13

Closed subwaystation closed 4 years ago

subwaystation commented 4 years ago

I did a fresh clone of the current master and ran into:

ubuntu@covidviz:~/sh$ python component_segmentation/matrixcomponent/segmentation.py 
Traceback (most recent call last):
  File "component_segmentation/matrixcomponent/segmentation.py", line 15, in <module>
    from matrixcomponent.matrix import Path, Component, LinkColumn, Bin
ModuleNotFoundError: No module named 'matrixcomponent'

A dirty workaround is:

export PYTHONPATH=$PYTHONPATH:/home/ubuntu/software/component_segmentation/matrixcomponent

and changing directory to component_segmentation.

What can we do that this works out of the box?

josiahseaman commented 4 years ago

Thomas and I also messed with this, but we weren't able to find a solution inside Pycharm. (@mandosoft)