Skip to content

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

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

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

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

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

Comments

@nipunbatra
Copy link
Contributor

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
Copy link
Contributor

jreback commented Jun 10, 2013

it's in the doc string

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

@nipunbatra
Copy link
Contributor Author

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
Copy link
Contributor

jreback 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
Copy link
Contributor

hayd 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
Copy link
Contributor Author

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

On Mon, Jun 10, 2013 at 11:31 PM, jreback [email protected] 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
Copy link
Contributor

jreback 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 mentioned this issue Jun 11, 2013
@hayd
Copy link
Contributor

hayd 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
Copy link
Contributor

jreback commented Jun 12, 2013

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

@jreback jreback closed this as completed Jun 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants