VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
brian at freeswitch.org Guest
|
Posted: Thu Jan 29, 2009 9:34 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
Can you do some examples and documentation on the wiki about what
you're doing to maybe help others?
/b
On Jan 29, 2009, at 8:27 PM, Brian Deacon wrote:
Quote: | TA-DA!
My python can now not only import the sqlalchemy module, but the
code I
had before that was actually doing some database interaction is
working
now.
Thank you very much for all the help. It is much appreciated.
It sounds like the contents on the wiki with the modules.conf.xml or
the
LD workarounds are superceded now. Should I change the comments on
there to reflect that it should now be fixed?
Brian
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
jmesquita at gmail.com Guest
|
Posted: Thu Jan 29, 2009 9:40 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
I have to ask to _please_ do add more info on the wiki about that cos
python is a language that has been growing a lot on commercial and
open source worlds.
I have a personal interest on that as well since I intend to do some
things with the mod_python module as well.
Thanks,
Mesquita
On Jan 30, 2009, at 12:34 AM, Brian West wrote:
Quote: | Can you do some examples and documentation on the wiki about what
you're doing to maybe help others?
/b
On Jan 29, 2009, at 8:27 PM, Brian Deacon wrote:
Quote: | TA-DA!
My python can now not only import the sqlalchemy module, but the
code I
had before that was actually doing some database interaction is
working
now.
Thank you very much for all the help. It is much appreciated.
It sounds like the contents on the wiki with the modules.conf.xml or
the
LD workarounds are superceded now. Should I change the comments on
there to reflect that it should now be fixed?
Brian
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
tleyden at branchcut.com Guest
|
Posted: Thu Jan 29, 2009 10:28 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
I don't know, I must have had a momentary lapse of reason .. but at least I documented it! |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Fri Jan 30, 2009 9:03 am Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
The reason it works now is because I checked in the LD change into tree yesterday.
It probably would have worked with the old copy of python too but I did not realize we did not make that change yet.
But you still have a fresh new python to boot!
On Thu, Jan 29, 2009 at 9:27 PM, Traun Leyden <tleyden@branchcut.com (tleyden@branchcut.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
bdeacon at highergear.com Guest
|
Posted: Fri Jan 30, 2009 3:39 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
I would love to give back in return for the help you guys have given me,
but I'm not sure what would be valuable. In terms of what it took to
get my stuff to work correctly, it just came down to Anthony checking in
the code fix. My other (failed) attempts to work against a differently
compiled Python weren't necessary. Moreover, it now works with the
python 2.4 I have on that machine as opposed to an "official" 2.5 python
package I was going to replace it with.
So I've updated the part in the wiki about this bug to basically just
say "Fixed in the code now":
http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2F...2Fdatetime.so:_undefined_symbol:_PyExc_IOError
and
http://wiki.freeswitch.org/wiki/Mod_python#ImportError:_.2Fusr.2Flib.2F...2Fdatetime.so:_undefinedsymbol:__Py_ZeroStruct
What maybe isn't on the wiki (or at least I didn't see it) is that the
only way I was able to see the error output was to run freeswitch from
gdb. Would I have seen that log output by bumping up the loglevel from
fs_cli?
But otherwise what I'm doing so far is pretty generic to the other
examples:
<action application="set" data="myvar=python(mypackage.mymodule)" />
And mymodule is just a standard fsapi(session, stream, env, args)
The only "tricky" thing was that the code called from fsapi was calling
out to a postgresql database via sqlalchemy. But from python's point of
view, there's nothing clever about talking to databases, and from
freeswitch's point of view there's nothing clever about calling a python
module's fsapi function.
I'll poke around and see if there's anything in the mod_python area that
I could improve on, but if you could point out anything worthwhile that
I just accomplished (or rather, that y'all accomplished for me) I'd be
more than happy to document it. But near as I can tell, all I've really
done is help you guys fix the bug for which I was the loudest
complainer.
Brian
On Thu, 2009-01-29 at 20:34 -0600, Brian West wrote:
Quote: | Can you do some examples and documentation on the wiki about what
you're doing to maybe help others?
/b
On Jan 29, 2009, at 8:27 PM, Brian Deacon wrote:
Quote: | TA-DA!
My python can now not only import the sqlalchemy module, but the
code I
had before that was actually doing some database interaction is
working
now.
Thank you very much for all the help. It is much appreciated.
It sounds like the contents on the wiki with the modules.conf.xml or
the
LD workarounds are superceded now. Should I change the comments on
there to reflect that it should now be fixed?
Brian
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
bdeacon at highergear.com Guest
|
Posted: Fri Jan 30, 2009 4:07 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
Actually, I punted and it's working with a generic python 2.4.something.
But having just found out that installall is the old lameness, maybe
that was the reason for my linking problems when trying to compile
against a niftier python.
I'll try that trick when next I hit a roadblock.
On Fri, 2009-01-30 at 08:02 -0600, Anthony Minessale wrote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Fri Jan 30, 2009 4:58 pm Post subject: [Freeswitch-users] More troubles with SQLAlchemy and mod_pyt |
|
|
just wikify what you learn and drop by irc and say hi and we can find ways for you to help if you are interested.
On Fri, Jan 30, 2009 at 3:05 PM, Brian Deacon <bdeacon@highergear.com (bdeacon@highergear.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|