Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib failure while importing tickets #2

Open
johan opened this issue May 28, 2009 · 2 comments
Open

urllib failure while importing tickets #2

johan opened this issue May 28, 2009 · 2 comments

Comments

@johan
Copy link

johan commented May 28, 2009

Importing the trac environment http://www.lysator.liu.se/~jhs/greasemonkey.trac.zip to an empty github issue tracker, aborts on this error:

sudo ./trac2issues.py -p greasemonkey -m -x -o -r -c -u http://greasemonkey.devjavu.com -t /var/trac/greasemonkey
Does this look like a valid trac url? [y/N]
http://greasemonkey.devjavu.com/ticket/1234567
y
About to import (260) tickets from Trac to johan/greasemonkey.
Are you sure you wish to continue? [y/N]
y
Creating issue.
Issue #1 created.
Adding label @ to issue # 1
Adding label @@[email protected] to issue # 1
Traceback (most recent call last):
File "./trac2issues.py", line 250, in
ImportTickets()
File "./trac2issues.py", line 67, in init
self._fetchTickets()
File "./trac2issues.py", line 141, in _fetchTickets
self.createIssue(data)
File "./trac2issues.py", line 179, in createIssue
self.createLabel(num, "@@%s" % info['reporter'])
File "./trac2issues.py", line 203, in createLabel
response = urllib2.urlopen(req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 427, in error
return self._call_chain(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(_args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

@johan
Copy link
Author

johan commented May 28, 2009

Ugh. Pardon the shell session not surviving MarkDown interpretation unscathed.

@dkindlund
Copy link

Not sure if this is related, but according to:
http://develop.github.com/p/general.html

If you make more than 60 API calls per minute, the web service will actively block your connections (for a brief period of time). This problem will occur if you have a significantly large number of tickets. Adding sleep(5) calls between web service calls will prevent this from happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants