vierstralab / footprint-tools

A toolset to analyze genomic footprinting data
GNU General Public License v3.0
19 stars 3 forks source link

KeyError when running via conda #21

Closed jnhutchinson closed 2 years ago

jnhutchinson commented 2 years ago

Hi Jeff, trying to get this up and running!

On both OSX and the HPC at HMS, I see the following error when I try to run ftd after nstalling via the conda:

ftd --version

Traceback (most recent call last):
File "/home/jnh7/anaconda3/envs/footprint-tools/bin/ftd", line 5, in <module>
from footprint_tools.__main__ import main
File "/home/jnh7/anaconda3/envs/footprint-tools/lib/python3.9/site-packages/footprint_tools/__main__.py", line 8, in <module>
logging.config.fileConfig(pkg_resources.resource_filename(__name__, "logging.conf"))
File "/home/jnh7/anaconda3/envs/footprint-tools/lib/python3.9/logging/config.py", line 71, in fileConfig
formatters = _create_formatters(cp)
File "/home/jnh7/anaconda3/envs/footprint-tools/lib/python3.9/logging/config.py", line 104, in _create_formatters
flist = cp["formatters"]["keys"]
File "/home/jnh7/anaconda3/envs/footprint-tools/lib/python3.9/configparser.py", line 963, in __getitem__
raise KeyError(key)
KeyError: 'formatters'

Digging around, I'm seeing suggestions that it may be because Python can't find the config file as described in this Stack Overflow post?

jvierstra commented 2 years ago

Try installing the colorlog package: pip install colorlog

jnhutchinson commented 2 years ago

I'm still seeing the same error after a) running pip install colorlog at the OS CLI and b) within the conda environment via conda install colorlog or c) adding to the conda build yaml. I was able to get it installed via pip in a Docker python build image though, so I do have a working version...

jnhutchinson commented 2 years ago

Made some fixes to MANIFEST.in and setup.py and submitted a pull request.