I am trying to deploy a python2.7 application in a google engine. It uses several modules like numpy, flask, pandas and scikit-learn. Although I can install and use other modules. Installing scikit-learn in the lib folder of the project gives the following error: -
Traceback (last last call): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle = _config_handle.add_wsgi_middleware (self. _LoadHandler ()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in the _LoadHandler handler, paths, err = LoadObject (self._handler ) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = __import __ (path [0]) File "/ base /data/home/apps/s~category-prediction-1247/v1.391344087004233892/deploynew.py ", line 6, in the sklearn import file" / base / data / home / apps / s ~ "-prediction-1247 / v1 .391344087004233892 / lib / sklearn / __ init__.py ", line 56, of.import __check_build File "/ base / data / home / apps / s ~ category-prediction-1247 / v1.391344087004233892 / lib / sklearn / __ check_build / __ init__.py", line 46, in raise_build_error (e) File "/ base / data / home / apps / s ~ category-prediction-1247 / v1.391344087004233892 / lib / sklearn / __ check_build / __ init__.py ", line 41, in raise_build_error% s" ""% (e, local_dir, '..join (dir_content ) .strip (), msg)) ImportError: the dynamic module does not define the init function (init_check_build) ___________________________________________________________________________ Content / base / data / home / apps / s ~ category-prediction-1247 / v1.391344087004233892 / lib / sklearn / __ check_build: setup .pyc __init__.py _check_build.so setup.py __init __. pyc ___________________________________________________________________________ It seemsthat scikit-learn was not built correctly. If you installed scikit-learn from the source code, be sure to create the package before using it: runpython setup.py installor makein the source directory. If you used n, make sure it is suitable for your version of Python, your operating system, and your platform.
Do they have any way to use scikit-learn in the google engine?
source
share