Open JoelMon opened 5 years ago
Thanks for the report. Does installing xsel or xclip from apt help solve this problem?
Works as expected when xsel or xclip are installed.
raise PyperclipException
exception
Travis-Encrypt Error: It seems you do not have a copy/paste mechanism for your system. If on Linux try
sudo apt-install xclip
.
help="Copy the encrypted password to the clipboard. Note: xclip or xsel must be install on the system."
If you want to incorporate the above ideas, or in part, would it be ok if I give it a shot and merge in? Seems simple enough for me to handle.
Sure! All PRs are appreciated. :)
Wonderful! tomorrow I'll get started.
What do you think about this error message:
Pyperclip could not find a copy/paste mechanism for your system.
On Windows, no additional modules are needed.
On Mac, the pyobjc module is used, falling back to the pbcopy and pbpaste cli
commands. (These commands should come with OS X.).
On Linux, install xclip or xsel via package manager. For example, in Debian:
sudo apt-get install xclip
sudo apt-get install xsel
Otherwise on Linux, you will need the gtk or PyQt5/PyQt4 modules installed.
gtk and PyQt4 modules are not available for Python 3,
and this module does not work with PyGObject yet.
Note: There seems to be a way to get gtk on Python 3, according to:
https://askubuntu.com/questions/697397/python3-is-not-supporting-gtk-module
Cygwin is currently not supported.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
Is that good or too much?
This is a great start! I can think of a few changes.
Instead of writing a message for Windows and Mac, I would write something along the lines of If you're seeing this error on Windows or Mac please visit https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
or maybe point to the pyperclip issue tracker.
Also, instead of writing things about gtk, PyQt, and PyGObject, I would direct people to the same website. I don't think it's Travis-Encrypt's job to solve dependency issues apart from xsel and xclip.
System
Ubuntu 10.04
Python Installed
Installation
Installed travis-encrypt via
pip3
Python's Trackback