WIndows 10 Installation of modwsgi

51 views
Skip to first unread message

Dylan

unread,
Sep 30, 2019, 4:13:25 PM9/30/19
to modwsgi
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
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.



Graham Dumpleton

unread,
Sep 30, 2019, 6:45:55 PM9/30/19
to mod...@googlegroups.com
Can only suggest looking at suggestions in:


Either compiler not installed correctly or associated Windows compiler build packages not available.

That or it is related to trying to use 32 bit instead of 64 bit. Is there are reason you are using 32 bit instead of 64 bit?

Graham

--
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 modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/eddb40ce-d70f-4f0c-a03f-63d7a6896b85%40googlegroups.com.

Dylan

unread,
Oct 1, 2019, 6:57:41 AM10/1/19
to modwsgi
I have to use 32 bit because the database python module I have to use to retrieve information from the database only works with 32 bit both according to the creator and my own attempt of trying it with 64 bit python. Yes I saw that github issue. I guess I can uninstall and reinstall visual studio again. Thank you. 

On Monday, September 30, 2019 at 6:45:55 PM UTC-4, Graham Dumpleton wrote:
Can only suggest looking at suggestions in:


Either compiler not installed correctly or associated Windows compiler build packages not available.

That or it is related to trying to use 32 bit instead of 64 bit. Is there are reason you are using 32 bit instead of 64 bit?

Graham

To unsubscribe from this group and stop receiving emails from it, send an email to mod...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages