3liz / qgis-plugin-manager

CLI tools for installing QGIS Plugins
GNU General Public License v3.0
14 stars 2 forks source link

Check permissions for the .cache folder #37

Closed Gustry closed 1 year ago

Gustry commented 2 years ago
Traceback (most recent call last):
  File "/opt/local/pyqgisserver/bin/qgis-plugin-manager", line 8, in <module>
    sys.exit(main())
  File "/opt/local/pyqgisserver/lib/python3.9/site-packages/qgis_plugin_manager/__main__.py", line 95, in main
    plugins.init()
  File "/opt/local/pyqgisserver/lib/python3.9/site-packages/qgis_plugin_manager/local_directory.py", line 56, in init
    with open(source_file, 'w', encoding='utf8') as f:
PermissionError: [Errno 13] Permission denied: '/srv/plugins/sources.list'
QGIS_PLUGINPATH set to /srv/plugins
Traceback (most recent call last):
  File "/opt/local/pyqgisserver/bin/qgis-plugin-manager", line 8, in <module>
    sys.exit(main())
  File "/opt/local/pyqgisserver/lib/python3.9/site-packages/qgis_plugin_manager/__main__.py", line 85, in main
    remote.update()
  File "/opt/local/pyqgisserver/lib/python3.9/site-packages/qgis_plugin_manager/remote.py", line 131, in update
    cache.mkdir()
  File "/usr/lib/python3.9/pathlib.py", line 1312, in mkdir
    self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/srv/plugins/.cache_qgis_plugin_manager'
Gustry commented 1 year ago

It should be done with 144c4bd

linked to #53