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

AttributeError: 'DepthmapNetEngine' object has no attribute 'analysis_nodes' #203

Open
SojungNoh opened this issue Dec 2, 2022 · 12 comments

Comments

@SojungNoh
Copy link

I'm currently having problem with :
AttributeError: 'DepthmapNetEngine' object has no attribute 'analysis_nodes'

My Settings :
On Windows 10, Qgis 3.28, DepthmapXnet 0.35 I get the following error, when running an analysis with these settings:

For your information, I attach the source file I'm aiming to analyse
https://drive.google.com/drive/folders/1EvjhHaJsjFNaWJoKwTQr5EaFOxE4PFX5?usp=sharing

2022-02-10T13:45:42 WARNING Traceback (most recent call last): File "C:\Users/XXXX/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\esstoolkit\analysis\AnalysisTool.py", line 690, in check_analysis_progress step, progress = self.analysis_engine.get_progress(self.axial_analysis_settings, self.datastore) File "C:\Users/XXXX/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\esstoolkit\analysis\DepthmapNetEngine.py", line 125, in get_progress return self.parse_progress(msg) File "C:\Users/XXXX/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\esstoolkit\analysis\DepthmapNetEngine.py", line 102, in parse_progress if self.analysis_nodes > 0: AttributeError: 'DepthmapNetEngine' object has no attribute 'analysis_nodes'

@RobinPetersson
Copy link

I'm having the same issue, please advice

@Kimseoungyeol
Copy link

안녕하세요. 혹시 해결하셨을까요? 저도 어려움이 있네요 ㅜㅜ

@SojungNoh
Copy link
Author

SojungNoh commented Mar 25, 2023 via email

@Kimseoungyeol
Copy link

Kimseoungyeol commented Mar 25, 2023 via email

@n-bristow
Copy link
Contributor

@jorgegil I've also been looking at this issue which I think is the same/related to #199, #203, #188, #164 & #189. As far as I can see this was actually fixed by #194 in December 2021 - potentially the reason that this issue keeps getting reported is that it looks like the Space Syntax Toolkit Plugin in QGIS is still version 0.3.9 from March 2021.

I don't know what you think, but getting a newer version into the QGIS Plugins might stop this issue being reported?

@jorgegil
Copy link
Collaborator

jorgegil commented Aug 3, 2023

@n-bristow Thanks for pointing this out. I have made a new release 0.3.10 available in github for now.

I would appreciate if people that flagged the issue (#199 , #188, #189, #203) would install this v0.3.10 in QGIS from the downloaded zip and test it. If it works, I will publish it in the QGIS plugins repository for automated updates.

Apologies for the slow response, since I am not actively involved in SST development any more. The contributions and fixes from the community are greatly appreciated!

@n-bristow
Copy link
Contributor

@jorgegil Many thanks for this, I will try the zip and feedback. Thanks again.

@n-bristow
Copy link
Contributor

Just an immediate bit of feedback on this - I'm getting an error when I try to install the zip on both windows and mac which I've copied below. I'll see if I can look into it a bit more, but just posting it here incase it is obvious. @jorgegil I'm mindful of your comment about not being actively involved in development!

Couldn't load plugin 'esstoolkit_0_3_10' due to an error when calling its classFactory() method

ModuleNotFoundError: No module named 'esstoolkit'
Traceback (most recent call last):
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 423, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/nickbristow/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/esstoolkit_0_3_10/init.py", line 25, in classFactory
from .EssToolkit import EssToolkit
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/nickbristow/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/esstoolkit_0_3_10/EssToolkit.py", line 50, in
from .ProjectManager import ProjectManager
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/nickbristow/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/esstoolkit_0_3_10/ProjectManager.py", line 24, in
from esstoolkit.utilities import db_helpers as dbh, shapefile_helpers as shph
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'esstoolkit'

Python version: 3.8.7 (default, Feb 10 2021, 09:04:08) [Clang 12.0.0 (clang-1200.0.32.29)]
QGIS version: 3.22.14-Białowieża Białowieża, 4cde646cf9

@n-bristow
Copy link
Contributor

I think this is because the folder inside the zip is called esstoolkit_0_3_10 so it ends up installed as e.g.

QGIS\QGIS3\profiles\default\python\plugins\esstoolkit_0_3_10 which QGIS doesn't seem able to work with.

Manually renaming that folder to esstoolkit lets it work.

@jorgegil
Copy link
Collaborator

jorgegil commented Aug 8, 2023

Thanks for checking @n-bristow! Makes sense.
I'll update the plugin zip file for installation and wait a bit longer for feedback on actual use of the tool.

@n-bristow
Copy link
Contributor

That sounds good, thanks @jorgegil

@jorgegil
Copy link
Collaborator

jorgegil commented Aug 14, 2023

I've merged the latest fixes to the code (thank you @n-bristow !) and did a quick test. The "esstoolkit.zip" in the release is updated accordingly.

I will wait a few days for feedback from @n-bristow or others on this latest fix, then I'll upload to the QGIS plugins repository.

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

5 participants