[mod_python] undefined symbol: PyThread_acquire_lock

David Angulo Junk DavidAnguloJunk at gmail.com
Mon Jul 7 14:20:29 EDT 2008


Thanks again.

The installations are at:

/usr/bin/python2.3
/usr/local/bin/python2.4
/usr/local/bin/python2.5

and the libraries are at:

/usr/lib/python2.3/
/usr/local/lib/python2.4/
/usr/local/lib/python2.5/

No, I don't see any installation in both places.


So, from what you said below, I take it I should uninstall some versions and
ensure they're all installed in a single location???

Thanks.

Dave



On Thu, Jul 3, 2008 at 7:53 PM, Graham Dumpleton <graham.dumpleton at gmail.com>
wrote:

> Please keep followups on list by using reply-all.
>
> 2008/7/4 David AnguloJunk <davidangulojunk at gmail.com>:
> > I walked into an installation done by someone else.  There are three
> > pythongs installed (2.3, 2.4, and 2.5).  I do not see anything setting
> paths
> > to any of the three of these in either the httpd.conf  nor in the
> > environment variables.  Where are the "python paths" set?  I am assuming
> > that mod_python just has its path set into it at install time??
>
> But where are the different versions installed? Are there some in /usr
> and some in /usr/local and is any version appearing in both locations.
>
> How mod_python finds Python installation is a bit convoluted, albeit
> not mod_python's fault, but just how Python does it. Effectively, the
> version of Python is known by mod_python by virtue of library being
> linked in, but run time directories for Python found at run time,
> which can cause problems if you have Python installations in multiple
> different root directories.
>
> Graham
>
> > Thanks for your help.
> >
> > Dave
> >
> > On Tue, Jul 1, 2008 at 9:32 PM, Graham Dumpleton
> > <graham.dumpleton at gmail.com> wrote:
> >>
> >> Did you have to heavily fiddle with Python paths to get mod_python to
> >> use the installation of Python you wanted it to use? Looks a bit like
> >> you are trying to use a Python installation different to what
> >> mod_python was compiled for.
> >>
> >> Graham
> >>
> >> 2008/7/2 David AnguloJunk <davidangulojunk at gmail.com>:
> >> > Could someone help me please?  In my code, I'm doing a:
> >> >
> >> >     import zlib
> >> >
> >> > and I get this:
> >> >
> >> >    Mod_python error: "PythonHandler www"
> >> >
> >> >    Traceback (most recent call last):
> >> >
> >> >      File
> "/usr/local/lib/python2.5/site-packages/mod_python/apache.py",
> >> > line 181, in Dispatch
> >> >
> >> >        module = import_module(module_name, _req)
> >> >      File
> "/usr/local/lib/python2.5/site-packages/mod_python/apache.py",
> >> > line 335, in import_module
> >> >        module = imp.load_module(mname, f, p, d)
> >> >      File "/home/barnah5/public_html/www/modules/www.py", line 8, in
> >> > <module>
> >> >
> >> >        import google_sitemap
> >> >      File "/home/barnah5/public_html/www/modules/google_sitemap.py",
> >> > line 2,
> >> > in <module>
> >> >        import gzip
> >> >      File "/usr/local/lib/python2.5/gzip.py", line 9, in <module>
> >> >
> >> >        import zlib
> >> >    ImportError: /usr/local/lib/python2.5/lib-dynload/zlib.so:
> undefined
> >> > symbol: PyThread_acquire_lock
> >> >
> >> > Thanks
> >> >
> >> > _______________________________________________
> >> > Mod_python mailing list
> >> > Mod_python at modpython.org
> >> > http://mailman.modpython.org/mailman/listinfo/mod_python
> >> >
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080707/ac0d1e25/attachment.html


More information about the Mod_python mailing list