我一直在阅读以下python脚本包:
https://github.com/werdeil/clementine-last-export
要从pyqt4转换为pyqt5,因为我的操作系统不再支持pyqt4。
我同时进行了手动转换和使用以下脚本的转换:
https://github.com/rferrazz/pyqt4topyqt5
脚本和从pyqt4-> pyqt5进行的转换似乎都是直接的,但是一旦完成脚本的转换,我仍然会得到:
Traceback (most recent call last):
File "gui.py", line 374, in <module>
main()
File "gui.py", line 355, in main
cleg = ClemLastExportGui()
File "gui.py", line 45, in __init__
self.load_config()
File "gui.py", line 350, in load_config
self.config = pickle.load(open(self.configfile))
File "/usr/lib64/python2.7/pickle.py", line 1384, in load
return Unpickler(file).load()
File "/usr/lib64/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/lib64/python2.7/pickle.py", line 1139, in load_reduce
value = func(*args)
ImportError: No module named PyQt4.QtCore
尽管事实上对pyqt4的引用在源中也没有激活:
~/projects/clementine-last-export $ grep -i pyqt4 -r *
README.txt:pyqt4 stopped being supported by most Linux Operating Systems
我查看了系统中的库,发现pyqt4完全消失了,所以似乎不太可能是原因。
有人可以在这里看看我的代码吗
https://github.com/davidsmind/clementine-last-export
如果这是系统问题,还是向我指出正确的方向?