question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building wheel for httptools , ujson

See original GitHub issue

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/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
navod80commented, Jul 15, 2020

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

3reactions
akeladcommented, 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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Failed to build httptools, how to fix it - Stack Overflow
pip install --upgrade pip setuptools wheel. but I still get this error: Building wheels for collected packages: httptools<br /> Building ...
Read more >
sanic-python/Lobby - Gitter
... ERROR: Failed building wheel for ujson Running setup.py clean for ujson Failed to build httptools ujson Installing collected packages: httptools, ...
Read more >
ERROR: Failed building wheel for ujson while installing rasa x ...
I am getting an Error while installing rasa x using pip pip version- 20.1.1 python version - 3.6 OS: ubuntu 20.04 ERROR: Failed...
Read more >
httptools - PyPI
httptools is a Python binding for the nodejs HTTP parser. The package is available on PyPI: pip install httptools . APIs. httptools contains...
Read more >
Anyone with frustrating issues with the M1 Mac system that ...
#7 7.070 ERROR: Failed building wheel for httptools #7 7.070 Running ... httptools, websockets, uvloop, urllib3, ujson, typing-extensions, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found