Skip to content

TypeError: 'NoneType' object is not iterable #35

Description

@Thaumaturge2020

issue1

  • OS: mac os

  • PyQt version: 5

  • Error: Segmentation fault: 438

running with cElementTree on Python 2.5+
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
  File "./roLabelImg.py", line 1364, in <module>
    sys.exit(main(sys.argv))
  File "./roLabelImg.py", line 1360, in main
    app, _win = get_main_app(argv)
  File "./roLabelImg.py", line 1352, in get_main_app
    win = MainWindow(argv[1] if len(argv) >= 2 else None,
  File "./roLabelImg.py", line 438, in __init__
    self.recentFiles = list(settings.get('recentFiles', []))
TypeError: 'NoneType' object is not iterable

Activity

  1. YDBOCHIS commented on Dec 31, 2025

    @YDBOCHIS

    try to modify line 438:
    self.recentFiles = list(settings.get('recentFiles') or [])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions