Paramiko Threading Error
Hi All, Does anybody know what the following error means with paramiko, and how to fix it. I don't know what is causing it and why. I have updated paramiko to version 1.7.7.1 (George) but still has the same issue. Also I can not reproduce the problem and therefore debugging is harder for me. Exception in thread Thread-4 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 1574, in run : 'NoneType' object has no attribute 'error' -- http://mail.python.org/mailman/listinfo/python-list
Re: Paramiko Threading Error
On Jun 10, 3:47 am, David <[email protected]> wrote: > Il Tue, 7 Jun 2011 19:25:43 -0700 (PDT), mud ha scritto: > > > > > > > > > > > Hi All, > > > Does anybody know what the following error means with paramiko, and > > how to fix it. > > > I don't know what is causing it and why. I have updated paramiko to > > version 1.7.7.1 (George) but still has the same issue. > > > Also I can not reproduce the problem and therefore debugging is harder > > for me. > > > Exception in thread Thread-4 (most likely raised during interpreter > > shutdown): > > Traceback (most recent call last): > > File "/usr/lib64/python2.6/threading.py", line 532, in > > __bootstrap_inner > > File "/usr/lib/python2.6/site-packages/paramiko/transport.py", line > > 1574, in run > > : 'NoneType' object has no attribute > > 'error' > > if I remember rightly, I got that kind of error when I tried to use a > transport without setting up the paramiko's logging subsystem. > Try to put in head of your code the line: > > pk.util.log_to_file("log file name.txt") > > D. Hi David, I have tried that already because I though that the logging might indicate what the issue is. What I have found is that paramiko seems to be using threading which is not %100 thread safe in python. So it seems that when the script exits, the interpreter is failing to close the threads running and therefor giving the exception. What I have tried now is to go through all the connections objects that I have opened, close them first if they are open before the script exists. It appears to be working so far but only time will tell. -- http://mail.python.org/mailman/listinfo/python-list
pysvn merge
I have started using your pysvn module and find it very useful. I trying to doing a pysvn.Client.merge which is working well, but I am would like to cater for conflicts. I would like to by default accept “theirs-full” version, but I can’t figure out how to do it. Svn command line merge has a option called –-accept theirs-full (as you already know), and I was trying to use pysvn.Client.merge’s merge_options. But there is no documentation on the accepted merge options or how to use it. I have tried merge_options=[‘—-accept theirs- full’] and merge_options=[‘--accept’, ‘theirs-full’] but no luck. I get the following error: “Error parsing diff options: Bad character specified on command line” I then looked at using the “resolve” method but the only method there is “resolved” which does not resolve the confict. I am using pysvn version 1.7.2.0. Could you please let me know how do I go about resolving the conflicts using pysvn, if anybody of you know. -- http://mail.python.org/mailman/listinfo/python-list
