Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asammdfgui not starting due to type error #1068

Open
bandeezy opened this issue Aug 19, 2024 · 0 comments
Open

asammdfgui not starting due to type error #1068

bandeezy opened this issue Aug 19, 2024 · 0 comments

Comments

@bandeezy
Copy link

Python version

'python=3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]'
'os=Linux-5.15.0-52-generic-x86_64-with-glibc2.35'
'numpy=1.24.4'
'asammdf=7.4.5'

Code

MDF version

No MDF file was used to produce error

Code snippet

asammdf GUI was used to produce error

Traceback

ldf is not supported
xls is not supported
  File "/home/nschwaiger/.local/bin/asammdf", line 8, in <module>
    sys.exit(main())
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/asammdfgui.py", line 44, in main
    _main_window = MainWindow(measurements or args.measurements)
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/widgets/main.py", line 46, in __init__
    self.batch = BatchWidget(
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/widgets/batch.py", line 151, in __init__
    buses = lin_databases[::2]

<class 'TypeError'>: 'NoneType' object is not subscriptable
2024-08-19, 15:07:07
--------------------------------------------------------------------------------
<class 'TypeError'>	 
'NoneType' object is not subscriptable
--------------------------------------------------------------------------------
  File "/home/nschwaiger/.local/bin/asammdf", line 8, in <module>
    sys.exit(main())
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/asammdfgui.py", line 44, in main
    _main_window = MainWindow(measurements or args.measurements)
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/widgets/main.py", line 46, in __init__
    self.batch = BatchWidget(
  File "/home/nschwaiger/.local/lib/python3.10/site-packages/asammdf/gui/widgets/batch.py", line 151, in __init__
    buses = lin_databases[::2]

Description

Seeing an issue on startup of the asammdfgui which has worked fine in the past but I'm not entirely sure what has changed or how to debug the issue. No MDF file was selected yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant