I'm trying install the rasa x to ubuntu server by this doc
谋 getting the following error when i run the this command
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
pip version:
pip 19.1.1 from /home/argedor/env/lib/python3.6/site-packages/pip (python 3.6)
Python version:
Python 3.6.8
Operating system (windows, osx, ...):
ubuntu 16.04
Error:
Building wheel for httptools (setup.py) ... error
ERROR: Complete output from command /home/argedor/env/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-921nrp63/httptools/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/pip-wheel-e_jxa3v7 --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/httptools
copying httptools/__init__.py -> build/lib.linux-x86_64-3.6/httptools
creating build/lib.linux-x86_64-3.6/httptools/parser
copying httptools/parser/__init__.py -> build/lib.linux-x86_64-3.6/httptools/parser
copying httptools/parser/errors.py -> build/lib.linux-x86_64-3.6/httptools/parser
running egg_info
writing httptools.egg-info/PKG-INFO
writing dependency_links to httptools.egg-info/dependency_links.txt
writing top-level names to httptools.egg-info/top_level.txt
reading manifest file 'httptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'httptools.egg-info/SOURCES.txt'
copying httptools/parser/parser.c -> build/lib.linux-x86_64-3.6/httptools/parser
running build_ext
building 'httptools.parser.parser' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/httptools
creating build/temp.linux-x86_64-3.6/httptools/parser
creating build/temp.linux-x86_64-3.6/vendor
creating build/temp.linux-x86_64-3.6/vendor/http-parser
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/argedor/env/include/python3.6m -c httptools/parser/parser.c -o build/temp.linux-x86_64-3.6/httptools/parser/parser.o -O2
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for httptools
Running setup.py clean for httptools
Building wheel for ujson (setup.py) ... error
ERROR: Complete output from command /home/argedor/env/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-921nrp63/ujson/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/pip-wheel-zbftkqqd --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_ext
building 'ujson' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/python
creating build/temp.linux-x86_64-3.6/lib
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./python -I./lib -I/usr/include/python3.6m -I/home/argedor/env/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for ujson
Running setup.py clean for ujson
Failed to build httptools ujson
Installing collected packages: SQLAlchemy, aiofiles, httptools, uvloop, ujson, websockets, multidict, sanic, sanic-plugins-framework, sanic-cors, pyjwt, sanic-jwt, six, isodate, sortedcontainers, redis, fakeredis, numpy, scipy, scikit-learn, kafka-python, humanfriendly, coloredlogs, ruamel.yaml, pytz, pysocks, urllib3, certifi, idna, chardet, requests, twilio, colorclass, websocket-client, slackclient, colorhash, terminaltables, pyparsing, packaging, tzlocal, apscheduler, fbmessenger, astor, mock, absl-py, tensorflow-estimator, markdown, grpcio, protobuf, werkzeug, tensorboard, gast, termcolor, keras-preprocessing, h5py, keras-applications, tensorflow, python-dateutil, mattermostwrapper, pymongo, attrs, idna-ssl, typing-extensions, yarl, async-timeout, aiohttp, docutils, jmespath, botocore, s3transfer, boto3, ConfigArgParse, greenlet, gevent, MarkupSafe, Jinja2, itsdangerous, click, flask, flask-cors, future, rasa-sdk, tqdm, asn1crypto, pycparser, cffi, cryptography, python-telegram-bot, rocketchat-API, python-crfsuite, tabulate, sklearn-crfsuite, kiwisolver, cycler, matplotlib, simplejson, jsonschema, jsonpickle, docopt, PyYAML, pykwalify, pydot, wcwidth, prompt-toolkit, questionary, python-engineio, python-socketio, requests-toolbelt, webexteamssdk, async-generator, decorator, networkx, pika, rasa, mixpanel, rasa-x
Running setup.py install for httptools ... error
ERROR: Complete output from command /home/argedor/env/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-921nrp63/httptools/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-record-m1m5gpmq/install-record.txt --single-version-externally-managed --compile --install-headers /home/argedor/env/include/site/python3.6/httptools:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/httptools
copying httptools/__init__.py -> build/lib.linux-x86_64-3.6/httptools
creating build/lib.linux-x86_64-3.6/httptools/parser
copying httptools/parser/__init__.py -> build/lib.linux-x86_64-3.6/httptools/parser
copying httptools/parser/errors.py -> build/lib.linux-x86_64-3.6/httptools/parser
running egg_info
writing httptools.egg-info/PKG-INFO
writing dependency_links to httptools.egg-info/dependency_links.txt
writing top-level names to httptools.egg-info/top_level.txt
reading manifest file 'httptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'httptools.egg-info/SOURCES.txt'
copying httptools/parser/parser.c -> build/lib.linux-x86_64-3.6/httptools/parser
running build_ext
building 'httptools.parser.parser' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/httptools
creating build/temp.linux-x86_64-3.6/httptools/parser
creating build/temp.linux-x86_64-3.6/vendor
creating build/temp.linux-x86_64-3.6/vendor/http-parser
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -I/home/argedor/env/include/python3.6m -c httptools/parser/parser.c -o build/temp.linux-x86_64-3.6/httptools/parser/parser.o -O2
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/home/argedor/env/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-921nrp63/httptools/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-record-m1m5gpmq/install-record.txt --single-version-externally-managed --compile --install-headers /home/argedor/env/include/site/python3.6/httptools" failed with error code 1 in /tmp/pip-install-921nrp63/httptools/
@harunkelesoglu have you since resolved this? If no, can you try running sudo apt-get install build-essential and then rerun the installation command?
I created a virtual env.I solved the problem. I think when I run this code line solved. Thanks @akelad
**While installing rasa using pip intsall rasa, I do get the above mentioned error. Then as suggested I did run the command sudo apt-get install build-essentialand rerun the command pip intsall rasa. Still I am getting error as follows:
gcc: error trying to exec 'cc1': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
ERROR: Failed building wheel for ujson
Running setup.py clean for ujson
Building wheel for httptools (setup.py) ... error
ERROR: Command errored out with exit status 1:
We did the installation of rasa_core & rasa_nlu with lower versions. Can anybody assisting this installation?
Please create a new issue
you can try this comand to Install ujson separately.
conda install -c anaconda ujson
I got the same error as above:
solved by installing: ujson - 1.35
conda install ujson==1.35
Hi there,
I encountered the same issue pertaining to ujson build error. It seems to me only ujson 1.35 is supported and compatible. And pip installing it directly doesn鈥檛 seem to work. You can download the wheel file for ujson 1.35 . like mine was ujson-1.35-cp37-cp37m-linux_x86_64.whl here cp37 means my cyptyhon version/ python version which is 3.7.x and x86_64 was compatible for my ubuntu16.04 platform. you can lookup appropriate wheel file accordingly. Then use the following command:
pip3 install ujson-1.35-cp37-cp37m-linux_x86_64.whl
then :
pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple
pip/pip3 both can be used.
Most helpful comment
@harunkelesoglu have you since resolved this? If no, can you try running
sudo apt-get install build-essentialand then rerun the installation command?