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

FileNotFoundError when opening QGIS #51

Closed
leojat opened this issue Jan 8, 2023 · 1 comment · Fixed by #84
Closed

FileNotFoundError when opening QGIS #51

leojat opened this issue Jan 8, 2023 · 1 comment · Fixed by #84
Assignees

Comments

@leojat
Copy link

leojat commented Jan 8, 2023

I have just updated from 1.4.9 to 2.0.4 on QGIS 3.16.16, and I have the following error when launching QGIS:

Traceback (most recent call last):
  File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\swiss_locator\core\filters\swiss_locator_filter_wmts.py", line 98, in handle_capabilities_response
    self.capabilities = ET.parse(self.content.filePath()).getroot()
  File "C:\PROGRA~1\QGIS31~1.16\apps\Python39\lib\xml\etree\ElementTree.py", line 1229, in parse
    tree.parse(source, parser)
  File "C:\PROGRA~1\QGIS31~1.16\apps\Python39\lib\xml\etree\ElementTree.py", line 569, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: ''

Once QGIS is open, in the Locator bar tab of the Messages window, I have the following info:

INFO    SwissLocatorFilterWMTS: 0
INFO    SwissLocatorFilterWMTS: Swisstopo capabilities has been downloaded. Reading from 
@gacarrillor
Copy link
Contributor

@leojat, thanks for the report.

I have been unable to replicate the issue.
We'll add another check to avoid that this can happen again.

If you get the error in the future (shouldn't really happen), feel free to reopen the issue.

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

Successfully merging a pull request may close this issue.

2 participants