RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.92k stars 4.64k forks source link

error while installing rasa-x #5016

Closed harisbitsakou closed 4 years ago

harisbitsakou commented 4 years ago

Rasa version:

Rasa SDK version (if used & relevant):

Rasa X version (if used & relevant):0.02

Python version:3.7.5

Operating system (windows, osx, ...): osx ( using anaconda)

Issue: I am trying to install rasa-x in different operating systems ( windows 10 , osx and with or without using anaconda), but I keep getting the following error.

Error (including full traceback):

Building wheel for httptools (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/harisbitsakou/opt/anaconda3/envs/rasavideo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/httptools/setup.py'"'"'; __file__='"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/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 /private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-wheel-809zm_ii --python-tag cp37
       cwd: /private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/httptools/
  Complete output (28 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  creating build/lib.macosx-10.7-x86_64-3.7/httptools
  copying httptools/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/httptools
  creating build/lib.macosx-10.7-x86_64-3.7/httptools/parser
  copying httptools/parser/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/httptools/parser
  copying httptools/parser/errors.py -> build/lib.macosx-10.7-x86_64-3.7/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.macosx-10.7-x86_64-3.7/httptools/parser
  running build_ext
  building 'httptools.parser.parser' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  creating build/temp.macosx-10.7-x86_64-3.7/httptools
  creating build/temp.macosx-10.7-x86_64-3.7/httptools/parser
  creating build/temp.macosx-10.7-x86_64-3.7/vendor
  creating build/temp.macosx-10.7-x86_64-3.7/vendor/http-parser
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include -arch x86_64 -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include -arch x86_64 -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include/python3.7m -c httptools/parser/parser.c -o build/temp.macosx-10.7-x86_64-3.7/httptools/parser/parser.o -O2
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for httptools
  Running setup.py clean for httptools
Failed to build httptools
Installing collected packages: tzlocal, apscheduler, pyjwt, setuptools-scm, questionary, Mako, python-editor, alembic, hpack, hyperframe, h2, h11, rfc3986, httpcore, requests-async, multidict, httptools, aiofiles, websockets, uvloop, sanic, sanic-plugins-framework, sanic-cors, pika, sanic-jwt, async-timeout, yarl, aiohttp, isodate, redis, fbmessenger, rocketchat-API, pydot, gast, docopt, pykwalify, twilio, networkx, dnspython, pymongo, async-generator, websocket-client, slackclient, jsonpickle, requests-toolbelt, webexteamssdk, ConfigArgParse, humanfriendly, coloredlogs, rasa-sdk, python-telegram-bot, python-crfsuite, tabulate, sklearn-crfsuite, python-engineio, scikit-learn, terminaltables, colorhash, colorclass, mattermostwrapper, kafka-python, jmespath, botocore, s3transfer, boto3, absl-py, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, uritemplate, httplib2, google-auth-httplib2, google-api-python-client, tensorflow-probability, kfac, protobuf, tensorflow-hub, tensorflow-gan, oauth2client, gin-config, googleapis-common-protos, tensorflow-metadata, termcolor, promise, dill, tensorflow-datasets, mesh-tensorflow, bz2file, opencv-python, pyglet, gym, pypng, dopamine-rl, gunicorn, tensor2tensor, ruamel.yaml, opt-einsum, tensorflow-estimator, google-pasta, keras-applications, astor, grpcio, markdown, tensorboard, keras-preprocessing, tensorflow, python-socketio, rasa, smmap2, gitdb2, GitPython, rasa-x
    Running setup.py install for httptools ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/harisbitsakou/opt/anaconda3/envs/rasavideo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/httptools/setup.py'"'"'; __file__='"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/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 /private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-record-eybfxq6k/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/httptools/
    Complete output (28 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    creating build/lib.macosx-10.7-x86_64-3.7/httptools
    copying httptools/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/httptools
    creating build/lib.macosx-10.7-x86_64-3.7/httptools/parser
    copying httptools/parser/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/httptools/parser
    copying httptools/parser/errors.py -> build/lib.macosx-10.7-x86_64-3.7/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.macosx-10.7-x86_64-3.7/httptools/parser
    running build_ext
    building 'httptools.parser.parser' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    creating build/temp.macosx-10.7-x86_64-3.7/httptools
    creating build/temp.macosx-10.7-x86_64-3.7/httptools/parser
    creating build/temp.macosx-10.7-x86_64-3.7/vendor
    creating build/temp.macosx-10.7-x86_64-3.7/vendor/http-parser
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include -arch x86_64 -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include -arch x86_64 -I/Users/harisbitsakou/opt/anaconda3/envs/rasavideo/include/python3.7m -c httptools/parser/parser.c -o build/temp.macosx-10.7-x86_64-3.7/httptools/parser/parser.o -O2
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/harisbitsakou/opt/anaconda3/envs/rasavideo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/httptools/setup.py'"'"'; __file__='"'"'/private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-install-xr6sg1c9/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 /private/var/folders/65/fx3_my1x2zxb6pyzdhd_zmqm0000gn/T/pip-record-eybfxq6k/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Command or request that led to error:

pip install rasa-x --extra-index-url https://pypi.rasa.com/simple

Content of configuration file (config.yml) (if relevant):

Content of domain file (domain.yml) (if relevant):

sara-tagger commented 4 years ago

Thanks for raising this issue, @rgstephens will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too 🤗
rgstephens commented 4 years ago

Please submit questions in the Rasa forums.