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

Building wheel for httptools , ujson #3667

Closed
harunkelesoglu opened this issue May 31, 2019 · 7 comments
Closed

Building wheel for httptools , ujson #3667

harunkelesoglu opened this issue May 31, 2019 · 7 comments

Comments

@harunkelesoglu
Copy link

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/
@akelad
Copy link
Contributor

akelad commented Jun 3, 2019

@harunkelesoglu have you since resolved this? If no, can you try running sudo apt-get install build-essential and then rerun the installation command?

@akelad akelad added the status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question label Jun 3, 2019
@harunkelesoglu
Copy link
Author

I created a virtual env.I solved the problem. I think when I run this code line solved. Thanks @akelad

@no-response no-response bot removed the status:more-details-needed Waiting for the user to provide more details / stacktraces / answer a question label Jun 10, 2019
@akelad akelad closed this as completed Jun 11, 2019
@gopinathankm
Copy link

**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-essential and 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?

@akelad
Copy link
Contributor

akelad commented Sep 23, 2019

Please create a new issue

@zhfneu
Copy link

zhfneu commented Jan 16, 2020

you can try this comand to Install ujson separately.
conda install -c anaconda ujson

@navod80
Copy link

navod80 commented Jul 15, 2020

I got the same error as above:
solved by installing: ujson - 1.35
conda install ujson==1.35

@Rahul30032
Copy link

Rahul30032 commented Aug 5, 2020

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’t 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.

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

6 participants