Rasa installation - Failed to build httptools

Hi Guys,

I am trying to install rasa framework in virtual environment through Anaconda prompt. And in the process of installing dependencies, it comes across httptools package.

After that it starts throwing various errors and ultimately installation fails. I cannot attach file containing anaconda prompt output as per organizatin policy, so I am copy-pasting entire output below. Any help would be appreciated and thanks in advance

Anaconda Prompt Output :

Building wheels for collected packages: httptools

  • Running setup.py bdist_wheel for httptools … error*

  • Complete output from command C:\Anaconda3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\dubeyshu\AppData\Local\Temp\pip-install-3hgi7j51\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 C:\Users\dubeyshu\AppData\Local\Temp\pip-wheel-q9evt5e9 --python-tag cp37:*

  • running bdist_wheel*

  • running build*

  • running build_py*

  • creating build*

  • creating build\lib.win-amd64-3.7*

  • creating build\lib.win-amd64-3.7\httptools*

  • copying httptools_init_.py -> build\lib.win-amd64-3.7\httptools*

  • creating build\lib.win-amd64-3.7\httptools\parser*

  • copying httptools\parser\errors.py -> build\lib.win-amd64-3.7\httptools\parser*

  • copying httptools\parser_init_.py -> build\lib.win-amd64-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.win-amd64-3.7\httptools\parser*

  • running build_ext*

  • building ‘httptools.parser.parser’ extension*

  • creating build\temp.win-amd64-3.7*

  • creating build\temp.win-amd64-3.7\Release*

  • creating build\temp.win-amd64-3.7\Release\httptools*

  • creating build\temp.win-amd64-3.7\Release\httptools\parser*

  • creating build\temp.win-amd64-3.7\Release\vendor*

  • creating build\temp.win-amd64-3.7\Release\vendor\http-parser*

  • C:\Program Files (x86)\Microsoft VisualStudio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Anaconda3\include -IC:\Anaconda3\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\ATLMFC\include” “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include” /Tchttptools/parser/parser.c /Fobuild\temp.win-amd64-3.7\Release\httptools/parser/parser.obj -O2*

  • parser.c*

  • C:\Anaconda3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory*

  • error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe’ failed with exit status 2*

  • ----------------------------------------*

  • Failed building wheel for httptools*

  • Running setup.py clean for httptools*

Failed to build httptools

*Command “C:\Anaconda3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\dubeyshu\AppData\Local\Temp\pip-install-3hgi7j51\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 C:\Users\dubeyshu\AppData\Local\Temp\pip-record-xo0bmft3\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\dubeyshu\AppData\Local\Temp\pip-install-3hgi7j51\httptools*

Hi @shubhamshd,

Have you installed Visual C++ and Visual C++ Build Tools?

If not, I think installing them might solve your problem.

Yeah I installed Visual c++, then also I was facing same issue “io.h not found” So as a temporary solution I set an environment variable INCLUDE to point to io.h in Visual c++ directory and after that it is now giving me following error when httptools build fails :

C:\Anaconda3\include\pyconfig.h(215): fatal error C1083: Cannot open include file: ‘basetsd.h’: No such file or directory

Hi @shubhamshd,

I remember I had got the ‘build tools’ error during installation.

I think you might have missed out on some of the packages of build tools. Check this website. Download Microsoft Build Tools 2015 from Official Microsoft Download Center and Download Visual Studio 2019 for Windows & Mac

You will have to install specific versions from the VS 2019 C++ Build Tools Community edition namely Windows 10SDK, MSVC, C++ CMake and Testing Tool Core features.

Hope this works.

Okay @nike I’ll try that :slight_smile: