Menu

#468 python 3.1 and pywin 214 gives some errors when installing

open
nobody
5
2010-01-18
2010-01-18
No

python 3.1 and pywin 214 gives some errors when installing:

Traceback (most recent call last):
File "<string>", line 601, in <module>
File "<string>", line 329, in install
File "<string>", line 15, in write
AttributeError: 'NoneType' object has no attribute 'write'

Discussion

  • easperhe

    easperhe - 2010-04-09

    Eino, All,

    Was this issue resolved?? I'm trying to install pywin 214 with python 3.1.2 on windows 7 (32-bit) and seeing exactly the same problem.

     
  • Davyd McColl

    Davyd McColl - 2010-05-17

    I still see this on selected machines. I haven't been able to narrow down what makes these machines different though. I've seen the problem appear (and not appear) on WinXP and Win7 (32 and 64-bit). My machine is win7 64-bit and the error doesn't appear. I have mixed users -- some get the error, some don't. The net result is that certain bits of pywin32 aren't usable. The users all have the pywin32 dll's in the correct places (SysWOW64 for 64-bit and System32 for 32-bit).

     
  • Anonymous

    Anonymous - 2010-05-19

    I believe the problem has to do with UAC settings. When the failure occurs, pywintypes31.dll is not copied to C:\WINDOWS\System32. Manually copying this DLL to this directory after installation fixes the installation and allows pywin32 modules to be imported.

    I hope this helps.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.