bartongroup / ProIntVar

The core bits of ProIntVar
MIT License
2 stars 0 forks source link

AttributeError: module 'click_log' has no attribute 'init' #5

Closed stuartmac closed 7 years ago

stuartmac commented 7 years ago

Trying to run the CLI...

(varalign_dev_py3) smacgowan@ningal prointvar $ ProIntVar download --sifts 2pah
Traceback (most recent call last):
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/bin/ProIntVar", line 11, in <module>
    load_entry_point('ProIntVar-Core==0.1', 'console_scripts', 'ProIntVar')()
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py", line 565, in load_entry_point
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py", line 2598, in load_entry_point
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py", line 2258, in load
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/__init__.py", line 2264, in resolve
  File "/homes/smacgowan/anaconda2/envs/varalign_dev_py3/lib/python3.5/site-packages/ProIntVar_Core-0.1-py3.5.egg/cli/main.py", line 238, in <module>
    @click_log.init("biodownloader")
AttributeError: module 'click_log' has no attribute 'init'
biomadeira commented 7 years ago

@stuartmac maybe a version specific thing? haven't seen that error here!

stuartmac commented 7 years ago

@biomadeira could be, I've got click-log-0.2.0

stuartmac commented 7 years ago

@biomadeira yep, CLI is working if I rollback to click-log-0.1.8

biomadeira commented 7 years ago

Fixed here https://github.com/bartongroup/FM_ProIntVar-Core/commit/b5a887842d79088399233f856798a8582b30dd0c.

I think it's best to use the new approach and impose a version requirement for click_log.