asammdf icon indicating copy to clipboard operation
asammdf copied to clipboard

Asammdf not starting

Open a543c23 opened this issue 1 year ago • 3 comments

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.19043-SP0' 'numpy=1.26.4' Traceback (most recent call last): File "C:\Users\eck\asamdf_test.py", line 15, in import asammdf File "C:\Program Files\Python39\lib\site-packages\asammdf_init_.py", line 16, in from .gui import plot File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\plot.py", line 8, in from .widgets.plot_standalone import PlotWindow File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\widgets\plot_standalone.py", line 8, in from .plot import Plot, PlotSignal File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\widgets\plot.py", line 27, in from ..utils import FONT_SIZE, value_as_str File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\utils.py", line 230, in class QWorkerThread(QtCore.QThread): File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\utils.py", line 242, in QWorkerThread SIGNALS = namedtuple( File "C:\Program Files\Python39\lib\collections_init.py", line 431, in namedtuple new = eval(code, namespace) NameError: name 'eval' is not defined# Code

MDF version

N/A

Code snippet

asammdf

Traceback

Traceback (most recent call last): File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main return run_code(code, main_globals, None, File "C:\Program Files\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Program Files\Python39\Scripts\asammdf.exe_main.py", line 4, in File "C:\Program Files\Python39\lib\site-packages\asammdf_init.py", line 16, in from .gui import plot File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\plot.py", line 8, in from .widgets.plot_standalone import PlotWindow File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\widgets\plot_standalone.py", line 8, in from .plot import Plot, PlotSignal File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\widgets\plot.py", line 27, in from ..utils import FONT_SIZE, value_as_str File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\utils.py", line 230, in class QWorkerThread(QtCore.QThread): File "C:\Program Files\Python39\lib\site-packages\asammdf\gui\utils.py", line 242, in QWorkerThread SIGNALS = namedtuple( File "C:\Program Files\Python39\lib\collections_init.py", line 431, in namedtuple new = eval(code, namespace) NameError: name 'eval' is not defined

Description

After installing asammdf[gui] 8.0.1 via pip, it does not start. pip check states that all depedencies are OK.

a543c23 avatar Oct 09 '24 09:10 a543c23

I´ve got the same issue.

Konzigwenzen avatar Oct 18 '24 10:10 Konzigwenzen

It looks like this only happens on Python 3.9

Can you upgrade to Python 3.10?

danielhrisca avatar Oct 18 '24 10:10 danielhrisca

Hi Daniel, you are right, with 3.11 it works!

Konzigwenzen avatar Oct 18 '24 10:10 Konzigwenzen

I can confirm. It works with newer python release. 3.12 in my case.

a543c23 avatar Nov 11 '24 10:11 a543c23