Edinburgh-Genome-Foundry / DnaFeaturesViewer

:eye: Python library to plot DNA sequence features (e.g. from Genbank files)
https://edinburgh-genome-foundry.github.io/DnaFeaturesViewer/
MIT License
584 stars 90 forks source link

ImportError: No module named resources #10

Open sarah872 opened 6 years ago

sarah872 commented 6 years ago

I am having troubles running the following script:

from dna_features_viewer import BiopythonTranslator
from bokeh.resources import CDN
from bokeh.embed import file_html

record = BiopythonTranslator().translate_record(record="temp8")
plot = record.plot_with_bokeh(figure_width=8)

with open("plot_with_bokeh.html", "w+") as f:
    f.write(file_html(plot, CDN, "Example Sequence"))

I am getting the following error:

Traceback (most recent call last):
  File "bokeh2.py", line 2, in <module>
    from bokeh.resources import CDN
  File "/Users/Tobias/ucloud/Projects/19_DNAfeatureViewer/bokeh_works/good_note3/bokeh.py", line 2, in <module>
    from bokeh.resources import CDN
ImportError: No module named resources

the modules bokeh + pandas has been correctly installed, as the example scripts you provided run without error.