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

An error occurred while executing Python code on launch #493

Open
VulcanTrekkie45 opened this issue Mar 2, 2024 · 3 comments
Open

An error occurred while executing Python code on launch #493

VulcanTrekkie45 opened this issue Mar 2, 2024 · 3 comments

Comments

@VulcanTrekkie45
Copy link

Getting an error while trying to launch QuickOSM saying that there was an error while trying to execute the Python code. I tried reinstalling the plugin, as well as updating QGIS, but I'm still getting the same error. I don't know what's going on and I'm hoping that I can get some help in figuring out what's going on.

Error stack trace:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 
Traceback (most recent call last):
  File "C:\Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\quick_osm.py", line 249, in open_dialog
    dialog = Dialog()
  File "C:\Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\dialog.py", line 205, in __init__
    panel.setup_panel()
  File "C:\Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\quick_query_panel.py", line 134, in setup_panel
    self.update_history_view()
  File "C:\Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\quick_query_panel.py", line 304, in update_history_view
    data = json.load(json_file, object_hook=as_enum)
  File "C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\json\__init__.py", line 359, in loads
    return cls(**kw).decode(s)
  File "C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Python version: 3.9.18 (heads/master:5eba59e, Feb  1 2024, 20:02:10) [MSC v.1929 64 bit (AMD64)] 
QGIS version: 3.34.4-Prizren Prizren, decd43dc 

Python Path:
C:\Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\leastcostpath
C:/PROGRA~1/QGIS 3.34.4/apps/qgis-ltr/./python
C:/Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS 3.34.4/apps/qgis-ltr/./python/plugins
C:\PROGRA~1\QGIS 3.34.4\apps\grass\grass83\etc\python
C:\Users\sbrow\Documents
C:\Program Files\QGIS 3.34.4\bin\python39.zip
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\DLLs
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib
C:\Program Files\QGIS 3.34.4\bin
C:\PROGRA~1\QGIS 3.34.4\apps\Python39
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\site-packages
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\site-packages\win32
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS 3.34.4\apps\Python39\lib\site-packages\Pythonwin
C:/Users/sbrow/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/sbrow/New folder
@Gustry
Copy link
Member

Gustry commented Mar 4, 2024

Can you share your JSON file here ?

  • QGIS → Settings → User profiles → Open active profile directory
  • QuickOSM folder, then make a ZIP of query_history ? I don't know of many files you have and which one is impacted in this folder.

Then, if you want to overpass this issue, just remove this folder.

@VulcanTrekkie45
Copy link
Author

Can you share your JSON file here ?

  • QGIS → Settings → User profiles → Open active profile directory
  • QuickOSM folder, then make a ZIP of query_history ? I don't know of many files you have and which one is impacted in this folder.

Then, if you want to overpass this issue, just remove this folder.

Here is the query_history folder on Dropbox. Let me know if you can access this and if so, how we can fix this.

@Gustry
Copy link
Member

Gustry commented Mar 7, 2024

Yes, I was going to suggest to you to remove your previous link, sorry. You did it. (you shared more than expected before, with possible sensitive data)

You can remove your folder, I have downloaded it, I will have a look.

In the meantime, you can remove the folder, this will solve your 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

No branches or pull requests

2 participants