bitbot-irc / bitbot

https://bitbot.dev | Python3 event-driven modular IRCv3 bot 🤖

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Errors trying to pip install

riverdusty opened this issue · comments

commented

git clone
create and activate virtualenv
pip install -r requirements.txt

tested with python 2.7, 3.5 and 3.8
tested on Windows, Openbsd and Debian.

All with the same result.

ERROR: Failed building wheel for netifaces
ERROR: Failed building wheel for scrypt

Full stack from the windows python 3.8 attempt.

Building wheel for netifaces (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\river\bitbot\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\setup.py'"'"'; __file__='"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\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\river\AppData\Local\Temp\pip-wheel-qorcdab8'
       cwd: C:\Users\river\AppData\Local\Temp\pip-install-w8qas00l\netifaces\
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'netifaces' extension
  creating build
  creating build\temp.win32-3.8
  creating build\temp.win32-3.8\Release
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.10.9 -Ic:\users\river\bitbot\include "-Ic:\program files (x86)\python38-32\include" "-Ic:\program files (x86)\python38-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /Tcnetifaces.c /Fobuild\temp.win32-3.8\Release\netifaces.obj
  netifaces.c
  c:\program files (x86)\python38-32\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\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for netifaces
  Running setup.py clean for netifaces
  Building wheel for scrypt (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\river\bitbot\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\scrypt\\setup.py'"'"'; __file__='"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\scrypt\\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\river\AppData\Local\Temp\pip-wheel-t3v8rrnm'
       cwd: C:\Users\river\AppData\Local\Temp\pip-install-w8qas00l\scrypt\
  Complete output (27 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.8
  creating build\lib.win32-3.8\scrypt
  copying scrypt\scrypt.py -> build\lib.win32-3.8\scrypt
  copying scrypt\__init__.py -> build\lib.win32-3.8\scrypt
  running build_ext
  building '_scrypt' extension
  creating build\temp.win32-3.8
  creating build\temp.win32-3.8\Release
  creating build\temp.win32-3.8\Release\src
  creating build\temp.win32-3.8\Release\scrypt-1.2.1
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\lib
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\lib\crypto
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\lib\scryptenc
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\lib\util
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\libcperciva
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\libcperciva\alg
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\libcperciva\crypto
  creating build\temp.win32-3.8\Release\scrypt-1.2.1\libcperciva\util
  creating build\temp.win32-3.8\Release\scrypt-windows-stubs
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -Ic:\OpenSSL-Win32\include -Iscrypt-windows-stubs/include -Ic:\users\river\bitbot\include "-Ic:\program files (x86)\python38-32\include" "-Ic:\program files (x86)\python38-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /Tcsrc/scrypt.c /Fobuild\temp.win32-3.8\Release\src/scrypt.obj
  scrypt.c
  c:\program files (x86)\python38-32\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\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for scrypt
  Running setup.py clean for scrypt
Failed to build netifaces scrypt
Installing collected packages: netifaces, PySocks, python-dateutil, pytz, chardet, urllib3, idna, certifi, requests, scrypt, suds-jurko, tornado, oauthlib, requests-oauthlib, tweepy, requests-toolbelt
    Running setup.py install for netifaces ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\river\bitbot\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\setup.py'"'"'; __file__='"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\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\river\AppData\Local\Temp\pip-record-fq92zcxe\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\river\bitbot\include\site\python3.8\netifaces'
         cwd: C:\Users\river\AppData\Local\Temp\pip-install-w8qas00l\netifaces\
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'netifaces' extension
    creating build
    creating build\temp.win32-3.8
    creating build\temp.win32-3.8\Release
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.10.9 -Ic:\users\river\bitbot\include "-Ic:\program files (x86)\python38-32\include" "-Ic:\program files (x86)\python38-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /Tcnetifaces.c /Fobuild\temp.win32-3.8\Release\netifaces.obj
    netifaces.c
    c:\program files (x86)\python38-32\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\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\river\bitbot\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\setup.py'"'"'; __file__='"'"'C:\\Users\\river\\AppData\\Local\\Temp\\pip-install-w8qas00l\\netifaces\\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\river\AppData\Local\Temp\pip-record-fq92zcxe\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\river\bitbot\include\site\python3.8\netifaces' Check the logs for full command output.

bitbot doesn't support windows

"all with the same result" would help if i read some more!

I was able to resolve the scrypt issue on both macOS 10.15 Catalina and on Debian 10 Stretch by removing scrypt from requirements.txt and installing it directly via pip3 install scrypt.