> On 5 Sep 2016, at 5:05 PM, Roger Wayne <[email protected]> wrote:
> 
> How did you extract the mod_wsgi.so file from the .whl files from:
> 
> I used the pip tool and it gave an error saying "Could not find a version 
> that satisfies
> the requirement mod_wsgi (from version: ) No matching distribution found for 
> mod_wsgi”

What was the exact pip command you used? Want to know whether you used the URL 
location from the Internet, or copied the file to local disk and tried to 
install it from there. Provide the actual command can so see.

> It is not the .so file itself, but a zip file that needs to be unpacked.
> 
> Which of those files provided there did you use? What was the name?
> 
> So I downloaded the zipped file and unpacked it. Form other sources, there 
> are already complied mod_wsgi.so files but not in this folder so I figured I 
> I had to compile and build it through the use of the makefiles in the win32 
> folder. So I modified the common-VC10.mk file and used the ap24-py34-VC10.mk 
> file and ran into some trouble as stated before.

The .whl file is a zip file is what I meant. So download from pythonlibs site 
and change extension from .whl to .zip if necessary and then unpack it.

You really want to avoid trying to compile it yourself as getting the right 
compiler is a pain. For Python 3.5 there are no instructions for how to get the 
corresponding compiler. They use different compiler to what 3.4 and before used.

> Those binaries are also compiled for Apache form the Apache Lounge site. If 
> you use a different Apache binary distribution it may not work.
> 
> It is important that you know whether your Apache is 32 bit or 64 bit. The 
> Python version you have must be same architecture, ie., 32 bit or 64 bit, you 
> cannot mix.
> 
> What architecture are you using, 32 bit or 64 bit and are you certain both 
> Apache and Python are for that?
> 
> What version of Python are you using? Do you have more than one Python 
> version installed?
> 
> Both my Apache and Python are 32-bit. I do have two version of Python, Python 
> 3.5 and 3.4. I tried it with 3.5 at first but I download 3.4 thinking it 
> would work somehow. 

But what mod_wsgi binaries were you using? That is why I think I already asked 
which you downloaded. That is, what was the actual name of package pulled down. 
They have architecture and version information in names. You have to use the 
correct one.

Am really surprised you would be using 32 bit. You would generally want to be 
using 64 bit these days.

> 
> What was the actual error message in the Apache error logs you get when it 
> fails to start up?
> 
> A good bit of it was "server certificate does NOT include an ID which matches 
> the server name", but later on when I tried other stuff, it was telling me my 
> one of my python scripts had a syntax error. Which is weird because it 
> definitely did not and I ran it through the compiler to make sure. I attached 
> the error log if you want to check it out. It is quite lengthy though as I 
> did try many times.

The errors in log are because you are trying to run stuff as CGI scripts and 
also because you are using Python 2 code and not Python 3 code. The way that 
‘print()’ is used differs.

> I know there is definitely easier ways to doing all this but I am quite new 
> to server-side Python scripting and just web development in general so if you 
> can bear with me, that would be awesome.
> 
> Thanks
> 
> -- 
> 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>.
> <error.log>

-- 
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