-
Notifications
You must be signed in to change notification settings - Fork 198
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
Cannot use it with Docker #161
Comments
Same behavior with me. |
Seems we have the same/similar issue, we're using pyperclip with RobotFramework, using just |
This also happens with me. i try to run robotframework on Docker. but this pyperclip is not work. |
It’s not just about the program used to access the clipboard, but sharing the system resources that are accessed by these programs to work with clipboard. |
Hi,
|
I've tried but using pyperclip failed... Below is part of my Dockerfile
Did I miss something? |
yes, xvfb creates a fake X context so that X programs can work. it’s not the same as giving access to the host X server. |
@merwok Could you explain more?.. .. and I'd like to know how can I solve this in docker.. |
this isn’t the place to explain how X clients connect to the X server, but here are examples of docker containers and run commands for graphical apps: https://blog.jessfraz.com/post/docker-containers-on-the-desktop/#guis |
I tried this and it worked for my use case:
The UPDATE: This seems to work to make However, reading from the clipboad ( And there's a warning seen in logs: |
I tried to Dockerize my application and everytime I get "Pyperclip could not find a copy/paste mechanism for your system."
I have tried installing xclip, xsel and the Python packages that might be needed, but I still be getting this error.
I tried using ubuntu:18.04 base image.
The text was updated successfully, but these errors were encountered: