danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
612 stars 216 forks source link

qtpy internal import error #908

Closed IvanKenevich closed 8 months ago

IvanKenevich commented 9 months ago

Python version

('python=3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit '
 '(AMD64)]')
'os=Windows-10-10.0.19044-SP0'
'numpy=1.25.2'
ldf is not supported
xls is not supported
xlsx is not supported
yaml is not supported
'asammdf=7.3.14'

Code

Code snippet

Just run asammdf.exe

Traceback

Traceback (most recent call last):
  File "C:\Users\IKENEVI\Dox\code\asammdf\.venv\lib\site-packages\asammdf\gui\widgets\gps.py", line 10, in <module>
    from pyqtlet2 import L, leaflet, MapWidget
  File "C:\Users\IKENEVI\Dox\code\asammdf\.venv\lib\site-packages\pyqtlet2\__init__.py", line 8, in <module>
    from .mapwidget import MapWidget
  File "C:\Users\IKENEVI\Dox\code\asammdf\.venv\lib\site-packages\pyqtlet2\mapwidget.py", line 5, in <module>
    from qtpy.QtWebEngineWidgets import QWebEngineView, QWebEnginePage
  File "C:\Users\IKENEVI\Dox\code\asammdf\.venv\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 64, in <module>
    from PySide6.QtWebEngineCore import (
ImportError: cannot import name 'QWebEngineScrip' from 'PySide6.QtWebEngineCore' (C:\Users\IKENEVI\Dox\code\asammdf\.venv\lib\site-packages\PySide6\QtWebEngineCore.pyd)

Description

GUI tool still opens. Installed with pip install asammdf[gui]. Issue seems to be in the qtpy library, and was fixed a week ago: https://github.com/spyder-ide/qtpy/commit/8a79101010e1407683320431d9b406b676dcbc1a

danielhrisca commented 8 months ago

GUI tool still opens. Installed with pip install asammdf[gui]. Issue seems to be in the qtpy library, and was fixed a week ago:

With the 7.3.16 release the command pip install asammmdf[gui] will only install the pinned requirements