edit c:\python2.5\lib\site-packages\cbprint.py with the previous code.
extract jaraco from jaraco.windows-1.8-py2.5.egg in site-packages
delete jaraco.windows-1.8-py2.5.egg
edit site-packages\easy-install.pth, delete line :
./jaraco.windows-1.8-py2.5.egg
in site-packages\jaraco\windows\filesystem.py and site-packages\jaraco\windows\
change :
from __future__ import print_function
by
#from __future__ import print_function
from cbprint import Print
delete files filesystem.pyc and privilege.pyc
in site-packages\jaraco\windows\api\filesystem.py in the head of file add lines :
import ctypes
line 6, change :
BOOLEAN, LPWSTR, DWORD, LPVOID, HANDLE, FILETIME,
by
BOOLEAN, LPWSTR, DWORD, HANDLE, FILETIME, # I remove LPOID not define in py2.5
after line 10 from .....
add this code :
try:
LPVOID = ctypes.wintypes.LPVOID
except AttributeError:
# LPVOID wasn't defined in Py2.5, guess it was introduced in Py2.6
LPVOID = ctypes.c_void_p
in site-packages\jaraco\windows\reparse.py :
line 11 change :
LPOVERLAPPED = wintypes.LPVOID
by :
try:
LPVOID = ctypes.wintypes.LPVOID
except AttributeError:
# LPVOID wasn't defined in Py2.5, guess it was introduced in Py2.6
LPVOID = ctypes.c_void_p
LPOVERLAPPED = LPVOID
lines 22 and 24, change :
wintypes.LPVOID,
by
LPVOID,
open a console windowsand tape :
python (enter)
__import__('jaraco.windows.filesystem').windows.filesystem.patch_os_module() (enter, should work now without error, even for python 2.5)
for python 2.5
edit c:\python2. 5\lib\site- packages\ cbprint. py with the previous code.
extract jaraco from jaraco. windows- 1.8-py2. 5.egg in site-packages
delete jaraco. windows- 1.8-py2. 5.egg
edit site-packages\ easy-install. pth, delete line : windows- 1.8-py2. 5.egg
./jaraco.
in site-packages\ jaraco\ windows\ filesystem. py and site-packages\ jaraco\ windows\
change :
from __future__ import print_function
by
#from __future__ import print_function
from cbprint import Print
delete files filesystem.pyc and privilege.pyc
in site-packages\ jaraco\ windows\ api\filesystem. py in the head of file add lines : wintypes. LPVOID
import ctypes
line 6, change :
BOOLEAN, LPWSTR, DWORD, LPVOID, HANDLE, FILETIME,
by
BOOLEAN, LPWSTR, DWORD, HANDLE, FILETIME, # I remove LPOID not define in py2.5
after line 10 from .....
add this code :
try:
LPVOID = ctypes.
except AttributeError:
# LPVOID wasn't defined in Py2.5, guess it was introduced in Py2.6
LPVOID = ctypes.c_void_p
delete file site-packages\ jaraco\ windows\ api\filesystem. pyc
in site-packages\ jaraco\ windows\ reparse. py : wintypes. LPVOID
line 11 change :
LPOVERLAPPED = wintypes.LPVOID
by :
try:
LPVOID = ctypes.
except AttributeError:
# LPVOID wasn't defined in Py2.5, guess it was introduced in Py2.6
LPVOID = ctypes.c_void_p
LPOVERLAPPED = LPVOID
lines 22 and 24, change :
wintypes.LPVOID,
by
LPVOID,
delete file :site-packages\ jaraco\ windows\ reparse. pyc
open a console windowsand tape : _('jaraco. windows. filesystem' ).windows. filesystem. patch_os_ module( ) (enter, should work now without error, even for python 2.5)
python (enter)
__import_