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

ModuleNotFoundError: No module named 'imp' #5130

Open
cablon opened this issue May 4, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'imp' #5130

cablon opened this issue May 4, 2024 · 1 comment

Comments

@cablon
Copy link

cablon commented May 4, 2024

Problem

In QGIS 3.34 error ModuleNotFoundError: No module named 'imp'

Copy/paste some InaSAFE logs here if it was an error.
Traceback (most recent call last):
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 448, in startPlugin
    plugins[packageName].initGui()
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\plugin.py", line 563, in initGui
    self._create_dock()
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\plugin.py", line 538, in _create_dock
    from safe.gui.widgets.dock import Dock
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\gui\widgets\dock.py", line 90, in 
    from safe.gui.analysis_utilities import (
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\gui\analysis_utilities.py", line 13, in 
    from safe.impact_function.impact_function_utilities import FROM_CANVAS
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\impact_function\impact_function_utilities.py", line 20, in 
    from safe.report.impact_report import ImpactReport
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users/ USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\inasafe\safe\report\impact_report.py", line 10, in 
    import imp
  File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'imp'


<!---
Logs in QGIS are available in the bottom right corner on the bubble icon.
Then open the InaSAFE tab and copy/paste some logs.
-->

### Expected Behaviour

### Environment
* InaSAFE : 
* QGIS : 
* OS : 
<!---
Filenames and paths so as to reproduce locally, a project is better.
It's nice if you can provide a ZIP with data in the ticket (drag and drop your zip on this textbox).
-->
* Data used :
  * Exposure : 
  * Hazard : 
  * Aggregation :
  * Extent : 
  
Checklist: <!--- if applicable -->
<!---
Replace the space between square brackets by a `x` to make it checked.
By running the analysis in debug mode, you may have some different errors.
-->
* [ ] Did you try to run it in debug mode ?
* [ ] Is the data available ?
  * If yes, where (BTSync, data.inasafe.org, zip) ? 

### Proposed Solution
@cablon
Copy link
Author

cablon commented May 28, 2024

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