> On 20 Dec 2018, at 4:11 pm, Siavosh Kasravi <[email protected]> wrote:
>
> I have three related problems:
>
> In this page <https://pypi.org/project/mod_wsgi/> "mod_wsgi-express
> module-config" gives a .so module to be used in Apache conf. But when I ran
> it in Windows it gave me a .pyd. Is it normal?
Yes it is normal. Windows will use a .pyd or .pyo extension and not .so.
> ("mod_wsgi-express install-module" noted in the same page doesn't work at
> all!)
What exact command are you running and what error do you get.
>
> Another issue is running "python manage.py runmodwsgi" in Windows fails
> because script tries to call os.getuid, which is not available in Windows.
You can't use 'mod_wsgi-express start-server' or 'python manage.py runmodwsgi'
on Windows. They only work on Unix type systems.
> Currently server stops functioning correctly when loads .pyd module.
A failure of Apache to start up usually means, one of the following.
* You aren't using the same compiler as the Python version was compiled with.
See:
https://wiki.python.org/moin/WindowsCompilers
<https://wiki.python.org/moin/WindowsCompilers>
for the correct compiler you should be used.
* You aren't using all 64 bit for Apache, Python and the compiler. You can't
mix 32 bit and 64 bit. Don't recommend using 32 bit at all.
* You are trying to use Python 2.7. Give up on that. It is impossible to find
Apache which is compiled with the old compiler that Python 2.7 requires. If you
mix Python/Apache C compiler runs times, eg VC9 and VC14, it usually doesn't
work.
* You aren't using ApacheLounge distribution of Apache. Some of the other
distributions of Apache just don't work, although usually you can't even get
things to compile.
Having said all that. What Python version are you using? What version of MS
C/C++ compiler? What distribution of Apache?
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 [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.