Open nick-youngblut opened 6 months ago
@asweigart the docs state:
pip install gtk
to install the gtk Python module.
...but does the gtk
package still exist on pypi? I can't find it.
The same goes for PyQt4. I only see PyQt5 and PyQt6.
@asweigart should this repo be considered a public archive, since it has not been updated in 3 years?
I had a similar issue the other day when using pyperclip in GitHub Actions. The issue was solved by using Xvfb. If my understanding is correct, while xclip and the other copy/paste mechanisms provide the ability to copy and paste from the clipboard, the clipboard itself is provided by X, which Xvfb emulates. In my case the solution was something like this:
sudo apt-get -y install xvfb
xvfb-run pytest
I'm using
Debian GNU/Linux 12
(FROM python:3.9-slim-buster
), and have xclip installed.However, in my streamlit app, I'm still getting the error:
I'm using
pyperclip==1.8.2
My dockerfile:
My requirements.txt file:
The relevant streamlit code is basically the same at shown in https://discuss.streamlit.io/t/how-to-add-copy-to-clipboard-button-to-text-area/49648/2.