fgianoli / RelationshipManager

this plugin helps in the management of 1:N project relations
GNU General Public License v3.0
0 stars 0 forks source link

Error exporting relations. #1

Open L-I-S-T-A opened 2 weeks ago

L-I-S-T-A commented 2 weeks ago

Hi! I installed the plugin QGIS version 3.34. When I export my relations, I receive this error message: "Si è verificato un errore durante l'esecuzione del codice Python:

AttributeError: 'str' object has no attribute 'name' Traceback (most recent call last): File "C:\Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins\relazioniplugin\RelazioniPlugin_dialog.py", line 80, in esporta_relazioni relazioni = self.ottieni_relazioni() File "C:\Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins\relazioniplugin\RelazioniPlugin_dialog.py", line 280, in ottieni_relazioni 'name': relation.name(), AttributeError: 'str' object has no attribute 'name'

Versione Python: 3.9.18 (heads/master:5eba59e, Feb 1 2024, 20:02:10) [MSC v.1929 64 bit (AMD64)] Versione di QGIS: 3.34.5-Prizren Prizren, 4b308492

Percorso Python: C:/PROGRA~1/QGIS33~1.5/apps/qgis-ltr/./python C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins C:/PROGRA~1/QGIS33~1.5/apps/qgis-ltr/./python/plugins C:\PROGRA~1\QGIS33~1.5\apps\grass\grass83\etc\python C:\Users\giuli\Documents C:\Program Files\QGIS 3.34.5\bin\python39.zip C:\PROGRA~1\QGIS33~1.5\apps\Python39\DLLs C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib C:\Program Files\QGIS 3.34.5\bin C:\PROGRA~1\QGIS33~1.5\apps\Python39 C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\win32 C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\win32\lib C:\PROGRA~1\QGIS33~1.5\apps\Python39\lib\site-packages\Pythonwin C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python C:/Users/giuli/Documents/CARG Fermo"

Thanks!

fgianoli commented 2 weeks ago

Thanks, yes is it a little bug. I'll fix it now. Thanks for your help

Il lun 7 ott 2024, 19:55 L-I-S-T-A @.***> ha scritto:

Hi! I installed the plugin QGIS version 3.34. When I export my relations, I receive this error message: "Si è verificato un errore durante l'esecuzione del codice Python:

AttributeError: 'str' object has no attribute 'name' Traceback (most recent call last): File "C:\Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins\relazioniplugin\RelazioniPlugin_dialog.py", line 80, in esporta_relazioni relazioni = self.ottieni_relazioni() File "C:\Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins\relazioniplugin\RelazioniPlugin_dialog.py", line 280, in ottieni_relazioni 'name': relation.name(), AttributeError: 'str' object has no attribute 'name'

Versione Python: 3.9.18 (heads/master:5eba59e, Feb 1 2024, 20:02:10) [MSC v.1929 64 bit (AMD64)] Versione di QGIS: 3.34.5-Prizren Prizren, 4b308492

Percorso Python: C:/PROGRA1/QGIS331.5/apps/qgis-ltr/./python C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python/plugins C:/PROGRA1/QGIS331.5/apps/qgis-ltr/./python/plugins C:\PROGRA1\QGIS331.5\apps\grass\grass83\etc\python C:\Users\giuli\Documents C:\Program Files\QGIS 3.34.5\bin\python39.zip C:\PROGRA1\QGIS331.5\apps\Python39\DLLs C:\PROGRA1\QGIS331.5\apps\Python39\lib C:\Program Files\QGIS 3.34.5\bin C:\PROGRA1\QGIS331.5\apps\Python39 C:\PROGRA1\QGIS331.5\apps\Python39\lib\site-packages C:\PROGRA1\QGIS331.5\apps\Python39\lib\site-packages\win32 C:\PROGRA1\QGIS331.5\apps\Python39\lib\site-packages\win32\lib C:\PROGRA1\QGIS331.5\apps\Python39\lib\site-packages\Pythonwin C:/Users/giuli/AppData/Roaming/QGIS/QGIS3\profiles\dbField/python C:/Users/giuli/Documents/CARG Fermo"

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/fgianoli/RelationshipManager/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGYS25XNS4ZR3M4ACULB5FTZ2LDHZAVCNFSM6AAAAABPQPAB7GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3TCMBZGQ3TAMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fgianoli commented 2 weeks ago

The new version of the plugin should fix the error. Let me know