[New-bugs-announce] [issue16524] File access not always working with Python for Windows 32 bits on Windows 64 bits OS

Antoine Brodin report at bugs.python.org
Wed Nov 21 17:18:02 CET 2012


New submission from Antoine Brodin:

I have a file:

>dir c:\Windows\System32\scext.dll
14/07/2009  02:41            89 088 scext.dll

With Python 32 bits it fails:

>c:\Python27\python.exe
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat('c:\Windows\System32\scext.dll')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
WindowsError: [Error 2] Le fichier spÚcifiÚ est introuvable: 'c:\\Windows\\Syste
m32\\scext.dll'

With Python 64bits it succeeds:

>c:\Python27-x64\python.exe
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.stat('c:\Windows\System32\scext.dll')
nt.stat_result(st_mode=33206, st_ino=0L, st_dev=0, st_nlink=0, st_uid=0, st_gid=0, st_size=89088L, st_atime=1247527874L, st_mtime=1247535713L, st_ctime=1247527874L)

----------
components: Windows
messages: 176064
nosy: Antoine.Brodin
priority: normal
severity: normal
status: open
title: File access not always working with Python for Windows 32 bits on Windows 64 bits OS
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16524>
_______________________________________


More information about the New-bugs-announce mailing list