Wesmania wrote:If that's some standalone installer then I wouldn't be surprised if there's a version mismatch. Googling suggests that sip uses api version 0.12 from sip version 4.19, maybe that can help you. It seems there's a 'python3-pyqt5.qtwebengine' package in Ubuntu 17.04, so maybe that's some solution.
it does and doesn't installing sip (folowing this guide :
https://pypi.python.org/pypi/SIP/4.19 ) doesn't work either
- Code: Select all
t@tsu:~$ pip3 install sip
Collecting sip
Using cached sip-4.19.3-cp35-cp35m-manylinux1_x86_64.whl
Installing collected packages: sip
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/lib/python3.5/shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/sip.so'
I've run the same steps under the viirtual machine and got this result :
- Code: Select all
r@r-VirtualBox:~/ff/faf-client$ python src/__main__.py
Traceback (most recent call last):
File "src/__main__.py", line 33, in <module>
from PyQt5 import QtWidgets, uic
ImportError: No module named 'PyQt5'
r@r-VirtualBox:~/ff/faf-client$ python -V
Python 3.5.3
this shouldn't be happening because under native when i'd installed qt5 and aliased python3 it could find QT5. now with the same step reproduced under the virtual machine it can't find QT5.
(though whereis works)
I continued in the virtual machine :
- Code: Select all
r@r-VirtualBox:~/ff/faf-client$ sudo apt-get install python3-pyqt5
...............
r@r-VirtualBox:~/ff/faf-client$ python src/__main__.py
Traceback (most recent call last):
File "src/__main__.py", line 40, in <module>
from PyQt5 import QtWebEngineWidgets
ImportError: cannot import name 'QtWebEngineWidgets'
r@r-VirtualBox:~/ff/faf-client$
And so now I'm stuck there.
it seems remnants of Qtwebkit in the code are the issue.
https://stackoverflow.com/questions/378 ... s-in-pyqt5