Looks like this is working for now. I'll try this out on a more updated environment later.
This is probably a dll compatibility issue between mod_wsgi and python 2.7.5 (windows build). On Friday, October 25, 2013 10:34:05 AM UTC-7, Quin Arnold wrote: > > None that I can find, it just hangs. > > I traced the cause to the following in flask upon importing uuid > > first, virtualenv did not copy uuid, so I did a pip install uuid for the > BASELINe environment > > Then within uuid the following code was hanging. > > import ctypes, ctypes.util > . . . > lib = ctypes.CDLL(ctypes.util.find_library(libname)) > > where libname='c', and ctypes.util.find_library('c')=msvcr90.dll > > if I comment out the section that attempts to find _uuid_generate_random > and uuid_generate_time > > This works fine from commandline and only fails via wsgi... > > On Thursday, October 24, 2013 1:52:59 PM UTC-7, Graham Dumpleton wrote: >> >> What is the actual error you are getting? Where is the error appearing? >> Is there nothing else in the Apache error log after that point? >> >> Graham >> >> On 24/10/2013, at 1:15 PM, Quin Arnold <qar...@expedia.com> wrote: >> >> I've seen several posts that talk about using flask with mod_wsgi; >> however i cannot seem to get it to work at all. >> >> I have debugged to ensure that my flask app is loading by printing tags >> to the log; however I'm not seeing anything after: >> >> from flask import Flask >> >> >> hello_world3.py >> >> print '1' >> from flask import Flask >> print '2' >> app = Flask(__name__) >> print '3' >> >> >> @app.route("/") >> def hello(): >> print "4" >> return "hello world 3" >> >> if __name__ == "__main__": >> app.run(Debug=True, Port=8080) >> >> >> [Thu Oct 24 11:46:57.803855 2013] [:warn] [pid 10116:tid 1896] mod_wsgi: >> Compiled for Python/2.7.3. >> [Thu Oct 24 11:46:57.803855 2013] [:warn] [pid 10116:tid 1896] mod_wsgi: >> Runtime using Python/2.7.5. >> [Thu Oct 24 11:46:57.850729 2013] [mpm_winnt:notice] [pid 10116:tid 1896] >> AH00354: Child: Starting 64 worker threads. >> [Thu Oct 24 12:24:29.716800 2013] [:error] [pid 10116:tid 1260] >> Activating BASELINe virtual environment >> [Thu Oct 24 12:24:29.779299 2013] [:error] [pid 10116:tid 1260] 1 >> >> OS: Windows Server 2003 >> Apache: 2.4.6 >> mod_wsgi: 24 27 >> Python 2.7.5 >> >> ------ >> hello_world.wsgi: >> >> import sys >> sys.path.insert(0, "o:/ctm/ctmToolsService/wsgi-scripts") >> >> activate_this = 'O:/Python27/BASELINe/Scripts/activate_this.py' >> execfile(activate_this, dict(__file__=activate_this)) >> >> from hello_world3 import app as application >> >> >> >> >> -- >> 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+u...@googlegroups.com. >> To post to this group, send email to mod...@googlegroups.com. >> Visit this group at http://groups.google.com/group/modwsgi. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- 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 post to this group, send email to modwsgi@googlegroups.com. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/groups/opt_out.