Git Product home page Git Product logo

gdrive_provider's People

Contributors

all4gis avatar enricofer avatar g-sherman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gdrive_provider's Issues

error calling method ClassFactory() on MacOS Mojave

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?

Google has blocked

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.

ImportError: attempted relative import with no known parent package

@fgianoli

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

 

Error to SYNC with Googlr Drive

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:

Compatibility with QGIS v3?

Hi, this project looks very useful for archaeological data! Do you have any plans to update it for QGIS 3?

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.