ait-energy / qgis-edge-bundling

GNU General Public License v2.0
63 stars 14 forks source link

ModuleNotFoundError: No module named 'processing.core.ProcessingLog' #24

Open hbecerraGIS opened 1 year ago

hbecerraGIS commented 1 year ago

Hi, I have tried to install the tool on both Ubuntu and Windows and get the same error.

Captura de pantalla 2023-02-08 190230
Magic512x commented 7 months ago

Hello, I encountered a similar problem, have you solved it?

tesama05 commented 3 months ago

I have encountered the same issue, I have no idea if it’s something I need to install extra as another Qgis plugin or if is it missing file in the repository, have anyone any idea?

Tadusko commented 2 months ago

Hi! I encountered the same error. A quick and dirty fix is removing the import that causes the error, i.e. from processing.core.ProcessingLog import ProcessingLog.

You can do this by:

  1. Navigate to the qgis3_plugin/processing_edgebundling folder
  2. Open edgebundlingUtils.py in a text editor.
  3. Comment out or remove line 37 ( from processing.core.ProcessingLog import ProcessingLog). I also removed line 38 (from processing.core.ProcessingConfig import ProcessingConfig), since neither import is used in the script.
  4. Save the changes and reinstall the plugin.

After this, the plugin was installed and works as expected.

Magic512x commented 2 months ago

Hi! I encountered the same error. A quick and dirty fix is removing the import that causes the error, i.e. from processing.core.ProcessingLog import ProcessingLog.

You can do this by:

  1. Navigate to the qgis3_plugin/processing_edgebundling folder
  2. Open edgebundlingUtils.py in a text editor.
  3. Comment out or remove line 37 ( from processing.core.ProcessingLog import ProcessingLog). I also removed line 38 (from processing.core.ProcessingConfig import ProcessingConfig), since neither import is used in the script.
  4. Save the changes and reinstall the plugin.

After this, the plugin was installed and works as expected.

Thank you so much for your advice! Now I have the plugin loaded. But I have a new problem, when I run the plugin on my polyline it says

"MultiLineString geometry cannot be converted to a polyline. Only single line or curve types are permitted".

Do you know how to solve it?

Tadusko commented 2 months ago

Thank you so much for your advice! Now I have the plugin loaded. But I have a new problem, when I run the plugin on my polyline it says

"MultiLineString geometry cannot be converted to a polyline. Only single line or curve types are permitted".

Do you know how to solve it?

I believe the algorithm only accepts singlepart geometries. You could try running Multipart to singleparts processing tool.