#925 ModuleNotFoundError: No module named 'humanize' with copr-cli-1.80
Closed: Fixed 5 years ago by praiskup. Opened 5 years ago by szpak.

My Travis build publishing the doublecmd RPM to COPR started to fail recently on copr-cli execution with:

Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/bin/copr-cli", line 7, in <module>
    from copr_cli.main import main
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/copr_cli/main.py", line 36, in <module>
    from .util import ProgressBar, json_dumps
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/copr_cli/util.py", line 3, in <module>
    import humanize
ModuleNotFoundError: No module named 'humanize'

The failing call is to get the latest version available in COPR:

copr-cli get-package --name doublecmd-gtk --with-latest-succeeded-build "${COPR_PROJECT}"

There were no changes in the script, however, the version of copr-cli installed by pip changed from 1.79.1 to 1.80.

The failing build reports:

$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.3
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6)
...
$ pip install copr-cli simplejson
Collecting copr-cli
  Downloading https://files.pythonhosted.org/packages/68/38/159cd1331d07f0bcee87745702fc715314f3528b4e02a8b46da3443117a4
/copr-cli-1.80.tar.gz (42kB)
...

The latest successful build had:

$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.3
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6)
...
$ pip install copr-cli simplejson
Collecting copr-cli
  Downloading https://files.pythonhosted.org/packages/6b/cc/1428df6ac3f3f934d3aaeeeee9352d43f28e33ea3a711483caa664c76912
/copr-cli-1.79.1.tar.gz
...

It is a problem with the implementation in 1.80 or I need to configure something on the Travis side to make it work (there could be also some changes in the Travis build image)?


Hello @szpak,
thank you for the feedback.

I think, that this should be fixed by PR#885.

Maybe we should release a new version of copr-cli, what do you think @praiskup?

I updated pypi, why not. @szpak please update to 1.81.

Metadata Update from @praiskup:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Log in to comment on this ticket.

Metadata