Newest versions of mod_wsgi would also be compatible with Django 1.11. Not sure 
why you think you need an old version.

As to your issue, looks like Anaconda Python isn't for some reason reporting 
itself as being Windows.

That is:

    import os
    if os.name == 'nt':
        ...

is failing.

As a start, can you use the latest mod_wsgi version and see if it is any 
different.

Graham

> On 8 Jun 2020, at 3:21 am, Sam <chnsp...@gmail.com> wrote:
> 
> Hi, 
> 
> I have one thing related to mod-wsgi==4.5.5 installation. My operating system 
> is Windows 10. As suggested in some resources, I first installed the latest 
> version visual C++, downloaded from https://www.apachelounge.com/download/ 
> <https://www.apachelounge.com/download/>, and then installed apache from the 
> same link, before doing the installation of mod-wsgi. After that, I opened 
> anaconda prompt under python 2.7 environment and then tried to install 
> mod-wsgi using "pip install mod-wsgi==4.5.5". But I received the following 
> error: 
> 
> {
> ERROR: Command errored out with exit status 1:
>      command: 'C:\Users\...\Anaconda3\envs\python27\python.exe' -c 'import 
> sys, setuptools, tokenize; sys.argv[0] = 
> '"'"'c:\\users\\sunpi\\appdata\\local\\temp\\pip-install-gf4mno\\mod-wsgi\\setup.py'"'"';
>  
> __file__='"'"'c:\\users\\...\\appdata\\local\\temp\\pip-install-gf4mno\\mod-wsgi\\setup.py'"'"';f=getattr(tokenize,
>  '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
> egg_info --egg-base 
> 'c:\users\sunpi\appdata\local\temp\pip-install-gf4mno\mod-wsgi\pip-egg-info'
>          cwd: c:\users\sunpi\appdata\local\temp\pip-install-gf4mno\mod-wsgi\
>     Complete output (5 lines):
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File 
> "c:\users\...\appdata\local\temp\pip-install-gf4mno\mod-wsgi\setup.py", line 
> 139, in <module>
>         'missing Apache httpd server packages.' % APXS)
>     RuntimeError: The 'apxs' command appears not to be installed or is not 
> executable. Please check the list of prerequisites in the documentation for 
> this package and install any missing Apache httpd server packages.
>     ----------------------------------------
> ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
> the logs for full command output.
> }
> 
> The reason why I wanted to install old version wsgi is because I need it to 
> be compatible with django 1.11 so that I can install this app, 
> https://github.com/gtfierro/walkthedinosaur 
> <https://github.com/gtfierro/walkthedinosaur>. 
> It took me over one week to get around this issue but I'm still unable to 
> resolve this issue. Would you mind helping me? 
> 
> Thank you, 
> 
> Sam
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:modwsgi+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/4f9a3751-b927-4c4f-b95e-54fee5b360aeo%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/4f9a3751-b927-4c4f-b95e-54fee5b360aeo%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/DB223906-0633-41C1-B91C-6AFF2A2BCC55%40gmail.com.

Reply via email to