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

qgis3 plugin fails on compressed project (qgz) #14

Open
landam opened this issue Sep 27, 2019 · 1 comment
Open

qgis3 plugin fails on compressed project (qgz) #14

landam opened this issue Sep 27, 2019 · 1 comment
Labels

Comments

@landam
Copy link
Contributor

landam commented Sep 27, 2019

When storing project in compressed file (qgz) the plugin fails after pressing 'Next' button with

Traceback (most recent call last):
  File "/home/martin/git/gislab-npo/gisquick-qgis-plugin/publish.py", line 328, in validate
    self.publish_project()
  File "/home/martin/git/gislab-npo/gisquick-qgis-plugin/publish.py", line 284, in publish_project
    project_data = fin.read()
  File "/usr/lib/python3.7/codecs.py", line 701, in read
    return self.reader.read(size)
  File "/usr/lib/python3.7/codecs.py", line 504, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 10: invalid start byte
@landam
Copy link
Contributor Author

landam commented Sep 27, 2019

With c0b0abb the plugin informs the user about unsupported QGZ projects...

Screenshot from 2019-09-27 22-49-45

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

1 participant