Cliff 2.11.0 BREAKED by cmd2 0.8.3

Bug #1762715 reported by Puissant Clement
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cliff
Invalid
Undecided
Unassigned

Bug Description

Hi,

Reproduce: Have a cliff project (here: acliffproject) to launch the console

(virtualenv) pip install acliffproject => install cliff 2.11.0
(virtualenv) acliffproject

ERROR:

Traceback (most recent call last):
  File "/home/nagha/tools/python/bin/acliffproject", line 11, in <module>
    sys.exit(main())
  File "/home/nagha/tools/python/lib/python3.6/site-packages/acliffproject/acliffproject.py", line 31, in main
    return beapi.run(argv)
  File "/home/nagha/tools/python/lib/python3.6/site-packages/cliff/app.py", line 277, in run
    result = self.interact()
  File "/home/nagha/tools/python/lib/python3.6/site-packages/cliff/app.py", line 316, in interact
    from .interactive import InteractiveApp
  File "/home/nagha/tools/python/lib/python3.6/site-packages/cliff/interactive.py", line 20, in <module>
    import cmd2
  File "/home/nagha/tools/python/lib/python3.6/site-packages/cmd2.py", line 157, in <module>
    from wcwidth import wcswidth
ModuleNotFoundError: No module named 'wcwidth'

Conclusion:
cmd2 0.8.2 works, not 0.8.3 didn't get time to inspect deeper cmd2 side but pinning your cmd2 version in requirements.txt should be safer

In the meantime we will have to force our package requirements to override yours with pinned cmd2 ...

Hope you can reproduce it =)

Thanks !

Tags: break
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The problem here appears to be the way cmd2 is handling dependencies, rather than anything to do with cliff itself. This section of the setup.py from cmd2 should be converted to use setuptools environment markers instead: https://github.com/python-cmd2/cmd2/blob/master/setup.py#L80

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I've filed https://github.com/python-cmd2/cmd2/issues/346 and am going to close this bug.

Changed in python-cliff:
status: New → Invalid
Revision history for this message
Puissant Clement (nagha) wrote :

Thanks for your reactivity and diving into the cmd2 issue !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.