urllib2.URLError when running the tests in windows

Bug #803958 reported by Natalia Bidart on 2011-06-30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Natalia Bidart

Bug Description

Traceback (most recent call last):
  File "C:\Users\Test\src\review\ubuntu_sso\tests\test_account.py", line 166, in
    captcha_id = self.processor.generate_captcha(filename)
  File "C:\Users\Test\src\review\ubuntu_sso\account.py", line 120, in generate_c
    res = urllib2.urlopen(captcha['image_url'])
  File "C:\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 394, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 412, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1302, in file_open
    return self.open_local_file(req)
  File "C:\Python27\lib\urllib2.py", line 1342, in open_local_file
    raise URLError(msg)
urllib2.URLError: <urlopen error [Error 3] The system cannot find the path speci
fied: ''>


Related branches

Changed in ubuntu-sso-client:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Rodney Dawes (dobey)
tags: added: u1-zomg-windows
Natalia Bidart (nataliabidart) wrote :

Another test that fails, I think as a consequence of the trace above, is:

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twisted\int
ernet\defer.py", line 133, in maybeDeferred
    result = f(*args, **kw)
  File "C:\Python27\lib\site-packages\twisted-11.0.0-py2.7-win32.egg\twisted\tri
al\unittest.py", line 1030, in <lambda>
    return lambda: f(*args, **kwargs)
  File "C:\Users\Test\src\review\ubuntu_sso\tests\test_account.py", line 165, in
    self.addCleanup(lambda: os.remove(filename))
exceptions.WindowsError: [Error 2] The system cannot find the file specified: 'u


dobey (dobey) wrote :

Can you please print the url being requested, before it gets passed to urllib2.urlopen() inside account.py?

Natalia Bidart (nataliabidart) wrote :

url is:


Changed in ubuntu-sso-client:
assignee: Rodney Dawes (dobey) → Natalia Bidart (nataliabidart)
status: Triaged → In Progress
Changed in ubuntu-sso-client:
status: In Progress → Fix Committed
dobey (dobey) on 2011-08-25
Changed in ubuntu-sso-client:
milestone: none → 1.3.3
dobey (dobey) on 2011-08-25
Changed in ubuntu-sso-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers