Re: error importing smtplib

2012-11-19 Thread Eric Frederich
I can do this in stand alone programs because my code does the import and calls the login function so I can control the order of things. Unfortunately stand alone programs are not the only ways in which I am using these Python bindings. You can customize and extend this 3rd party application at

Re: error importing smtplib

2012-11-17 Thread Dieter Maurer
Eric Frederich eric.freder...@gmail.com writes: ... So I'm guessing the problem is that after I log in, the process has a conflicting libssl.so file loaded. Then when I try to import smtplib it tries getting things from there and that is where the errors are coming from. The question

Re: error importing smtplib

2012-11-16 Thread Eric Frederich
So I inspected the process through /proc/pid/maps That seemed to show what libraries had been loaded (though there is probably an easier way to do this). In any case, I found that if I import smtplib before logging in I see these get loaded...

Re: error importing smtplib

2012-11-16 Thread Dieter Maurer
Eric Frederich eric.freder...@gmail.com writes: I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd

Re: error importing smtplib

2012-11-16 Thread Terry Reedy
On 11/16/2012 2:37 PM, Eric Frederich wrote: So I inspected the process through /proc/pid/maps That seemed to show what libraries had been loaded (though there is probably an easier way to do this). In any case, I found that if I import smtplib before logging in I see these get loaded...

error importing smtplib

2012-11-15 Thread Eric Frederich
Hello, I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd party login could be doing that would affect

Re: error importing smtplib

2012-11-15 Thread Terry Reedy
On 11/15/2012 9:38 AM, Eric Frederich wrote: Hello, I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
Thanks for the idea. sys.path was the same before and after the login What else should I be checking? On Thu, Nov 15, 2012 at 11:57 AM, Terry Reedy tjre...@udel.edu wrote: On 11/15/2012 9:38 AM, Eric Frederich wrote: Hello, I created some bindings to a 3rd party library. I have found that

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
Sorry, only saw your first response, didn't see the others. I compiled Python 2.7.2 myself with --enable-shared To create standalone applications that interact with this 3rd party program your main C file instead of having a main function has a FOO_user_main function. When you link your program

Re: error importing smtplib

2012-11-15 Thread Terry Reedy
On 11/15/2012 1:48 PM, Eric Frederich wrote: Thanks for the idea. sys.path was the same before and after the login Too bad. That seems to be a typical cause of import failure. What else should I be checking? No idea. You are working beyond my knowledge. But I might either look at the