Seems like a similar patch needs to be applied to
git_trac/digest_transport.py when your system defaults to Python 3.

Best,
Johan



Volker Braun writes:

> Thats because of https, you need to do the analog change that I just did on 
> the git-trac script:
>
> diff --git a/git_trac/digest_transport_py2.py 
> b/git_trac/digest_transport_py2.py
> index 28a8520..c030432 100644
> --- a/git_trac/digest_transport_py2.py
> +++ b/git_trac/digest_transport_py2.py
> @@ -121,7 +121,7 @@ class DigestTransport(object, SafeTransport):
>          try:
>              import urlparse
>              req = urllib2.Request(
> -                    urlparse.urlunparse(('http', host, handler, '', '', 
> '')),
> +                    urlparse.urlunparse(('https', host, handler, '', '', 
> '')),
>                      request_body, {'Content-Type': 'text/xml',
>                          'User-Agent': self.user_agent})
>              response = self.opener.open(req)
>
>
>
> On Wednesday, June 22, 2016 at 7:15:01 PM UTC+2, Frédéric Chapoton wrote:
>>
>> Here are 2 distinct problems, that look similar.
>>
>> (1) The new trac seems to have broken the patchbots, with the following 
>> traceback. Maybe just because of https, but not sure.
>>
>> Traceback (most recent call last):
>>   File "sage_patchbot/patchbot.py", line 997, in test_a_ticket
>>   File "sage_patchbot/trac.py", line 297, in pull_from_trac
>>   File "sage_patchbot/trac.py", line 116, in scrape
>>   File "sage_patchbot/trac.py", line 376, in load
>>   File "sage_patchbot/trac_ticket.py", line 160, in TracTicket
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
>>     return self.__send(self.__name, args)
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
>>     verbose=self.__verbose
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
>>     return self.single_request(host, handler, request_body, verbose)
>>   File "sage_patchbot/digest_transport_py2.py", line 116, in single_request
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in parse_response
>>     return u.close()
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 792, in close
>>     raise ResponseError()
>> ResponseError: ResponseError()
>> 2016-06-22 17:12:01
>> 2 seconds
>> [2016-06-22 17:12:03] #20629 raises an exception: ResponseError()
>> Traceback (most recent call last):
>>   File "sage_patchbot/patchbot.py", line 997, in test_a_ticket
>>   File "sage_patchbot/trac.py", line 297, in pull_from_trac
>>   File "sage_patchbot/trac.py", line 116, in scrape
>>   File "sage_patchbot/trac.py", line 376, in load
>>   File "sage_patchbot/trac_ticket.py", line 160, in TracTicket
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
>>     return self.__send(self.__name, args)
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
>>     verbose=self.__verbose
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
>>     return self.single_request(host, handler, request_body, verbose)
>>   File "sage_patchbot/digest_transport_py2.py", line 116, in single_request
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in parse_response
>>     return u.close()
>>   File "/usr/lib/python2.7/xmlrpclib.py", line 792, in close
>>     raise ResponseError()
>> ResponseError: ResponseError()
>>


-- 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to