Hi Graham...

So, after banging my head against every wall in the house, I finally 
realized that I had been using 32 bit Python. Not sure how that happened as 
I haven't chosen 32 bit anything since I got my first 64 bit processor like 
10 years ago or whatever.  After reinstalling the proper python version 
(3.6 64 bit), I got mod_wsgi to install correctly.  One thing though is 
that after I do the mod_wsgi-express module-config, the output gives me a 
LOADMODULE file that ends with ".pyd", not ".so" .  Can I use this pyd file 
instead of the so for my loadmodule?  

Thanks.


On Tuesday, May 15, 2018 at 9:38:38 PM UTC-5, Graham Dumpleton wrote:
>
> Okay. I knew one way worked and one didn't, so my memory of which does was 
> probably fuzzy. :-)
>
> Would be interesting to see the errors when trying to do pip install 
> method.
>
> Graham
>
> On 15 May 2018, at 12:32 pm, Peter Lai <[email protected] <javascript:>> 
> wrote:
>
> I may have gotten the working installation methods backwards:
>
> I just sucessfully (re)built 4.6.4 from github in cygwin64 with cygwin's 
> py36 (--with-python=/usr/bin/python3.6) [Python 3.6.4], python3-devel, 
> gcc-core (7.3.0), make, apache24 (2.4.29), httpd-devel, libapr1, 
> libintl-devel using configure/make/make install . It dropped a working 
> module in /usr/lib/httpd/modules/mod_wsgi.so
>
> a naive `/usr/bin/python3.6 -m pip install mod_wsgi` does not work (it did 
> not properly resolve apr include paths)
>
> I have never tried using mod_wsgi-express, only manual config of apache.
>
> On Tuesday, May 15, 2018 at 2:03:03 PM UTC-4, Graham Dumpleton wrote:
>>
>> Good to know that pip install works with cygwin. From what I heard, 
>> configure/make/make install doesn't work wth cygwin. Not sure if ever heard 
>> about anyone trying pip install method when using cygwin
>>
>> Does running 'mod_wsgi-express start-server' work, or do you have to 
>> still do manual configuration of the Apache instance?
>>
>> Graham
>>
>>  
>
>> On 15 May 2018, at 10:54 am, Peter Lai <[email protected]> wrote:
>>
>> FWIW, I have found the best success on windows in a cygwin environment 
>> (cygwin's fork() emulation is sufficient for apache prefork worker model 
>> too, essentially mirroring a true *nix config with WSGIDaemonProcess). 
>> Cygwin python, cygwin apache/libapr/apxs, cygwin build tools (gcc), pip 
>> install will autobuild and you just include the module in apache config and 
>> it just works(tm).
>>
>> On Tuesday, May 15, 2018 at 1:47:44 PM UTC-4, Graham Dumpleton wrote:
>>>
>>>
>>>
>>> On 15 May 2018, at 12:38 am, Dan DeBlasio <[email protected]> wrote:
>>>
>>> hey bud, i have been struggling with this for hours now and i can't 
>>> figure anything out from anywhere i've googled and searched and what not.
>>>
>>> I have done pip install mod_wsgi but it keeps giving me lnk2001 errors.  
>>> so after installing a bunch of microsoft crap which didn't fix my problem 
>>> and searching forever, I found some older versions and I installed version 
>>> 4.5.12.  This install completed with no errors, which excited me but even 
>>> after the install, I'm not able to run mod_wsgi-express.  It doesn't 
>>> exist.  Can I install this manually?
>>>
>>>
>>> I would need to see the link errors to be able to help.
>>>
>>> A few tips.
>>>
>>> Use Python 3.6, don't use Python 2.7.
>>>
>>> Use Apache from www.apachelounge.com, some other Apache distributions 
>>> are missing bits that allow you to build third party Apache modules.
>>>
>>> Use 64 bit versions of Apache, Python and MS C compiler. Don't mix 32 
>>> bit and 64 bit.
>>>
>>> Use the exact MS C compiler for the Python version being used. You can 
>>> find what they are in:
>>>
>>> https://wiki.python.org/moin/WindowsCompilers
>>>
>>> If possible use an Apache distribution which uses the same MS C 
>>> compiler. Using VC15 Apache with VC14 Python and MS C compilers may work, 
>>> but you do need to use the VC14 compiler that matches what is required for 
>>> Python 3.6.
>>>
>>> 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.
>>
>>
>>
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit 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