Git Product home page Git Product logo

Comments (5)

tomchadwin avatar tomchadwin commented on May 24, 2024

I've not seen this issue before. As well as the layer data, are you able to share a copy of the QGIS project file, with all layers removed apart from that Checkpoints one? The issue seems to be in the marker style export code, but why it is trying to use base64 encoding, I have no idea. We would need to recreate the issue to be able to debug it, and for that, we need the simplified project file.

from qgis2web.

andreaordonselli avatar andreaordonselli commented on May 24, 2024

As Tom wrote to you, try to provide the complete project if possible.
The shape file has no problem, here is the openlayers and leafleat export
2023-08-04 10_48_18-Calcolatrice
2023-08-04 10_48_58-Calcolatrice

from qgis2web.

bnapoletano avatar bnapoletano commented on May 24, 2024

Thank you for looking into this. I am including two versions of the project file. Both are derived from the project file that my student sent to me. As an additional check I tried exporting a map after removing all the other layers, and the error still occurred. Here is just the project file (I placed it in a zip archive because the server would not accept a qgz file):
movement.zip

I also saved a copy of the project with the checkpoints file using the Save All plugin:
movementsaveall.zip

I tried exporting the map with all the layers other than the checkpoints, and encountered an additional problem. I am not sure if this is the same issue or something different. When I export the map to a local folder, I am able to export the map without the checkpoints successfully. When I try to export the same map directly to the web server using FTP, however, I receive the following error:

An error has occurred while executing Python code: 

TypeError: setValue(self, int): argument 1 has unexpected type 'float' 
Traceback (most recent call last):
  File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/maindialog.py", line 354, in saveMap
    result = self.exporter.postProcess(results, feedback=self.feedback)
  File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 367, in postProcess
    if not uploadPath(os.path.join('.', source_folder)):
  File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 361, in uploadPath
    if not uploadPath(current_path):
  File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/exporter.py", line 352, in uploadPath
    feedback.setProgress(
  File "/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/feedbackDialog.py", line 160, in setProgress
    self.progressBar.setValue(progress)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'


Python version: 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] 
QGIS version: 3.22.4-Białowieża Białowieża, exported 

Python Path:
/usr/share/qgis/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis2web
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing
/home/napoletano/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_resource_sharing/ext_libs
/home/napoletano/Dropbox/datos/brandon-tesis/gisproject/gettinghelp

This is a different error, but equally baffling to me. The layer in question contains two fields with floating point data, X and Y GPS coordinates.

We also had some initial trouble with another map, but managed to export it successfully after I gave him a 30m SRTM model to replace the 10m ASTER model he was using to display elevation and hillshade (that map also uses some data from the same source, and an incomplete version is online here: http://palestina.napoletano.net/gismaps/asentamientos/. In this case he was able to publish the map directly to the web using FTP, despite the initial troubles.

from qgis2web.

andreaordonselli avatar andreaordonselli commented on May 24, 2024

I think the problems derive from the svg icon used for the Checkpoints.shp layer stored in movementsaveall.zip
Try using a standard symbology or changing the svg icon.

If the first problem (base64) resolves, try to see if you still get the error saving to FTP. But here there are many hypotheses, what do you use? FTP or SFTP? Have you set a password? ...

from qgis2web.

bnapoletano avatar bnapoletano commented on May 24, 2024

Thank you Andrea. I had my student follow your suggestion, and he was able to export the map directly to the server using a standard symbology. Thus, it seems to that the same issue was responsible for the errors on both fronts. The export was done vía FTP, using the options included in the qgis2web plugin and a password. He reports receiving no errors with the standard symbology.

from qgis2web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.