Closed Christian1980 closed 6 years ago
the framework doesn't support python 3. Try in python 2
Ok, I've tried with python 2.7 but with python 2 it fails to compile
` Running setup.py bdist_wheel for httplib2 ... done Stored in directory: /home/pi/.cache/pip/wheels/ca/ac/5f/749651f7925b231103f5316cacca82a487810c22d30f011c0c Running setup.py bdist_wheel for ipaddress ... done Stored in directory: /home/pi/.cache/pip/wheels/d7/6b/69/666188e8101897abb2e115d408d139a372bdf6bfa7abb5aef5 Running setup.py bdist_wheel for nltk ... done Stored in directory: /home/pi/.cache/pip/wheels/18/9c/1f/276bc3f421614062468cb1c9d695e6086d0c73d67ea363c501 Running setup.py bdist_wheel for scipy ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8u0RCt/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmphdQss7pip-wheel- --python-tag cp27: lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf'] NOT AVAILABLE
openblas_lapack_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf'] NOT AVAILABLE
atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib/arm-linux-gnueabihf libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> NOT AVAILABLE
atlas_3_10_info: libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib/arm-linux-gnueabihf libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf <class 'numpy.distutils.system_info.atlas_3_10_info'> NOT AVAILABLE
atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib/arm-linux-gnueabihf libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf <class 'numpy.distutils.system_info.atlas_threads_info'> NOT AVAILABLE
atlas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib/arm-linux-gnueabihf libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf <class 'numpy.distutils.system_info.atlas_info'> NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. self.calc_info() lapack_info: libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf'] NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. self.calc_info() lapack_src_info: NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. self.calc_info() NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy/integrate': 'quadpack.h'
Traceback (most recent call last):
File "
Failed building wheel for scipy Running setup.py clean for scipy Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8u0RCt/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" clean --all:
setup.py clean
is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add --force
to your command to use it anyway if you must (unsupported).
Failed cleaning build dir for scipy
Running setup.py bdist_wheel for numpy ... done
Stored in directory: /home/pi/.cache/pip/wheels/37/68/92/25b4aa6b2dbeb1da0829a26db2d64d883df18dbc3456903975
Running setup.py bdist_wheel for pandas ... done
Stored in directory: /home/pi/.cache/pip/wheels/fc/c4/a1/caaf8afeeaf4594c490c230e649d3a9ed550e23dc95049e789
Running setup.py bdist_wheel for python-crfsuite ... done
Stored in directory: /home/pi/.cache/pip/wheels/92/8e/15/56a7df57fb44d16649d9eafce737371397eab9b4c7db5fad72
Running setup.py bdist_wheel for scikit-learn ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8u0RCt/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpPjWFrRpip-wheel- --python-tag cp27:
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "/tmp/pip-build-8u0RCt/scikit-learn/setup.py", line 148, in get_scipy_status
import scipy
ImportError: No module named scipy
Traceback (most recent call last):
File "
Failed building wheel for scikit-learn Running setup.py clean for scikit-learn Running setup.py bdist_wheel for simplejson ... done Stored in directory: /home/pi/.cache/pip/wheels/c2/d0/42/5d1d1290c19d999277582c585f80426c61987aff01eb104ed6 Running setup.py bdist_wheel for gevent ... done Stored in directory: /home/pi/.cache/pip/wheels/c2/0e/3a/0fe9937cfeb4ad6e52c6b332ff69ebdd2a0ff014902e650300 Running setup.py bdist_wheel for itsdangerous ... done Stored in directory: /home/pi/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a Running setup.py bdist_wheel for MarkupSafe ... done Stored in directory: /home/pi/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57 Running setup.py bdist_wheel for pymongo ... done Stored in directory: /home/pi/.cache/pip/wheels/81/a6/c1/b819f020b602fe0024da13541ff671a2407683897ad8bf6300 Running setup.py bdist_wheel for future ... done Stored in directory: /home/pi/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a Running setup.py bdist_wheel for greenlet ... done Stored in directory: /home/pi/.cache/pip/wheels/3a/c0/3f/5530a4d37ca239710c7366b8b6e83ad6123be7b22c2be0cfd3 Successfully built bs4 html2text httplib2 ipaddress nltk numpy pandas python-crfsuite simplejson gevent itsdangerous MarkupSafe pymongo future greenlet Failed to build scipy scikit-learn Installing collected packages: beautifulsoup4, bs4, itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, Flask, Six, Flask-Cors, html2text, httplib2, ipaddress, JSON-log-formatter, pymongo, mongoengine, nltk, scipy, numpy, python-dateutil, pytz, pandas, future, parsedatetime, python-crfsuite, urllib3, idna, chardet, certifi, requests, scikit-learn, simplejson, gunicorn, greenlet, gevent, setuptools, py, funcsigs, attrs, pluggy, pytest Running setup.py install for scipy ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8u0RCt/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-mFkg7N-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib/arm-linux-gnueabihf
libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib/arm-linux-gnueabihf
libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/arm-linux-gnueabihf
libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib/arm-linux-gnueabihf
libraries lapack_atlas not found in /usr/lib/arm-linux-gnueabihf
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE
/usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy/integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-8u0RCt/scipy/setup.py", line 416, in <module>
setup_package()
File "/tmp/pip-build-8u0RCt/scipy/setup.py", line 412, in setup_package
setup(**metadata)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/tmp/pip-build-8u0RCt/scipy/setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/linalg/setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8u0RCt/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-mFkg7N-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-8u0RCt/scipy/ `
Seems like dependencies setup issues. You can either contact respective communities or try the docker setup.
Closing the thread as it is not our platform issue
Story creation works fine but if I want to edit it, it always fails with the following errors: TypeError: the JSON object must be str, not 'bytes'
I just want to edit the "speech response"
HTTP/1.1" 500 - Traceback (most recent call last): File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1997, in call return self.wsgi_app(environ, start_response) File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app response = self.handle_exception(e) File "/home/pi/.local/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, kwargs))) File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception reraise(exc_type, exc_value, tb) File "/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise raise value File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/pi/.local/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(args, kwargs))) File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise raise value File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](req.view_args) File "/home/pi/Desktop/AIBot/ai-chatbot-framework/app/stories/controllers.py", line 83, in updateStory jsondata = loads(request.get_data()) File "/home/pi/.local/lib/python3.5/site-packages/bson/json_util.py", line 438, in loads return json.loads(s, args, kwargs) File "/usr/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes'