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

RDF Conversion fails with exception on QGis 3.34.4-Prizren #44

Open
ldesousa opened this issue Sep 24, 2024 · 0 comments
Open

RDF Conversion fails with exception on QGis 3.34.4-Prizren #44

ldesousa opened this issue Sep 24, 2024 · 0 comments

Comments

@ldesousa
Copy link

Looks like the wrong method is being applied on a String object (exception log below). I am trying the Convert RDF Data tool on this knowledge graph:
https://codeberg.org/ldesousa/linked-sdi/src/branch/master/05-GeoSPARQL/gelderland.ttl

An error has occurred while executing Python code: 

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? 
Traceback (most recent call last):
  File "/home/lads/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/tasks/processing/convertcrstask.py", line 46, in finished
    fo.write(self.graph.serialize(format="turtle").decode())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?


Python version: 3.12.6 (main, Sep  9 2024, 14:41:06) [GCC 13.3.0] 
QGIS version: 3.34.4-Prizren Prizren, exported 

Python Path:
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/dependencies
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/dependencies
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/dependencies
/usr/share/qgis/python
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python312.zip
/usr/lib/python3.12
/usr/lib/python3.12/lib-dynload
/usr/local/lib/python3.12/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.12/dist-packages
/home/lads/.local/share/QGIS/QGIS3/profiles/default/python
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

1 participant