Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name discovery #129

Open
leArthurDent opened this issue Mar 6, 2019 · 2 comments
Open

ImportError: cannot import name discovery #129

leArthurDent opened this issue Mar 6, 2019 · 2 comments

Comments

@leArthurDent
Copy link

After installing the dependencies the command "python asynk.py" gives the following error:

Traceback (most recent call last):
  File "asynk.py", line 30, in <module>
    from   asynk_core       import Asynk, AsynkParserError
  File "/home/le_ArthurDent/bin/ASynK/asynk/asynk_core.py", line 40, in <module>
    from   sync             import Sync
  File "/home/le_ArthurDent/bin/ASynK/asynk/sync.py", line 30, in <module>
    from   pimdb_gc     import GCPIMDB
  File "/home/le_ArthurDent/bin/ASynK/asynk/pimdb_gc.py", line 28, in <module>
    from   apiclient import discovery
ImportError: cannot import name discovery

This can eassily be corrected by replacing "apiclient" with "googleapiclient" in file "asynk/pimdb_gc.py" on line 28. I am on openSUSE Tumbleweed with apiclient 1.0.3 and google-api-python-client 1.7.8.

I am not very familiar with python but as far as I can reconstruct from some research on the topic the module was originally named "apiclient" and is now "googleapiclient".

@skarra
Copy link
Owner

skarra commented Mar 9, 2019

Can you do a "ls -al libs" in the asynk directory?

@leArthurDent
Copy link
Author

leArthurDent commented Mar 11, 2019

Sure, there you go:

`sascha@linux-td6z:~/bin/ASynK> ls -al lib
insgesamt 188

drwxr-xr-x 6 sascha users 235 6. Mär 17:53 .
drwxr-xr-x 11 sascha users 4096 7. Mär 13:14 ..
-rw-r--r-- 1 sascha users 4861 6. Mär 17:51 asynk_mapitags.py
lrwxrwxrwx 1 sascha users 15 6. Mär 17:51 atom -> .gdata/src/atom
lrwxrwxrwx 1 sascha users 40 6. Mär 17:51 caldavclientlibrary -> .CalDAVClientLibrary/caldavclientlibrary
drwxr-xr-x 4 sascha users 195 6. Mär 17:52 .CalDAVClientLibrary
-rw-r--r-- 1 sascha users 87946 6. Mär 17:51 demjson.py
-rw-r--r-- 1 sascha users 71765 6. Mär 17:53 demjson.pyc
drwxr-xr-x 6 sascha users 242 6. Mär 17:52 .gdata
lrwxrwxrwx 1 sascha users 16 6. Mär 17:51 gdata -> .gdata/src/gdata
-rw-r--r-- 1 sascha users 5676 6. Mär 17:51 iso8601.py
-rw-r--r-- 1 sascha users 5673 6. Mär 17:53 iso8601.pyc
drwxr-xr-x 4 sascha users 104 6. Mär 17:52 .pyews
lrwxrwxrwx 1 sascha users 12 6. Mär 17:51 pyews -> .pyews/pyews
drwxr-xr-x 3 sascha users 210 6. Mär 17:51 s
`

Edit: Manually inserted the linebreak in line 3 in the terminal output, because without no linebreaks were recognized at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants