New submission from Kyle Lahnakoski: I installed python 2.7.8 on Windows version 6.2 (build 9200) and get-pip.py does not run. I traced the problem to c:\python27\lib\tempfile.py Here is my session:
>> c:\Users\kyle\Downloads>python >> Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit Intel)] on >> win32 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import tempfile >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "c:\Python27\lib\tempfile.py", line 32, in <module> >> import io as _io >> File "io.py", line 72, in <module> >> import numpy as N >> ImportError: No module named numpy Ok, seems odd that numpy is required. I installed numpy, and tried again: >> >>> import tempfile >> >>> tmpdir = tempfile.mkdtemp() >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "c:\Python27\lib\tempfile.py", line 325, in mkdtemp >> dir = gettempdir() >> File "c:\Python27\lib\tempfile.py", line 269, in gettempdir >> tempdir = _get_default_tempdir() >> File "c:\Python27\lib\tempfile.py", line 200, in _get_default_tempdir >> with _io.open(fd, 'wb', closefd=False) as fp: >> AttributeError: 'module' object has no attribute 'open' I expected that tempfile would import without issue. ---------- components: IO messages: 231867 nosy: klahnako...@mozilla.com priority: normal severity: normal status: open title: tempfile.py does not work in windows8 type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22967> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com