尝试在Debian 9中使用pyperclip.copy()时出现Python / GTK错误

时间:2019-01-21 12:54:15

标签: python python-3.x debian xfce pyperclip

我是编程方面的新手,我以不同的方式搜索了Google中的波纹管错误,但没有找到合理结果的运气。

我的代码基本上是在尝试:

pyperclip.copy(str(DICTIONARY[KEY]))

我在命令行中对该程序的调用是:

python3 ./PasswordManager.py blog

其中“博客”是上述功能的“关键”。

这些是我收到的错误:

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:186:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2749:24: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2749:24: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2940:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2940:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2946:17: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4083:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4083:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4088:17: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4729:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4729:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: xfce.css:47:16: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: xfce.css:47:16: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:16:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:16:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:26:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:26:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:40:16: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:40:16: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:96:14: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:100:16: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:100:16: Expected a string.

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:279:14: not a number

(python3:26893): Gtk-WARNING **: Theme parsing error: lightdm-gtk-greeter.css:279:14: Expected a string.

1 个答案:

答案 0 :(得分:0)

这完全被解决

sudo apt-get install xclip xsel

来源:Pyperclip is giving an error