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

Problem download and installing Boundary Delineation #12

Open
INGROGERPAR opened this issue Aug 22, 2022 · 3 comments
Open

Problem download and installing Boundary Delineation #12

INGROGERPAR opened this issue Aug 22, 2022 · 3 comments

Comments

@INGROGERPAR
Copy link

I have some problem with this plugin, I can't download it in QGIS 3.22.

Captura


I DID THE INDICATED HERE

In dag.py (in the algorithms folder of the plugin) you should replace the line "from fractions import gcd" by "from math import gcd" and then it will succesfully import the plugin.

but the error continues

Many thanks,

@guilehzin
Copy link

guilehzin commented Aug 29, 2022

Same problem overhere, anyone found a solution?

image

@koenig741
Copy link

I did the same change (fractions to math) and found that the next import complaint changed:

"AttributeError: partially initialized module 'networkx' has no attribute 'utils' (most likely due to a circular import)"

By executing by line I found:

from networkx.utils import consume
ImportError: cannot import name 'consume' from 'networkx.utils'
depreciated in ver 3.0 https://networkx.org/documentation/stable/release/release_3.0.html
Remove deprecated function utils.consume (#5745)

from networkx.utils import generate_unique_node
ImportError: cannot import name 'generate_unique_node' from 'networkx.utils'
removed in ver 3.0 https://networkx.org/documentation/stable/release/release_3.0.html
Remove generate_unique_node (#5780)

I have not taken the time to look further.

@WuJunxu
Copy link

WuJunxu commented Aug 26, 2023

Just go to the QGIS plugins folder like "..\plugins\BoundaryDelineation\lib", delete the networkx folder(library) in the lib folder, then this plugin with import networkx by default Python lib, problem solved.

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

4 participants