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: 'LayerSource' object has no attribute 'tracking_session_active' #5096

Closed
bakkerss opened this issue Mar 15, 2024 · 3 comments
Labels

Comments

@bakkerss
Copy link

I installed version v4.9.0 of the plugin QField Sync today. During working on my project I got the following python error which seems to be realted to the qfield sync plugin. I can't reproduce the exact step that led to this error but I assume the error message would be sufficient information to find the error.

AttributeError: 'LayerSource' object has no attribute 'tracking_session_active'

Traceback (most recent call last):
File "C:\Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qfieldsync\gui\map_layer_config_widget.py", line 48, in createWidget
return MapLayerConfigWidget(layer, canvas, parent)
File "C:\Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qfieldsync\gui\map_layer_config_widget.py", line 152, in init
self.layer_source.tracking_session_active
AttributeError: 'LayerSource' object has no attribute 'tracking_session_active'

Python versie: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS versie: 3.28.4-Firenze Firenze, fd0fb72ab3

Python pad:
C:/OSGeo4W/apps/qgis-ltr/./python
C:/Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis-ltr/./python/plugins
C:\OSGeo4W\apps\grass\grass82\etc\python
C:\Users\SebastiaanBakker\OneDrive - Natuurlink\Documenten
C:\OSGeo4W\bin\python39.zip
C:\OSGeo4W\apps\Python39\DLLs
C:\OSGeo4W\apps\Python39\lib
C:\OSGeo4W\bin
C:\OSGeo4W\apps\Python39
C:\OSGeo4W\apps\Python39\lib\site-packages
C:\OSGeo4W\apps\Python39\lib\site-packages\win32
C:\OSGeo4W\apps\Python39\lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python39\lib\site-packages\Pythonwin
C:/Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\SebastiaanBakker\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qfieldsync\libqfieldsync.whl
C:\Users/SebastiaanBakker/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_resource_sharing
C:\Users\SebastiaanBakker\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qgis_resource_sharing
C:\Users\SebastiaanBakker\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qgis_resource_sharing\ext_libs
C:\Users\SebastiaanBakker\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qfieldsync\libqfieldsync.whl
C:/Users/SebastiaanBakker/Natuurlink B.V/Natuurlink - Documenten/QGIS/Woonstichting Thuis

[Please also attach additional files if a specific project/dataset is useful to investigate the problem.]

Desktop (please complete the following information)

  • OS: [e.g. Windows]
  • QGIS Version [e.g. 3.22.0]
  • QFieldSync Version [e.g.4.0.0]

Mobile (please complete the following information)

  • Device: [e.g. iPhone6]
  • OS: [e.g. Android 11]
  • QField version: [Enter QField version here including build number found in the about screen after the release name example 2.0.0 (10200993)]

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: [Yes/No]
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes/No]
  • Problem happens with all files and projects, not only some files or projects: [Yes/No]

[If the problem happened with QFieldCloud, please add your username and project name.]

@nirvn
Copy link
Member

nirvn commented Mar 21, 2024

@bakkerss , could you try to completely remove the plugin than re-install it? That seems to be an out-of-sync plugin issue.

Copy link
Contributor

github-actions bot commented Apr 6, 2024

The QField project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale label Apr 6, 2024
@nirvn
Copy link
Member

nirvn commented Apr 7, 2024

Fixed

@nirvn nirvn closed this as completed Apr 7, 2024
@github-actions github-actions bot removed the stale label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants