pyperclip is failing to determine the clipboard for my system
any advice?
I am running CentOS 7
I have verified xclip and is working
cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
% echo "test" | xclip -i -sel clip
% echo "test selection" | xclip -i -sel clip
% xclip -o -sel clip
test selection
In [1]: import pyperclip
In [2]: pyperclip.copy("test selection")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/data/py36_venv/lib64/python3.6/site-packages/pyperclip/__init__.py", line 658, in lazy_load_stub_copy
copy, paste = determine_clipboard()
File "/home/data/py36_venv/lib64/python3.6/site-packages/pyperclip/__init__.py", line 568, in determine_clipboard
os.environ["XDG_SESSION_TYPE"] == "wayland" and
File "/usr/lib64/python3.6/os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'XDG_SESSION_TYPE'
'XDG_SESSION_TYPE'