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

Error uploading to QGISCloud #41

Closed
frankdemden opened this issue May 7, 2020 · 6 comments
Closed

Error uploading to QGISCloud #41

frankdemden opened this issue May 7, 2020 · 6 comments
Assignees

Comments

@frankdemden
Copy link

I am getting the following error when attempting to upload data to QGISCLoud using QGIS 3.10:

local variable 'hexstr' referenced before assignment

Full error log below:

Traceback (most recent call last):
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\qgiscloudplugindialog.py", line 975, in upload_data
self.data_upload.upload(self.db_connections.db(unicode(db_name)), data_sources_items, unicode(self.maxSize))
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\data_upload.py", line 254, in upload
RasterUpload(conn, cursor, raster_to_upload, maxSize, self.progress_label)
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\raster\raster_upload.py", line 113, in init
gt = self.wkblify_raster(opts, infile.replace( '\', '/') , i, gt)
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\raster\raster_upload.py", line 720, in wkblify_raster
summary = self.wkblify_raster_level(options, ds, options['overview_level'], band_range, infile, i)
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\raster\raster_upload.py", line 666, in wkblify_raster_level
hexwkb += self.wkblify_band_header(options, band)
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\raster\raster_upload.py", line 561, in wkblify_band_header
hexwkb += self.wkblify(self.pt2fmt(pixtype), nodata)
File "C:/Users/Frank/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\raster\raster_upload.py", line 494, in wkblify
return hexstr
UnboundLocalError: local variable 'hexstr' referenced before assignment

@HusseinKabbout
Copy link

@frankdemden Is it possible for you to provide the data you tried the upload with?

@frankdemden
Copy link
Author

frankdemden commented May 8, 2020 via email

@HusseinKabbout
Copy link

@frankdemden I already created a PR (#42), that should fix this issue

@HusseinKabbout
Copy link

@frankdemden Are you still encountering this error message?

@HusseinKabbout
Copy link

I will close this issue, because the problem should be fixed with my latest PR. @frankdemden If you encounter this problem again, then please reopen this issue.

@frankdemden
Copy link
Author

frankdemden commented Jun 18, 2020 via email

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