-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Description
On trying to import a new cmd2 install on a Ubuntu system where pyperclip cannot access the clipboard (triggering the failure path in https://github.com/python-cmd2/cmd2/blob/master/cmd2.py#L326), I'm getting the following traceback:
File "[snip]/__init__.py", line 9, in <module>
from cmd2 import Cmd
File "/home/ubuntu/virtualenvs/venv-2.7.10/lib/python2.7/site-packages/cmd2.py", line 333, in <module>
except pyperclip.exceptions.PyperclipException:
AttributeError: 'module' object has no attribute 'exceptions'
It seems cmd2's unpinned pyperclip dependency is pulling in a breaking-change pyperclip release from yesterday. In asweigart/pyperclip@df268c1, pyperclip was restructured into a single file meaning pyperclip.exceptions.PyperclipException no longer resolves.