Hi,
I've successfully used this API for several years in this app (but with
Python 2.7). never seen this in the past.
Happens, not surprisingly, when importing/initializing the YouTube Data
API. No other Google API's used
Environment is web2py 2.18.2, Python 3.7.2, macOS Mojave
These are the imports in this module:
import os
import sys
PY2K = sys.version_info[0] == 2
import json
import errno
if PY2K:
import httplib
else:
import http.client
import httplib2
# Google YouTube API related imports
from apiclient.discovery import build
from apiclient.errors import HttpError
from apiclient.http import MediaFileUpload
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from oauth2client.tools import argparser, run_flow
from time import strftime
from operator import itemgetter
and here is the stream of tracebacks
--------------------
Traceback (most recent call last):
File "... /web2py/gluon/custom_import.py", line 77, in custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'google'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 98, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
File " ... /web2py/gluon/custom_import.py", line 137, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named
'applications.MFMCurrAssetMgr.modules.google'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 102, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'google'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleapiclient/discovery_cache/__init__.py",
line 36, in autodetect
from google.appengine.api import memcache
File " ... /web2py/gluon/custom_import.py", line 104, in custom_importer
raise ImportError(e1, import_tb) # there an import error in the module
ImportError: (ModuleNotFoundError("No module named
'applications.MFMCurrAssetMgr.modules.google'"), <traceback object at
0x113569388>)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 77, in custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 98, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
File " ... /web2py/gluon/custom_import.py", line 137, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named
'applications.MFMCurrAssetMgr.modules.oauth2client'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 102, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py",
line 33, in <module>
from oauth2client.contrib.locked_file import LockedFile
File " ... /web2py/gluon/custom_import.py", line 104, in custom_importer
raise ImportError(e1, import_tb) # there an import error in the module
ImportError: (ModuleNotFoundError("No module named
'applications.MFMCurrAssetMgr.modules.oauth2client'"), <traceback object at
0x113577a88>)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 77, in custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'oauth2client.locked_file'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 98, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
File " ... /web2py/gluon/custom_import.py", line 137, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named
'applications.MFMCurrAssetMgr.modules.oauth2client'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " ... /web2py/gluon/custom_import.py", line 102, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'oauth2client.locked_file'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py",
line 37, in <module>
from oauth2client.locked_file import LockedFile
File " ... /web2py/gluon/custom_import.py", line 104, in custom_importer
raise ImportError(e1, import_tb) # there an import error in the module
ImportError: (ModuleNotFoundError("No module named
'applications.MFMCurrAssetMgr.modules.oauth2client'"), <traceback object at
0x113577e48>)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleapiclient/discovery_cache/__init__.py",
line 41, in autodetect
from . import file_cache
File " ... /web2py/gluon/custom_import.py", line 111, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py",
line 41, in <module>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.