Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7893357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:06:45+00:00 2026-06-03T07:06:45+00:00

I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile

  • 0

I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout, but I can’t compile it in Windows with Apache 2.2 & Python 3.2. There are some undefined variables because MOD_WSGI_WITH_DAEMONS is undefined; MOD_WSGI_WITH_DAEMONS is undefined because APR_HAS_FORK is 0.

In “mod_wsgi.c”:

#if APR_HAS_OTHER_CHILD && APR_HAS_THREADS && APR_HAS_FORK
#define MOD_WSGI_WITH_DAEMONS 1
#endif
...
#if defined(MOD_WSGI_WITH_DAEMONS)
...
static WSGIDaemonProcess *wsgi_daemon_process = NULL;
...
#endif

In “apr.h”:

#define APR_HAS_FORK              0

Is there any chance I compile mod_wsgi with Apache 2.2 & Python 3.2 for Windows? If so, how?

Update:

In the default branch, in “wsgi_apache.h”:

#if (APR_MAJOR_VERSION == 0) && \
    (APR_MINOR_VERSION == 9) && \
    (APR_PATCH_VERSION < 5)
extern apr_status_t wsgi_apr_unix_file_cleanup(void *);
extern apr_status_t wsgi_apr_os_pipe_put_ex(apr_file_t **, apr_os_file_t *,
                                            int, apr_pool_t *);
#define apr_unix_file_cleanup wsgi_apr_unix_file_cleanup
#define apr_os_pipe_put_ex wsgi_apr_os_pipe_put_ex
#endif

But in “apr_version.h”:

#define APR_MAJOR_VERSION       1
...
#define APR_MINOR_VERSION       4
...
#define APR_PATCH_VERSION       5

So apr_unix_file_cleanup will not be defined.

I am using Apache 2.2.22 and Python 3.2.3 in Windows 7 (x64).

The latest mod_wsgi-3.X can be compiled to an “.so” file, but got this error:

mod_wsgi.so.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.

I am worried about this. I don’t know if this is a real problem.

And also, I can’t load mod_wsgi module. The Apache’s error log says:

Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp0
[Sat May 05 18:35:43 2012] [crit] (OS 1813)The specified resource type cannot be found in the image file.  : master_main: create child process failed. Exiting.

I found this: http://bugs.python.org/review/6501/diff/2518/6050. It may cause the issue. I’m not sure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:06:47+00:00Added an answer on June 3, 2026 at 7:06 am

    Try again with the very latest source code. You may also want to use the 3.X branch instead of default branch for time being.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I download the latest source code from here: http://aspnetwebstack.codeplex.com/SourceControl/list/changesets 1) add the system.web.mvc project
I downloaded luke-1.0.1.jar (Luke 1.0.1 binary without any dependencies) from http://code.google.com/p/luke/downloads/list . And I
I've downloaded latest source from mono project, compiled it and everything works (c# projects,
I am working on Lucene 3.x (source code). To start with I downloaded latest
I have downloaded the latest GLUI source code and now I am trying to
I recently downloaded the Java JNA from https://github.com/twall/jna/servlets/ProjectDocumentList?folderID=7408&expandFolder=7408&folderID=0 and tried using it. However, as
I just downloaded the latest release of the source code to the Microsoft Enterprise
I downloaded the latest open source version of QT4-and its installed in c:\qt\2009.04. I've
I downloaded and installed the latest libssh2 from their website into the location /usr/src/libssh2-1.4.0
I need support for computed properties in App Engine. I downloaded the latest source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.