dib-lab / dammit

just annotate it, dammit!
http://dib-lab.github.io/dammit/
Other
88 stars 28 forks source link

error using dammit GFF3Parser in binder #105

Closed johnsolk closed 6 years ago

johnsolk commented 6 years ago

I would love to use dammit's GFF3Parser function in a binder for this repo:

https://github.com/ljcohen/Fundulus_heteroclitus_genome_stats

Binder

My understanding is the requirements.txt uses pip install. Everything seemed to launch successfully when the binder was created, no errors installing dammit. However, when I executed this command from the notebook:

from dammit.fileio.gff3 import GFF3Parser

the following error occurred:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-9-7b94f9e9ce01> in <module>()
      1 import pandas as pd
----> 2 from dammit.fileio.gff3 import GFF3Parser

/srv/venv/lib/python3.6/site-packages/dammit/__init__.py in <module>()
      2 
      3 import logging
----> 4 import log
      5 logger = log.DammitLogger()
      6 

ModuleNotFoundError: No module named 'log'

Is there anything I can include in my requirements.txt to fix this?

camillescott commented 6 years ago

Ah, this is probably because I've yet to push 1.0 to PyPI :) I'll do that.

johnsolk commented 6 years ago

Awesome, thank you!

camillescott commented 6 years ago

Try dammit==1.0rc0 in your binder requirements, that should bring the new version in.

camillescott commented 6 years ago

Sorry, scratch that -- you want dammit==1.0rc2 in your reqs, or pip install dammit==1.0rc2 manually.

johnsolk commented 6 years ago

from dammit.fileio.gff3 import GFF3Parser works from the launched binder now, thank you!