danielhrisca / asammdf

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

Unable to launch #986

Open riley-lunar opened 9 months ago

riley-lunar commented 9 months ago

Python version

Please run the following snippet and write the output here

>>> pprint("python=" + sys.version)
'python=3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]'

>>> pprint("os=" + platform.platform())
'os=Linux-5.15.137.3-microsoft-standard-WSL2+-x86_64-with-glibc2.36'

>>> pprint("numpy=" + numpy.__version__)
'numpy=1.26.2'

>>> pprint("asammdf=" + asammdf.__version__)
'asammdf=7.4.1'

Code

Traceback

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

<class 'TypeError'>: 'NoneType' object is not subscriptable
2024-02-16, 11:54:25
--------------------------------------------------------------------------------
<class 'TypeError'>
'NoneType' object is not subscriptable
--------------------------------------------------------------------------------
  File "/home/rliiva/.local/bin/asammdf", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/rliiva/.local/pipx/venvs/asammdf/lib/python3.11/site-packages/asammdf/gui/asammdfgui.py", line 44, in main
    _main_window = MainWindow(measurements or args.measurements)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rliiva/.local/pipx/venvs/asammdf/lib/python3.11/site-packages/asammdf/gui/widgets/main.py", line 46, in __init__
    self.batch = BatchWidget(
                 ^^^^^^^^^^^^
  File "/home/rliiva/.local/pipx/venvs/asammdf/lib/python3.11/site-packages/asammdf/gui/widgets/batch.py", line 148, in __init__
    buses = lin_databases[::2]
            ~~~~~~~~~~~~~^^^^^

Description

After using the GUI application for a while, I started running into this issue. I uninstalled asammdf using pipx uninstall asammdf and reinstalled, still didn't work. I even rm -rf'd the venv and still have troubles. Not sure what other cached files I might be able to delete to get it running, since it was running for a couple days before this issue.