[Freeswitch-users] More troubles with SQLAlchemy and mod_python
Anthony Minessale
anthony.minessale at gmail.com
Thu Jan 29 15:39:34 PST 2009
for good measure i would rebuild just mod_python
make mod_python-clean
make mod_python-install
On Thu, Jan 29, 2009 at 5:07 PM, Brian Deacon <bdeacon at highergear.com>wrote:
> On Thu, 2009-01-29 at 14:49 -0600, Anthony Minessale wrote:
> > We used to build python 2.5.1 and install it into the freeswitch
> > prefix
> >
> > we did ./configure --prefix=/usr/local/freeswitch
> > --enable-threads CFLAGSFORSHARED="-fPIC"
> >
> > But the makefile no longer will find that one so.......
> >
> > you could move your python out of the way on your box and try
> > installing this as your system python instead.
> >
> > ./configure --prefix=/your/real/python/prefix
> > --enable-threads CFLAGSFORSHARED="-fPIC"
> >
> > if you are really brave you could delete the Makefile in mod_python
> > and put back the old one
> > that builds and installs custom python for you into the FS prefix
> >
> >
> http://fisheye.freeswitch.org/browse/~raw,r=6393/FreeSWITCH/src/mod/languages/mod_python/Makefile<http://fisheye.freeswitch.org/browse/%7Eraw,r=6393/FreeSWITCH/src/mod/languages/mod_python/Makefile>
> >
> >
> > the important thing is the --enable-threads and
> > CFLAGSFORSHARED="-fPIC" on whatever one you use.
> >
>
> So this is the error that gdb shows me, do you think this is the kind of
> thing that the "special" compile would clear up?
>
> 2009-01-29 15:57:12 [NOTICE] mod_python.c:107 eval_some_python()
> Invoking py module: callcontrol.routing.DummyRouteHandler
> 2009-01-29 15:57:12 [ERR] mod_python.c:121 eval_some_python() Error
> importing module
> Traceback (most recent call last):
> File
> "/usr/local/freeswitch/python/callcontrol/routing/DummyRouteHandler.py",
> line 19, in ?
> import sqlalchemy
> File "/usr/lib/python2.4/site-packages/sqlalchemy/__init__.py", line
> 8, in ?
> from sqlalchemy.types import \
> File "/usr/lib/python2.4/site-packages/sqlalchemy/types.py", line 25,
> in ?
> import datetime as dt
> ImportError: /usr/lib/python2.4/lib-dynload/datetime.so: undefined
> symbol: _Py_ZeroStruct
>
>
>
> And I believe I understood the answer I got on IRC, but just want to
> confirm... If I remove my standard build of python 2.4 and do the
> special build of 2.5.4, I don't need to do anything more than bounce
> freeswitch? Or do I need to rebuild freeswitch so it builds mod_python
> against my new version of python?
>
> Thanks again, you guys have been quite helpful and responsive. I'm
> doubling what I'm paying you right now. :)
>
> Brian
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090129/17e3a199/attachment-0002.html
More information about the FreeSWITCH-users
mailing list