sciapp / nojava-ipmi-kvm

nojava-ipmi-kvm is a utility to access Java based ipmi kvm consoles without a local java installation.
MIT License
78 stars 26 forks source link

Some questions about PyQt5 #1

Closed Jeff-liaojinfu closed 5 years ago

Jeff-liaojinfu commented 5 years ago

Hi:

When I use nojava-ipmi-kvm 0.1.4, Some questions about PyQt5

When I execute nojava-ipmi-kvm , I throw the following exception: File "/usr/python37/lib/python3.7/site-packages/nojava_ipmi_kvm/browser.py", line 22, in from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets ImportError: cannot import name 'QtWebEngineWidgets' from 'PyQt5' (/usr/python37/lib/python3.7/site-packages/PyQt5/init.py)

The version I am using is PyQt5==5.12.1, there is no such module QtWebEngineWidgets. Which version do you use?

IngoMeyer441 commented 5 years ago

Hey, thanks for trying out nojava-ipmi-kvm. Not all versions of PyQt5 (for example from conda) include the web engine part of the library. How did you install PyQt5 and this project? Our developer group uses a self compiled version of PyQt5 with QtWebEngine set to enabled.

Jeff-liaojinfu commented 5 years ago

Thanks for answer I think this is my current problem. I use pip3 to install the PyQt5 5.12, the last package,but no QtWebEngine

now i install the PyQt5 5.10.1 has done

IngoMeyer441 commented 5 years ago

I was a bit confused that the PyPI package did not work (because I am sure it was working in the past). The reason is a packaging change in the PyQt5 project. Now, QtWebEngine is a separate package that must be added as a dependency to this project. The dependencies are updated with the lastest release v0.1.5. Now, you should be able to install nojava-ipmi-kvm with pip3. There is no need to compile Qt or PyQt yourself. Thanks for pointing me to this problem. :+1: