foursquare / qgis-plugin

Foursquare Studio plugin for QGIS
https://plugins.qgis.org/plugins/Unfolded/
GNU General Public License v2.0
19 stars 4 forks source link

Not a Directory Error Message #55

Open stev-0 opened 3 years ago

stev-0 commented 3 years ago

Describe the bug Unexpected NotADirectory Error message

To Reproduce Export a map with all layers in a local SQLite file. Error: NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\xxxx\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\Unfolded\\resources\\tmpwh9dv49s\\airports.csv'

Also

File "C:\OSGeo4W\apps\Python39\lib\shutil.py", line 613, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Stephen.Knox\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins\\Unfolded\\resources\\tmp14cuulbg\\airports.csv'

Expected behavior File should export correctly

Desktop (please complete the following information):

Additional context File attached world.zip

Joonalai commented 3 years ago

Thank you @stev-0 for reporting the issue and for using the plugin! The plugin exports zip files that can be imported to the Unfolded Studio. Could you put a directory in the Configuration output directory and try again? Edit: no need to do this.

Joonalai commented 3 years ago

I tested with your geopackage and I the same error happened in my machine. I will further investigate this.

Joonalai commented 3 years ago

It seems that all the errors are caused by unsupported styles. At the moment SvgMarker and Symbol type invertedPolygonRenderer are not supported by the plugin just yet. If you try to export layers world places and world countries, it should work just fine. The error messages need to be tuned though.

stev-0 commented 3 years ago

To be fair that was raised as well, just not in the python trace, I think in the main QGIS error log.

I can confirm it does work with those layers without the exotic types.