Beer

I enjoy drinking and brewing beer. There is a challenge and appreciation that comes from creating a delicious brew.

"To alcohol! The cause of, and solution to, all of life's problems." - Homer Simpson.

about Read more

Code

Over the years, I have contributed to many open and closed source software programs for both money and fun. My Textpattern plugins and other projects are available on BitBucket.

code Read more

Wood

Woodworking is an art that takes a lifetime to master. I have begun my journey with a small workshop and have completed many fun projects, mostly turned on a lathe.

wood Read more

Latest article

ImportError: No module named os

When running Python 2.7 with Apache 2.2 and modwsgi 3.3. Make sure Apache is loading the correct version of modwsgi. I ran in to the following error, which wasted about 15 minutes of my life before realizing the one character typo.


[client 192.168.0.10] mod_wsgi (pid=5800): Exception occurred processing WSGI script 'D:/www/myapp.wsgi'.
Traceback (most recent call last):
  File "D:/www/myapp.wsgi", line 1, in <module>
  ImportError: No module named os

That puzzling error was the result of the following line in the httpd.conf.

LoadModule wsgi_module "@WWWROOT@/modules/mod_wsgi-win32-ap22py26-3.3.so"

See it? The line should be.

LoadModule wsgi_module "@WWWROOT@/modules/mod_wsgi-win32-ap22py27-3.3.so"