DasLab / draw_rna

Draw RNA secondary structures in python.
MIT License
43 stars 14 forks source link

import path issue #9

Closed mycode-bit closed 2 years ago

mycode-bit commented 2 years ago

hello, I installed it by running "python setup.py install". I am able to run it in draw_rna directory without the problem. However, if I run it in other directory, it won't work, showing the following error:

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 from ipynb.draw import draw_struct in load_module(self, fullname) ~/anaconda3/lib/python3.8/site-packages/draw_rna-0.1-py3.8.egg/ipynb/draw.py in 1 import matplotlib.pyplot as plt ----> 2 import draw_rna.draw as d 3 from draw_rna.draw_utils import seq2col 4 5 def draw_struct(seq, secstruct, c=None, line=False, large_mode=False, ModuleNotFoundError: No module named 'draw_rna.draw' I tried to use sys.path.append to point to the directory. it does not work either. Could you check what is the problem?