Skip to content

ImportError: cannot import name 'MutableSequence' from 'collections' (C:\PROGRA~1\QGIS33~1.9\apps\Python312\Lib\collections\__init__.py) #16

@MarkMurphy94

Description

@MarkMurphy94

Not sure if this project is still being maintained, but I'm encountering this when trying to install the plugin on a windows machine.

ImportError: cannot import name 'MutableSequence' from 'collections' (C:\PROGRA1\QGIS331.9\apps\Python312\Lib\collections_init_.py)

Traceback (most recent call last):
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\__init__.py", line 27, in classFactory
    from .heightmapexport import HeightmapExport
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\heightmapexport.py", line 20, in 
    from .heightmapexport_dialog import HeightmapExportDialog
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\heightmapexport_dialog.py", line 49, in 
    from .PathTracer import PathTracer,PathTracerGUI
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\PathTracer\__init__.py", line 1, in 
    from .main.path_tracer import PathTracer
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\PathTracer\main\path_tracer.py", line 16, in 
    from ..path import parse_path
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\PathTracer\path\__init__.py", line 1, in 
    from .path import Path, Line, Arc, CubicBezier, QuadraticBezier
  File "C:\PROGRA~1/QGIS33~1.9/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/Mark/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HeightmapExport\PathTracer\path\path.py", line 3, in 
    from collections import MutableSequence
ImportError: cannot import name 'MutableSequence' from 'collections' (C:\PROGRA~1\QGIS33~1.9\apps\Python312\Lib\collections\__init__.py)

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