MSS icon indicating copy to clipboard operation
MSS copied to clipboard

AttributeError: 'NoneType' object has no attribute 'COLOR' (py3.14, py313)

Open ReimarBauer opened this issue 10 months ago • 4 comments

pixi global update mss installs also python 3.14.3. This gives a failure when I start TopView

py3.14

Fatal error in MSS 10.2.1 on macOS-26.2-arm64-arm-64bit-Mach-O
Python 3.14.2 | packaged by conda-forge | (main, Dec  6 2025, 11:34:40) [Clang 20.1.8 ]

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/msui/msui_mainwindow.py", line 997, in create_view_handler
    self.create_view(_type, self.active_flight_track)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/msui/msui_mainwindow.py", line 1011, in create_view
    edit = editor.ConfigurationEditorWindow(self)
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/msui/editor.py", line 154, in __init__
    self.json_model = JsonModel(data=options, editable_keys=True, editable_values=True)
                      ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/support/qt_json_view/model.py", line 18, in __init__
    self.init(data, editable_keys, editable_values)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/support/qt_json_view/model.py", line 29, in init
    type_.next(model=self, data=data, parent=parent)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/support/qt_json_view/datatypes.py", line 206, in next
    key_item = self.key_item(key, datatype=type_, model=model)
  File "/Users/reimarbauer/.pixi/envs/mss/lib/python3.14/site-packages/mslib/support/qt_json_view/datatypes.py", line 59, in key_item
    QtGui.QBrush(datatype.COLOR), QtCore.Qt.ForegroundRole)
                 ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'COLOR'

when I do use 3.13 same problem

Fatal error in MSS 10.2.1 on macOS-26.2-arm64-arm-64bit-Mach-O
Python 3.13.11 | packaged by conda-forge | (main, Dec  6 2025, 11:28:54) [Clang 19.1.7 ]

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/msui/msui_mainwindow.py", line 997, in create_view_handler
    self.create_view(_type, self.active_flight_track)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/msui/msui_mainwindow.py", line 1011, in create_view
    edit = editor.ConfigurationEditorWindow(self)
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/msui/editor.py", line 154, in __init__
    self.json_model = JsonModel(data=options, editable_keys=True, editable_values=True)
                      ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/support/qt_json_view/model.py", line 18, in __init__
    self.init(data, editable_keys, editable_values)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/support/qt_json_view/model.py", line 29, in init
    type_.next(model=self, data=data, parent=parent)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/support/qt_json_view/datatypes.py", line 206, in next
    key_item = self.key_item(key, datatype=type_, model=model)
  File "/Users/reimarbauer/tmp/mss-py313/.pixi/envs/default/lib/python3.13/site-packages/mslib/support/qt_json_view/datatypes.py", line 59, in key_item
    QtGui.QBrush(datatype.COLOR), QtCore.Qt.ForegroundRole)
                 ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'COLOR'

py313_list.txt

py313_pixi.toml.txt

py313_pixi_lock.txt

py3.12

when I usse python 3.12 it works

NFO: MSS Version: 10.2.1
INFO: Python Version: 3.12.12 | packaged by conda-forge | (main, Oct 22 2025, 23:34:53) [Clang 19.1.7 ]
INFO: Platform: macOS-26.2-arm64-arm-64bit (('64bit', ''))
INFO: Log file location: /Users/reimarbauer/.config/msui/msui.log
INFO: Started from : /Users/reimarbauer/tmp/mss-py312
INFO: Executable location: /Users/reimarbauer/tmp/mss-py312/.pixi/envs/default/bin/msui
INFO: Command line arguments: ['/Users/reimarbauer/tmp/mss-py312/.pixi/envs/default/bin/msui']

py312_list.txt

py312_pixi.toml.txt

py312_pixi_lock.txt

Until we solved this I do limit the conda-forge package to <3.13.

ReimarBauer avatar Jan 17 '26 07:01 ReimarBauer

usage of pandas=2.3.2 , xml.dom.minidom needs refactoring for py313 I do shift this for the next major

ReimarBauer avatar Jan 18 '26 10:01 ReimarBauer

I’d like to help with this issue.

I can try to reproduce the error on Python 3.13/3.14 and investigate why COLOR becomes None. I’ll report findings or open a PR if I find a fix.

prachisingh342006 avatar Jan 20 '26 06:01 prachisingh342006

Environment

  • OS: macOS (Apple Silicon)
  • Python: 3.14.2 (conda)
  • open-mss: installed in editable mode from current develop branch
  • PyQt5: 5.15.11

Steps performed

  1. Created a fresh conda environment with Python 3.14
  2. Installed open-mss using pip install -e .
  3. Installed PyQt5 manually (required to start the UI)
  4. Started the application using mss

Result

  • Application starts successfully
  • No AttributeError: 'NoneType' object has no attribute 'COLOR'
  • Only a Qt font warning is shown
  • TopView also opens without crashing (confirm if true)

Notes

This suggests the issue may be platform-specific or depend on configuration or environment state.
Happy to test further scenarios if needed.

prachisingh342006 avatar Jan 20 '26 06:01 prachisingh342006

Please assign me this issue so that I can contribute.

LungsomLamnio avatar Jan 24 '26 15:01 LungsomLamnio