gem-pasteur / Integron_Finder

Bioinformatics tool to find integrons in bacterial genomes
GNU General Public License v3.0
67 stars 22 forks source link

Issue with colorlog logging #93

Closed alexweisberg closed 3 years ago

alexweisberg commented 3 years ago

Version of Integron_Finder:

integron_finder version 2-2021-09-27 Using:

Authors:

Citation:

Identification and analysis of integrons and cassette arrays in bacterial genomes Jean Cury; Thomas Jove; Marie Touchon; Bertrand Neron; Eduardo PC Rocha Nucleic Acids Research 2016; doi: 10.1093/nar/gkw319

OS

Expected behavior

Running of integron_finder

Actual behavior

Running integron_finder with python3 after installing with pip from github gives the following error:

python3 /myhomefolder/.local/bin/integron_finder -v genome.fa
Traceback (most recent call last):
  File "/myhomefolder/.local/bin/integron_finder", line 8, in <module>
    sys.exit(main())
  File "/myhomefolder/.local/lib/python3.7/site-packages/integron_finder/scripts/finder.py", line 521, in main
    out=not config.mute)
  File "/myhomefolder/.local/lib/python3.7/site-packages/integron_finder/__init__.py", line 78, in init_logger
    logging = colorlog.logging.logging
AttributeError: module 'colorlog' has no attribute 'logging'

The colorlog module appears to be up to date (version 6.4.1). Thank you!

alexweisberg commented 3 years ago

It turns out this issue is due to changes in a recent version of colorlog. Colorlog version 6.4.1 has renamed the colorlog.logging function to colorlog.wrappers. Installing an earlier version of colorlog doesn't have this issue.