Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to_clipboard() required xsel to be installed in Linux #3837

Closed
nipunbatra opened this issue Jun 10, 2013 · 8 comments · Fixed by #3848

Comments

@nipunbatra
Copy link
Contributor

commented Jun 10, 2013

Must be mentioned somewhere, or atleast the message should be more helpful. I saw the Popen failing and installed xsel and it worked.
The last error line was

OSError: [Errno 2] No such file or directory
@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 10, 2013

it's in the doc string

that's one reason we need in docs
(to put a warning up)

@nipunbatra

This comment has been minimized.

Copy link
Contributor Author

commented Jun 10, 2013

Sure. Thats for Linux, anything else needed for other OS?
Can the error message be made more useful for the user, maybe like,
Missing Dependency: Install ...

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 10, 2013

sure....error message could def be better

if you want to attempt on windows

I think you can grab the clipboard via py32win.....

if you want to investigate would be great

@hayd

This comment has been minimized.

Copy link
Contributor

commented Jun 10, 2013

Fixing the exception message could be as simple as this: hayd@8d0a57e ?

(if I could spell platform / write one sentence.)

@nipunbatra

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2013

Don't use Windows, so can't try this!

On Mon, Jun 10, 2013 at 11:31 PM, jreback notifications@github.com wrote:

sure....error message could def be better

if you want to attempt on windows

I think you can grab the clipboard via py32win.....

if you want to investigate would be great


Reply to this email directly or view it on GitHubhttps://github.com//issues/3837#issuecomment-19215681
.

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2013

http://coffeeghost.net/src/pyperclip.py

this looks like it handles all platforms
I think license compatible too
and is pretty short

@hayd hayd referenced this issue Jun 11, 2013
@hayd

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2013

@jreback looks like it's an easy drop in replacement to util/clipboard.py.

pr on the way, not tested on windows or linux (with various things installed).

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2013

@nipunreddevil closing this in favor of the new pyperclip & your new docs....

@jreback jreback closed this Jun 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.