Can you not use 32 bit versions, and use 64 bit versions of everything? You may 
get lucky with VC14 Apache, but ensure you have VC9 versions of everything 
else, and that they are all 64 bit.

I don't know why, but 32 bit Python 2.7 seems to be hard to get working these 
days and I have no idea why.

Graham

> On 30 Mar 2018, at 11:16 pm, Chari <[email protected]> wrote:
> 
> Hi everyone,
> 
> I've recently started with web development, and would like to use Apache to 
> host a Python based (Flask) web service. But I keep bumping into the 
> following error:
> 
> C:\WINDOWS\system32>"C:\Apache24\bin\httpd.exe"
> httpd.exe: Syntax error on line 179 of C:/Apache24/conf/httpd.conf: Cannot 
> load c:/Python27/lib/site-packages/mod_wsgi/server/mod_wsgi.pyd into server: 
> The specified module could not be found.
> 
> System en software:
> 32 bit Python 2.7.13 on Windows
> Microsoft Visual C++ Compiler for Python 2.7 (Version 9) 
> (https://www.microsoft.com/en-us/download/details.aspx?id=44266)
> Python setuptools and pip are up-to-date
> installed mod_wsgi 4.5.24 using pip (4.6 versions all fail with "error C2065: 
> 'wsgi_daemon_process' : undeclared identifier" while compiling)
> 
> Apache versions tried:
> VC10 (Apache lounge): httpd-2.4.23-win32
> VC14 (Apache haus): httpd-2.4.33-o110h-x86-vc14-r2
> VC15 (Apache lounge): httpd-2.4.33-Win32-VC15
> 
> Only additions to httpd.conf file (according to "mod_wsgi-express 
> module-config" output; "None" replaced with ".pyd"):
> LoadModule wsgi_module 
> c:/Python27/lib/site-packages/mod_wsgi/server/mod_wsgi.pyd
> WSGIPythonHome c:/Python27
> 
> 
> I've been googling and experimenting and suspect that it is the versions of 
> Apache that I'm using that want nothing to do with the VC9 compiled mod_wsgi 
> of Python 2.7 I've come across  Graham Dumpleton point about this:
> You may also have problems with using Python 2.6 or Python 2.7 binaries, 
> which were compiled with the Microsoft VC9 C/C++ compiler, with a version of 
> Apache 2.4 compiled with the Microsoft VC10 C/C++ compiler.
> 
> The problem is that Apache Lounge, whose Apache binaries have been used up 
> until this point, has stopped making available versions of Apache compiled 
> with a VC9 compiler. This means that if you hadn't managed to download a 
> Win32 VC9 version of Apache at some time in the past, you technically can't 
> use mod_wsgi on Windows with Python 2.6 or Python 2.7 any more as you can't 
> get the right version of an Apache binary.
> 
> 
> However, as mr. Dumpleton suggested, I cannot find any VC9 compiled Apache 
> binaries, so I'm kind of staring at a wall. I need it to work with existing 
> Python 2.7 software, so unfortunately, switching to Python 3 is not an 
> option...
> 
> The only thing that comes close are installers that I found here 
> <https://www.anindya.com/apache-http-server-2-4-4-and-2-2-24-x86-32-bit-and-x64-64-bit-windows-installers/>,
>  but since these are installers, and not simply the usual ready-to-unzip 
> binaries, I don't trust them. Could someone perhaps share their VC9 Apache 
> binaries, or point me to a provider that I missed, please? Or does someone 
> know about another solution for my situation? All help would be truly 
> appreciated. I really don't know where to look or what else to try anymore...
> 
> Thank you in advance,
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to