[Python-Dev] Builder: x86 Windows7 3.x OpenSSL compile error

David Bolen db3l.net at gmail.com
Tue Sep 21 01:02:33 CEST 2010


Antoine Pitrou <solipsis at pitrou.net> writes:

> (...)
>
> test test_ssl failed -- Can't read certificate file
> b'D:\\cygwin\\home\\db3l\\buildarea\\3.x.bolen-windows7\\build\\lib\\test\\keycert.pem'
>
> But the aforementioned certificate file is in the SVN tree and other
> buildslaves have no problem reading it. Can you try to check if there's
> something wrong on your buildslave?

I suspect it's an actual Python bug, though perhaps Win7-specific.

The file is in fact in the tree, and I can read it just fine from the
command line.  If I'm reading the test right, and regardless of the
actual error message, it's really failing an existence test
(os.path.exists) rather than any failure to open or read the file.

Looks like some issue with using bytes for os.path.exists - I
"borrowed" a Python 3.x build currently in the tree as part of build
1611 and tried:

db3l at buildbot-win7 ~
$ buildarea/3.x.bolen-windows7/build/pcbuild/python_d
Python 3.2a2+ (py3k, Sep 20 2010, 18:49:03) [MSC v.1500 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>> import os
[50683 refs]
>>> os.path.exists('d:\\cygwin\\home\\db3l\\buildarea\\3.x.bolen-windows7\\build\\lib\\test\\keycert.pem')
True
[50689 refs]
>>> os.path.exists(b'd:\\cygwin\\home\\db3l\\buildarea\\3.x.bolen-windows7\\buil
d\\lib\\test\\keycert.pem')
False
[50718 refs]

So the bug appears to be why those two calls return a different result.

-- David



More information about the Python-Dev mailing list