Hello,
Apologies if this is a repost, but it appears my previous post did not 
submit, or at least I can't see it. 

I am trying to build modwsgi for python 3.7 32 bit with apache 2.4 32 bit 
acquired at apache lounge for a Windows 10 64 bit machine. For the past 
week, I have tried readthedocs, github, and stack overflow but given my 
error message all I have been told is to install/check visual studio 2019 
build tools.
I have done this and even uninstalled and reinstalled everything twice, 
fixing nothing. It seems it just doesn't want to be built.

If anyone has clear and exact steps on making sure my pip/python can 
compile C/C++ modules, I would greatly appreciate it, as I think that it 
must be my build tools or my company computer is somehow just not allowed 
to compile things. At my home computer I have never had such difficulties 
with python libraries that require a C/C++ compiler, it just always work, 
so I have little experience troubleshooting this. 

Pip output:
Collecting mod_wsgi
  Using cached 
https://files.pythonhosted.org/packages/26/03/a3ed5abc2e66c82c40b0735c2f819c898d136879b00be4f5537126b6a4a4/mod_wsgi-4.6.7.tar.gz
Installing collected packages: mod-wsgi
  Running setup.py install for mod-wsgi ... error
    ERROR: Command errored out with exit status 1:
     command: 
'c:\users\vc046230\documents\plswork\please\scripts\python.exe' -u -c 
'import sys, setuptools, tokenize; sys.argv[0] = 
'"'"'C:\\Users\\VC046230\\AppData\\Local\\Temp\\pip-install-e8na9icp\\mod-wsgi\\setup.py'"'"';
 
__file__='"'"'C:\\Users\\VC046230\\AppData\\Local\\Temp\\pip-install-e8na9icp\\mod-wsgi\\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\VC046230\AppData\Local\Temp\pip-record-vmy3y1rj\install-record.txt' 
--single-version-externally-managed --compile --install-headers 
'c:\users\vc046230\documents\plswork\please\include\site\python3.7\mod-wsgi'
         cwd: 
C:\Users\VC046230\AppData\Local\Temp\pip-install-e8na9icp\mod-wsgi\
    Complete output (33 lines):
    
C:\Users\VC046230\AppData\Local\Continuum\anaconda3\lib\distutils\dist.py:274: 
UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\mod_wsgi
    copying src\__init__.py -> build\lib.win32-3.7\mod_wsgi
    creating build\lib.win32-3.7\mod_wsgi\server
    copying src\server\apxs_config.py -> build\lib.win32-3.7\mod_wsgi\server
    copying src\server\environ.py -> build\lib.win32-3.7\mod_wsgi\server
    copying src\server\__init__.py -> build\lib.win32-3.7\mod_wsgi\server
    creating build\lib.win32-3.7\mod_wsgi\server\management
    copying src\server\management\__init__.py -> 
build\lib.win32-3.7\mod_wsgi\server\management
    creating build\lib.win32-3.7\mod_wsgi\server\management\commands
    copying src\server\management\commands\runmodwsgi.py -> 
build\lib.win32-3.7\mod_wsgi\server\management\commands
    copying src\server\management\commands\__init__.py -> 
build\lib.win32-3.7\mod_wsgi\server\management\commands
    creating build\lib.win32-3.7\mod_wsgi\docs
    copying docs\_build\html\__init__.py -> 
build\lib.win32-3.7\mod_wsgi\docs
    creating build\lib.win32-3.7\mod_wsgi\images
    copying images\__init__.py -> build\lib.win32-3.7\mod_wsgi\images
    copying images\snake-whiskey.jpg -> build\lib.win32-3.7\mod_wsgi\images
    running build_ext
    building 'mod_wsgi.server.mod_wsgi' extension
    creating build\temp.win32-3.7
    creating build\temp.win32-3.7\Release
    creating build\temp.win32-3.7\Release\src
    creating build\temp.win32-3.7\Release\src\server
    C:\Program Files (x86)\Microsoft Visual 
Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c 
/nologo /Ox /W3 /GL /DNDEBUG /MT -Ic:\Apache24/include 
-Ic:\users\vc046230\documents\plswork\please\include 
-IC:\Users\VC046230\AppData\Local\Continuum\anaconda3\include 
-IC:\Users\VC046230\AppData\Local\Continuum\anaconda3\include "-IC:\Program 
Files (x86)\Microsoft Visual 
Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\ATLMFC\include" 
"-IC:\Program Files (x86)\Microsoft Visual 
Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" 
/Tcsrc/server\mod_wsgi.c 
/Fobuild\temp.win32-3.7\Release\src/server\mod_wsgi.obj
    mod_wsgi.c
    
C:\Users\VC046230\AppData\Local\Temp\pip-install-e8na9icp\mod-wsgi\src\server\wsgi_apache.h(39):
 
fatal error C1083: Cannot open include file: 'ws2tcpip.h': No such file or 
directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual 
Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x86\\cl.exe'
 
failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 
'c:\users\vc046230\documents\plswork\please\scripts\python.exe' -u -c 
'import sys, setuptools, tokenize; sys.argv[0] = 
'"'"'C:\\Users\\VC046230\\AppData\\Local\\Temp\\pip-install-e8na9icp\\mod-wsgi\\setup.py'"'"';
 
__file__='"'"'C:\\Users\\VC046230\\AppData\\Local\\Temp\\pip-install-e8na9icp\\mod-wsgi\\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\VC046230\AppData\Local\Temp\pip-record-vmy3y1rj\install-record.txt' 
--single-version-externally-managed --compile --install-headers 
'c:\users\vc046230\documents\plswork\please\include\site\python3.7\mod-wsgi' 
Check the logs for full command output.



-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/eddb40ce-d70f-4f0c-a03f-63d7a6896b85%40googlegroups.com.

Reply via email to