enricofer / gdrive_provider Goto Github PK
View Code? Open in Web Editor NEWThis project forked from g-sherman/pseudo_csv_provider
multiuser google drive data provider in Python for QGIS
License: Other
This project forked from g-sherman/pseudo_csv_provider
multiuser google drive data provider in Python for QGIS
License: Other
This the error I received when activating the plugin:
Couldn't load plugin 'gdrive_provider' due to an error when calling its classFactory()
TypeError: expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
File "/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/__init__.py", line 42, in classFactory
from .gdrive_provider import Google_Drive_Provider
File "/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/gdrive_provider.py", line 44, in
from .gdrive_layer import progressBar, GoogleDriveLayer
File "/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/gdrive_layer.py", line 70, in
from .services import pack, unpack, google_authorization, service_drive, service_spreadsheet
File "/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/services.py", line 63, in
from oauth2client import tools
File "/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/extlibs/oauth2client/tools.py", line 101, in
argparser = _CreateArgumentParser()
File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gdrive_provider/extlibs/oauth2client/tools.py", line 83, in _CreateArgumentParser
parser = argparse.ArgumentParser(add_help=True)
File "/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/argparse.py", line 1641, in __init__
prog = _os.path.basename(_sys.argv[0])
File "/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/posixpath.py", line 146, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Python Version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]
QGIS Version: 3.12.3-București București, 8234261527
Any idea on how to fix it?
I got this message from Google when I tried to link my account.
This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.
Traceback (most recent call last):
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 334, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gdrive_provider-master_init.py", line 42, in classFactory
from .gdrive_provider import Google_Drive_Provider
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gdrive_provider-master\gdrive_provider.py", line 45, in
from .gdrive_layer import progressBar, GoogleDriveLayer
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gdrive_provider-master\gdrive_layer.py", line 69, in
from .services import pack, unpack, google_authorization, service_drive, service_spreadsheet
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gdrive_provider-master\services.py", line 62, in
from oauth2client import client, GOOGLE_TOKEN_URI
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users\giano\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\gdrive_provider-master\extlibs\oauth2client\client.py", line 41, in
from gdrive_provider.extlibs.oauth2client import GOOGLE_REVOKE_URI
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gdrive_provider-master\gdrive_provider.py", line 42, in
from . import resources_rc
File "C:/QGIS/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: attempted relative import with no known parent package
Versione Python: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
Versione di QGIS: 3.8.3-Zanzibar Zanzibar, 685d8b15d2
When try to connect inserting my google account in the browser a new windows appear with this message:
Funzionalità Accedi con Google temporaneamente disattivata per questa app.
How can I fix it?
Thanks
Hello, this plug is a great idea, it has enormous possibilities!
Today I did my first test.
I created a layer, gave it a style, uploaded it to google. I attached a colleague's email, to be able to read / write.
he could see the layer on the panel and load it. He was able to modify the layer, adding more polygons.
But now, if I give the command "SYNC with google Drive" it returns a python error, and it doesn't update.
I must delete the layer, and load it again from the panel, so that the modifications of the other user are loaded.
win 10 QGIS 3.12.2
ERROR:
2020-05-19T13:16:27 WARNING Traceback (most recent call last):
File "C:/Users/UV/AppData/Roaming/QGIS/QGIS3\profiles\4/python/plugins\gdrive_provider\gdrive_layer.py", line 305, in sync_with_google_drive
self.update_from_subscription()
File "C:/Users/UV/AppData/Roaming/QGIS/QGIS3\profiles\4/python/plugins\gdrive_provider\gdrive_layer.py", line 316, in update_from_subscription
updates = self.service_sheet.get_line('COLUMNS','A', sheet=self.client_id)
File "C:/Users/UV/AppData/Roaming/QGIS/QGIS3\profiles\4/python/plugins\gdrive_provider\services.py", line 821, in get_line
valueRenderOption='UNFORMATTED_VALUE').execute()
File "C:\Users\UV\AppData\Roaming\QGIS\QGIS3\profiles\4\python\plugins\gdrive_provider\extlibs\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Users\UV\AppData\Roaming\QGIS\QGIS3\profiles\4\python\plugins\gdrive_provider\extlibs\googleapiclient\http.py", line 851, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError:
Hi, this project looks very useful for archaeological data! Do you have any plans to update it for QGIS 3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.