Skip to content

Breaking change in unpinned pyperclip dependency #230

@finnigja

Description

@finnigja

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions