When using searchTasks to gets tasks, as I loop through adding to database get error

Asked by Rick Dhiman

When I get to the 75th or 100th task get this error (on windows 10)

Traceback (most recent call last):
  File "E:\Users\Ronak\My Documents\LiClipse Workspace\juniper\test.py", line 21, in <module>
    task = tasks[i]
  File "E:\Python27\lib\site-packages\lazr\restfulclient\resource.py", line 819, in __getitem__
    found_slice = self._get_slice(slice(key, key + 1))
  File "E:\Python27\lib\site-packages\lazr\restfulclient\resource.py", line 877, in _get_slice
    unicode(self._root._browser.get(page_url)))
  File "E:\Python27\lib\site-packages\lazr\restfulclient\_browser.py", line 411, in get
    response, content = self._request(url, extra_headers=headers)
  File "E:\Python27\lib\site-packages\lazr\restfulclient\_browser.py", line 354, in _request
    str(url), method=method, body=data, headers=headers)
  File "E:\Python27\lib\site-packages\lazr\restfulclient\_browser.py", line 322, in _request_and_retry
    url, method=method, body=body, headers=headers)
  File "E:\Python27\lib\site-packages\httplib2\__init__.py", line 1609, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "E:\Python27\lib\site-packages\launchpadlib\launchpad.py", line 131, in _request
    LaunchpadOAuthAwareHttp, self)._request(*args)
  File "E:\Python27\lib\site-packages\lazr\restfulclient\_browser.py", line 149, in _request
    redirections, cachekey)
  File "E:\Python27\lib\site-packages\httplib2\__init__.py", line 1412, in _request
    _updateCache(headers, response, content, self.cache, cachekey)
  File "E:\Python27\lib\site-packages\httplib2\__init__.py", line 448, in _updateCache
    cache.set(cachekey, text)
  File "E:\Python27\lib\site-packages\lazr\restfulclient\_browser.py", line 233, in set
    os.rename(path_name, cache_full_path)
WindowsError: [Error 3] The system cannot find the path specified

I am getting launchpad project then call get milestone followed by searchTasks() on returned milestone. I then do "for task in tasks:" or even "task = tasks[i]" with a while loop and get the status, date assigned/committed, url, title, and assignee and insert into local database.

Question information

Language:
English Edit question
Status:
Expired
For:
launchpadlib Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.