pywin32-bugs Mailing List for Python for Windows Extensions (Page 31)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
(24) |
May
(19) |
Jun
(15) |
Jul
(43) |
Aug
(39) |
Sep
(25) |
Oct
(43) |
Nov
(19) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(21) |
Feb
(18) |
Mar
(14) |
Apr
(80) |
May
(56) |
Jun
(24) |
Jul
(30) |
Aug
(17) |
Sep
(36) |
Oct
(106) |
Nov
(38) |
Dec
(30) |
2005 |
Jan
(14) |
Feb
(14) |
Mar
(48) |
Apr
(28) |
May
(49) |
Jun
(23) |
Jul
(9) |
Aug
(13) |
Sep
(28) |
Oct
(21) |
Nov
(8) |
Dec
(26) |
2006 |
Jan
(56) |
Feb
(33) |
Mar
(33) |
Apr
(18) |
May
(16) |
Jun
(9) |
Jul
(24) |
Aug
(16) |
Sep
(14) |
Oct
(37) |
Nov
(38) |
Dec
(22) |
2007 |
Jan
(7) |
Feb
(16) |
Mar
(11) |
Apr
(15) |
May
(15) |
Jun
(8) |
Jul
(24) |
Aug
(26) |
Sep
(18) |
Oct
(11) |
Nov
(20) |
Dec
(1) |
2008 |
Jan
(19) |
Feb
(55) |
Mar
(7) |
Apr
(35) |
May
(66) |
Jun
(38) |
Jul
(26) |
Aug
(5) |
Sep
(25) |
Oct
(25) |
Nov
(18) |
Dec
(18) |
2009 |
Jan
(25) |
Feb
(38) |
Mar
(29) |
Apr
(25) |
May
(5) |
Jun
(11) |
Jul
(16) |
Aug
(16) |
Sep
(16) |
Oct
(1) |
Nov
(15) |
Dec
(33) |
2010 |
Jan
(13) |
Feb
(11) |
Mar
(1) |
Apr
(24) |
May
(26) |
Jun
(19) |
Jul
(22) |
Aug
(51) |
Sep
(38) |
Oct
(39) |
Nov
(25) |
Dec
(27) |
2011 |
Jan
(40) |
Feb
(31) |
Mar
(21) |
Apr
(42) |
May
(11) |
Jun
(16) |
Jul
(20) |
Aug
(14) |
Sep
(6) |
Oct
(8) |
Nov
(34) |
Dec
(7) |
2012 |
Jan
(60) |
Feb
(24) |
Mar
(6) |
Apr
(28) |
May
(41) |
Jun
(15) |
Jul
(14) |
Aug
(25) |
Sep
(30) |
Oct
(18) |
Nov
(30) |
Dec
(9) |
2013 |
Jan
(3) |
Feb
(8) |
Mar
(17) |
Apr
(23) |
May
(34) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2010-09-27 18:51:10
|
Bugs item #3076741, was opened at 2010-09-27 11:51 Message generated for change (Tracker Item Submitted) made by maphew You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3076741&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: matt wilkie (maphew) Assigned to: Nobody/Anonymous (nobody) Summary: "This object does not support enumeration" Initial Comment: I have script which works fine with python 2.5, but in 2.6 raises error below. The script can be nabbed from http://code.google.com/p/maphew/source/browse/trunk/gis/list-fc-aliases.py. Unfortunately the script requires ArcGIS 9.3 installed on the host machine, along with arcgisscripting.py from here (http://www.yukongis.ca/How_To/Upgrading_ArcGIS_Python) plunked into C:\Python2.6\Lib\site-packages, so duplicating it is not easy. I'm hoping that someone just eyeballing the code can tell me what's wrong? Thanks {{{ Traceback (most recent call last): File "list-fc-aliases.py", line 40, in <module> getDataSets() File "list-fc-aliases.py", line 17, in getDataSets for fd in fds: File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 242, in __getitem__ raise TypeError("This object does not support enumeration") TypeError: This object does not support enumeration }}} ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3076741&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-27 09:08:22
|
Bugs item #2962078, was opened at 2010-03-02 19:10 Message generated for change (Comment added) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2962078&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 6 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: build 214: crash of Menu/Edit/Replace Initial Comment: happens with Menu/Edit/Replace (Ctrl-H) permanently: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. >>> Traceback (most recent call last): File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 358, in OnCmdEditReplace find.ShowReplaceDialog() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 39, in ShowReplaceDialog _ShowDialog(ReplaceDialog) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 50, in _ShowDialog curDialog = dlgClass() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 162, in __init__ dialog.Dialog.__init__(self,self._GetDialogTemplate()) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\mfc\dialog.py", line 33, in __init__ dlg=win32ui.CreateDialogIndirect(id) SystemError: C:\sf\python\dist23\src\Objects\longobject.c:240: bad argument to internal function win32ui.error: Error in Command Message handler for command ID 57641, Code 0 (seems to be not with py2.5) ---------------------------------------------------------------------- >Comment By: kxroberto (kxroberto) Date: 2010-09-27 11:08 Message: patch attached ---------------------------------------------------------------------- Comment By: kxroberto (kxroberto) Date: 2010-09-02 08:57 Message: reproduced with another py2.3.5 session. not with py2.6 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2962078&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-25 15:14:51
|
Bugs item #3075531, was opened at 2010-09-25 11:11 Message generated for change (Settings changed) made by andrewme2 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: andrewme2 (andrewme2) Assigned to: Nobody/Anonymous (nobody) >Summary: Content of mutable objects changes when I type the dot '.' Initial Comment: >From the Python interpreter, create this function: >>> def myfunc(some_list): >>> some_list.append(2) >>> return some_list Now create an empty list 'abc' and type "myfunc(abc)." to invoke autocompletion. Without hitting enter, erase the line. 'abc' will now contain the number 2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-25 15:14:12
|
Bugs item #3075531, was opened at 2010-09-25 11:11 Message generated for change (Settings changed) made by andrewme2 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: andrewme2 (andrewme2) Assigned to: Nobody/Anonymous (nobody) >Summary: Content of mutable objects change when I type the dot '.' Initial Comment: >From the Python interpreter, create this function: >>> def myfunc(some_list): >>> some_list.append(2) >>> return some_list Now create an empty list 'abc' and type "myfunc(abc)." to invoke autocompletion. Without hitting enter, erase the line. 'abc' will now contain the number 2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-25 15:11:45
|
Bugs item #3075531, was opened at 2010-09-25 11:11 Message generated for change (Tracker Item Submitted) made by andrewme2 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: andrewme2 (andrewme2) Assigned to: Nobody/Anonymous (nobody) Summary: Content of mutable objects changes when I type the dot '.' Initial Comment: >From the Python interpreter, create this function: >>> def myfunc(some_list): >>> some_list.append(2) >>> return some_list Now create an empty list 'abc' and type "myfunc(abc)." to invoke autocompletion. Without hitting enter, erase the line. 'abc' will now contain the number 2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-24 19:55:45
|
Bugs item #3075086, was opened at 2010-09-24 13:55 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075086&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tim () Assigned to: Nobody/Anonymous (nobody) Summary: AssertionError building extensions Initial Comment: I'm getting an AssertionError when I attempt to install the Python for Windows extensions. My environment is Windows XP with all the latest security updates applied, and Microsoft Visual Studio 2005 and 2008 both installed. Here's the traceback I'm getting: building exe 'Pythonwin' Traceback (most recent call last): File "C:\Documents and Settings\TimothyB.GSD\My Documents\Downloads\pywin32-21 4\setup.py", line 2152, in <module> ('', ('pywin32.pth',)), File "C:\Python26\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands self.run_command(cmd) File "C:\Python26\lib\distutils\dist.py", line 995, in run_command cmd_obj.run() File "C:\Documents and Settings\TimothyB.GSD\My Documents\Downloads\pywin32-21 4\setup.py", line 1251, in run install.run(self) File "C:\Python26\lib\distutils\command\install.py", line 577, in run self.run_command('build') File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command self.distribution.run_command(command) File "C:\Python26\lib\distutils\dist.py", line 995, in run_command cmd_obj.run() File "C:\Documents and Settings\TimothyB.GSD\My Documents\Downloads\pywin32-21 4\setup.py", line 596, in run build.run(self) File "C:\Python26\lib\distutils\command\build.py", line 134, in run self.run_command(cmd_name) File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command self.distribution.run_command(command) File "C:\Python26\lib\distutils\dist.py", line 995, in run_command cmd_obj.run() File "C:\Python26\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "C:\Documents and Settings\TimothyB.GSD\My Documents\Downloads\pywin32-21 4\setup.py", line 891, in build_extensions self._build_scintilla() File "C:\Documents and Settings\TimothyB.GSD\My Documents\Downloads\pywin32-21 4\setup.py", line 825, in _build_scintilla assert os.path.isdir(build_temp), build_temp AssertionError Any ideas? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075086&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-24 10:03:29
|
Bugs item #3074702, was opened at 2010-09-24 12:03 Message generated for change (Tracker Item Submitted) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3074702&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: frequent KeyDot failed, UnicodeError in interactive Initial Comment: build214 Firing event 'KeyDot' failed. Traceback (most recent call last): File "C:\Python23\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 145, in fire rc = binding.handler(*args) File "C:\Python23\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 307, in KeyDotEvent self._AutoComplete() File "C:\Python23\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 467, in _AutoComplete text = self.GetTextRange(self.LineIndex(minline),endpos) File "C:\Python23\Lib\site-packages\pythonwin\pywin\scintilla\control.py", line 362, in GetTextRange ret = ret.decode(default_scintilla_encoding) UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 5946: unexpected code byte ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3074702&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-20 17:33:55
|
Bugs item #3072046, was opened at 2010-09-20 13:27 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3072046&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: don () Assigned to: Nobody/Anonymous (nobody) Summary: mapi.cpp build error Initial Comment: I'm attempting to build pywin32 on my Windows 7 64-bit system. I wasn't sure if this was a supported environment or not, but I thought I'd post this anyway. VS2008 and VS2010 build environments are failing at the same point: Building pywin32 2.7.214.0 mapi.cpp com/win32comext/mapi/src/mapi.cpp(933) : error C3861: 'OleSetOleError': identifier not found com/win32comext/mapi/src/mapi.cpp(995) : error C3861: 'OleSetOleError': identifier not found com/win32comext/mapi/src/mapi.cpp(1165) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1220) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1268) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1315) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1321) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1327) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1333) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1339) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1389) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1452) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1458) : error C3861: 'SWIG_GetPtr': identifier not found error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2 ---------------------------------------------------------------------- >Comment By: don () Date: 2010-09-20 13:33 Message: Sorry, forgot some interesting output that comes before this point. There are several lines like this referring to various .i files before it gets to mapi.cpp: Generating wrappers for Python c:\Users\dsmith\Downloads\pywin32-214\pywin32-214\com\win32comext\mapi\src\mapi.i : Line 24. Unable to find include file mapilib.i (ignored). Generating wrappers for Python c:\Users\dsmith\Downloads\pywin32-214\pywin32-214\com\win32comext\mapi\src\PyIABContainer.i : Line 8. Unable to find include file mapilib.i (ignored). Generating wrappers for Python c:\Users\dsmith\Downloads\pywin32-214\pywin32-214\com\win32comext\mapi\src\PyIAddrBook.i : Line 6. Unable to find include file mapilib.i (ignored). Generating wrappers for Python c:\Users\dsmith\Downloads\pywin32-214\pywin32-214\com\win32comext\mapi\src\PyIAttach.i : Line 8. Unable to find include file mapilib.i (ignored). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3072046&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-20 17:27:51
|
Bugs item #3072046, was opened at 2010-09-20 13:27 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3072046&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: don () Assigned to: Nobody/Anonymous (nobody) Summary: mapi.cpp build error Initial Comment: I'm attempting to build pywin32 on my Windows 7 64-bit system. I wasn't sure if this was a supported environment or not, but I thought I'd post this anyway. VS2008 and VS2010 build environments are failing at the same point: Building pywin32 2.7.214.0 mapi.cpp com/win32comext/mapi/src/mapi.cpp(933) : error C3861: 'OleSetOleError': identifier not found com/win32comext/mapi/src/mapi.cpp(995) : error C3861: 'OleSetOleError': identifier not found com/win32comext/mapi/src/mapi.cpp(1165) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1220) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1268) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1315) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1321) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1327) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1333) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1339) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1389) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1452) : error C3861: 'SWIG_GetPtr': identifier not found com/win32comext/mapi/src/mapi.cpp(1458) : error C3861: 'SWIG_GetPtr': identifier not found error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3072046&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-16 11:08:16
|
Bugs item #3058134, was opened at 2010-09-02 14:01 Message generated for change (Comment added) made by marquies You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None >Status: Open Resolution: None Priority: 5 Private: No Submitted By: Patrick Breucking (marquies) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with ACL Table, missing IID_IExchangeModifyTable Initial Comment: Hi, while try to read the ACL Table of a folder, I ran into this problem: In a C++ tool (MFCMAPI) this method is used to get the Property PR_ACL_TABLE in a usable data type: // Open the table in an IExchangeModifyTable interface EC_H(lpMAPIProp->OpenProperty( ulPropTag, (LPGUID)&IID_IExchangeModifyTable, 0, MAPI_DEFERRED_ERRORS, (LPUNKNOWN FAR *)&lpExchTbl)); I figured out to do this in python: table = mystore.OpenProperty(mapitags.PR_ACL_TABLE, IID_IExchangeModifyTable, 0 , mapi.MAPI_DEFERRED_ERRORS) But it seems that the MAPI Extension does not know the IID_IExchangeModifyTable type. I just got just this error: AttributeError: 'module' object has no attribute 'IID_IExchangeModifyTable' Maybe I'm wrong, but as far as i can say the MAPI Extension is incomplete in this point, or? Thanks - Marquies ---------------------------------------------------------------------- >Comment By: Patrick Breucking (marquies) Date: 2010-09-16 13:08 Message: I started to write the code for this interface, the swig interface additions and some utility code for type conversions. I would appreciate if this additions would go into the repository. What do you think? - Marquies ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-09-02 15:15 Message: Yes - it is incomplete, at least wrt that interface. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-13 23:03:57
|
Bugs item #2846720, was opened at 2009-08-29 05:56 Message generated for change (Comment added) made by farshizzo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2846720&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Pending Resolution: None Priority: 5 Private: No Submitted By: Farshid Lashkari (farshizzo) Assigned to: Nobody/Anonymous (nobody) Summary: win32ui crash in embedded app (212 -> 213 & 214 regression) Initial Comment: I have an application that embeds python and uses the win32ui module. Everything worked fine until I upgraded from 212 to 214. After the upgrade my application crashes on exit. The Visual Studio debugger is showing that the crash is occurring after my application calls CoUninitialize. Here is a rough outline of what my app does: CoInitialize(NULL) InitPython() RunPythonCode() //This code will import win32ui ClosePython() CoUninitialize() Simply importing the win32ui module causes the crash. I don't even need to call any of the modules functions. If I don't import win32ui then my application exits cleanly. I tried downgrading to version 213 but the crash still occurs. Version 212 seems to be the last version that was stable with my application. ---------------------------------------------------------------------- Comment By: Farshid Lashkari (farshizzo) Date: 2010-09-13 23:03 Message: I just attached a simple console app that reproduces the issue for me using Python 2.7. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-08-30 04:34 Message: I'm going to need either a repo or more details information on the crash. ---------------------------------------------------------------------- Comment By: Farshid Lashkari (farshizzo) Date: 2009-08-29 06:02 Message: Forgot to mention that I'm using Python 2.4 & 2.6, and both exhibit the same behavior. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2846720&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-08 00:55:01
|
Bugs item #3061607, was opened at 2010-09-08 10:39 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3061607&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: John J (jinkerson) Assigned to: Nobody/Anonymous (nobody) Summary: MS Windows 7 Initial Comment: Does pywin32 work on MS Windows 7? Windows 7 is not in the OS list. I have downloaded Python 3.1 to my machine in the hopes of building the GNOME Sudoku. I am getting a consistent error on every print statement of the form print("some text here") Any thoughts? Is pywin32 supposed to be a windows alternative to python3.1? Will pywin32 fix the errors I am getting with print statements? John J ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-09-08 10:55 Message: pywin32 works fine on windows 7. pywin32 doesn't change the behaviour of python 3.x at all - it sounds like you should be using python 2.x ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3061607&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-08 00:39:15
|
Bugs item #3061607, was opened at 2010-09-07 20:39 Message generated for change (Tracker Item Submitted) made by jinkerson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3061607&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: John J (jinkerson) Assigned to: Nobody/Anonymous (nobody) Summary: MS Windows 7 Initial Comment: Does pywin32 work on MS Windows 7? Windows 7 is not in the OS list. I have downloaded Python 3.1 to my machine in the hopes of building the GNOME Sudoku. I am getting a consistent error on every print statement of the form print("some text here") Any thoughts? Is pywin32 supposed to be a windows alternative to python3.1? Will pywin32 fix the errors I am getting with print statements? John J ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3061607&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-02 13:15:07
|
Bugs item #3058134, was opened at 2010-09-02 22:01 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None >Status: Pending Resolution: None Priority: 5 Private: No Submitted By: Patrick Breucking (marquies) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with ACL Table, missing IID_IExchangeModifyTable Initial Comment: Hi, while try to read the ACL Table of a folder, I ran into this problem: In a C++ tool (MFCMAPI) this method is used to get the Property PR_ACL_TABLE in a usable data type: // Open the table in an IExchangeModifyTable interface EC_H(lpMAPIProp->OpenProperty( ulPropTag, (LPGUID)&IID_IExchangeModifyTable, 0, MAPI_DEFERRED_ERRORS, (LPUNKNOWN FAR *)&lpExchTbl)); I figured out to do this in python: table = mystore.OpenProperty(mapitags.PR_ACL_TABLE, IID_IExchangeModifyTable, 0 , mapi.MAPI_DEFERRED_ERRORS) But it seems that the MAPI Extension does not know the IID_IExchangeModifyTable type. I just got just this error: AttributeError: 'module' object has no attribute 'IID_IExchangeModifyTable' Maybe I'm wrong, but as far as i can say the MAPI Extension is incomplete in this point, or? Thanks - Marquies ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-09-02 23:15 Message: Yes - it is incomplete, at least wrt that interface. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-02 12:01:03
|
Bugs item #3058134, was opened at 2010-09-02 14:01 Message generated for change (Tracker Item Submitted) made by marquies You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Patrick Breucking (marquies) Assigned to: Nobody/Anonymous (nobody) Summary: Problems with ACL Table, missing IID_IExchangeModifyTable Initial Comment: Hi, while try to read the ACL Table of a folder, I ran into this problem: In a C++ tool (MFCMAPI) this method is used to get the Property PR_ACL_TABLE in a usable data type: // Open the table in an IExchangeModifyTable interface EC_H(lpMAPIProp->OpenProperty( ulPropTag, (LPGUID)&IID_IExchangeModifyTable, 0, MAPI_DEFERRED_ERRORS, (LPUNKNOWN FAR *)&lpExchTbl)); I figured out to do this in python: table = mystore.OpenProperty(mapitags.PR_ACL_TABLE, IID_IExchangeModifyTable, 0 , mapi.MAPI_DEFERRED_ERRORS) But it seems that the MAPI Extension does not know the IID_IExchangeModifyTable type. I just got just this error: AttributeError: 'module' object has no attribute 'IID_IExchangeModifyTable' Maybe I'm wrong, but as far as i can say the MAPI Extension is incomplete in this point, or? Thanks - Marquies ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058134&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-02 06:58:58
|
Bugs item #3058010, was opened at 2010-09-02 08:58 Message generated for change (Tracker Item Submitted) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058010&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: breakpoint delete crash Initial Comment: File "C:\Python26\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 267, in OnKeyDown return DebuggerWindow.OnKeyDown(self, msg) File "C:\Python26\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 164, in OnKeyDown self.DeleteSelected() File "C:\Python26\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 333, in DeleteSelected for bplist in Breakpoint.bplist.itervalues(): RuntimeError: dictionary changed size during iteration ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3058010&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-09-02 06:57:30
|
Bugs item #2962078, was opened at 2010-03-02 19:10 Message generated for change (Comment added) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2962078&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None >Priority: 6 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: build 214: crash of Menu/Edit/Replace Initial Comment: happens with Menu/Edit/Replace (Ctrl-H) permanently: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. >>> Traceback (most recent call last): File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 358, in OnCmdEditReplace find.ShowReplaceDialog() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 39, in ShowReplaceDialog _ShowDialog(ReplaceDialog) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 50, in _ShowDialog curDialog = dlgClass() File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\scintilla\find.py", line 162, in __init__ dialog.Dialog.__init__(self,self._GetDialogTemplate()) File "C:\PYTHON23\Lib\site-packages\pythonwin\pywin\mfc\dialog.py", line 33, in __init__ dlg=win32ui.CreateDialogIndirect(id) SystemError: C:\sf\python\dist23\src\Objects\longobject.c:240: bad argument to internal function win32ui.error: Error in Command Message handler for command ID 57641, Code 0 (seems to be not with py2.5) ---------------------------------------------------------------------- >Comment By: kxroberto (kxroberto) Date: 2010-09-02 08:57 Message: reproduced with another py2.3.5 session. not with py2.6 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2962078&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-31 22:42:58
|
Bugs item #3057047, was opened at 2010-08-31 15:42 Message generated for change (Tracker Item Submitted) made by tnili You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3057047&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: tnili (tnili) Assigned to: Nobody/Anonymous (nobody) Summary: Error at the end of install on Win 7 Initial Comment: A colleague and I both got this error on Win 64-bit in the last dialog of the installer: close failed in file object destructor: Error in sys.excepthook: Original exception was: I was able find this thread which describe the same problem: http://python-forum.com/pythonforum/viewtopic.php?f=15&t=17163&start=0&sid=84e05d8a7c989bb8a3f36ea0a868c28a When I run pywin32_postinstall.py manually, this is what I get: C:\Python27\Scripts>pywin32_postinstall.py -install Copied pythoncom27.dll to C:\Windows\system32\pythoncom27.dll Copied pywintypes27.dll to C:\Windows\system32\pywintypes27.dll Registered: Python.Interpreter Registered: Python.Dictionary Registered: Python -> Software\Python\PythonCore\2.7\Help[None]=None -> Software\Python\PythonCore\2.7\Help\Pythonwin Reference[None]='C:\\Python27\\ Lib\\site-packages\\PyWin32.chm' Pythonwin has been registered in context menu Can't install shortcuts - u'C:\\Users\\SND\\AppData\\Roaming\\Microsoft\\Windows \\Start Menu\\Programs\\Python 2.7' is not a folder The pywin32 extensions were successfully installed. PyWin32 appears to be installed and operational despite the error. The Python 2.7 program group icons are also registered despite the warning in the output above. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3057047&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 17:21:13
|
Feature Requests item #2802102, was opened at 2009-06-05 17:43 Message generated for change (Comment added) made by kf7xm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=2802102&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 1 Private: No Submitted By: Vernon Cole (kf7xm) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot build pywin32 on Vista using VC++ Express Edition Initial Comment: I always try to use only free stuff -- especially if I have to buy things from Micro$oft -- so, just as an experiment, I attempted to build pywin32 (current CVS as of 2009-06-05) using the current free compiler on my Vista laptop. It worked much better than I expected, but setup.py finally crashed with: v v v v v Microsoft Windows [Version 6.0.6002] ... C:\pywin32>c:\python26\python.exe setup.py build Building pywin32 2.6.213.1 running build running build_py running build_ext Found version 0x600 in C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\SDK DDKVER.H building 'perfmondata' extension mc.exe -h win32\src\perfmon -r build\temp.win32-2.6\Release\win32\src\perfmon wi n32\src\perfmon\PyPerfMsgs.mc error: command 'mc.exe' failed: No such file or directory C:\pywin32> ^ ^ ^ ^ ^ Environment: Vista Home Basic with SP2 CPython 2.6.2 Microsoft Visual C++ 2008 Express Edition with SP1 - ENU Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729 Microsoft Windows SDK for Visual Studio 2008 Headers and Libraries Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for .NET Framework - enu Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for Win32 -- Vernon Cole ---------------------------------------------------------------------- >Comment By: Vernon Cole (kf7xm) Date: 2010-08-30 11:21 Message: Mark: Yes, that change would be appropriate. I tried, in vain, to find a redistributable copy of 'mc.exe'. I don't know enough about the build process to know whether in can be eliminated, worked around, or replaced. -- Vernon ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-08-29 18:37 Message: Moving to feature requests - there is no patch attached - was that the intent? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=2802102&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:34:49
|
Bugs item #2846720, was opened at 2009-08-29 15:56 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2846720&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None >Status: Pending Resolution: None Priority: 5 Private: No Submitted By: Farshid Lashkari (farshizzo) Assigned to: Nobody/Anonymous (nobody) Summary: win32ui crash in embedded app (212 -> 213 & 214 regression) Initial Comment: I have an application that embeds python and uses the win32ui module. Everything worked fine until I upgraded from 212 to 214. After the upgrade my application crashes on exit. The Visual Studio debugger is showing that the crash is occurring after my application calls CoUninitialize. Here is a rough outline of what my app does: CoInitialize(NULL) InitPython() RunPythonCode() //This code will import win32ui ClosePython() CoUninitialize() Simply importing the win32ui module causes the crash. I don't even need to call any of the modules functions. If I don't import win32ui then my application exits cleanly. I tried downgrading to version 213 but the crash still occurs. Version 212 seems to be the last version that was stable with my application. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:34 Message: I'm going to need either a repo or more details information on the crash. ---------------------------------------------------------------------- Comment By: Farshid Lashkari (farshizzo) Date: 2009-08-29 16:02 Message: Forgot to mention that I'm using Python 2.4 & 2.6, and both exhibit the same behavior. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2846720&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:29:10
|
Bugs item #2895488, was opened at 2009-11-11 08:37 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2895488&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: installation Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Sridhar Ratnakumar (nearfar) Assigned to: Mark Hammond (mhammond) Summary: win32/help/ is missing Initial Comment: the 214 source tarball is missing the win32/help/ directory. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:29 Message: all checked in ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2009-11-11 12:15 Message: Thanks - I've made the fix locally and will commit it after I next test the build. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2895488&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:26:00
|
Bugs item #2924128, was opened at 2009-12-31 22:25 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2924128&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: rolyapples (rolyapples) Assigned to: Mark Hammond (mhammond) Summary: Crash in dispatchServiceCtrl() for service with power event Initial Comment: If you create a service that accepts power events (by overriding GetAcceptedControls), the service will crash in dispatchServiceCtrl() when any power event other than PBT_POWERSETTINGCHANGE occurs. The problem is that the code assumes eventData for a SERVICE_CONTROL_POWEREVENT is always a pointer to a POWERBROADCAST_SETTING structure, however that is only the case when dwEventType is PBT_POWERSETTINGCHANGE. For other event types (e.g. PBT_APMSUSPEND), the eventData is null. To reproduce: 1. From your python install directory run "python Lib\site-packages\win32\Demos\service\serviceEvents.py install" 2. Run "python Lib\site-packages\win32\Demos\service\serviceEvents.py start" 3. Put your machine to sleep 4. Wake your machine 5. Check the windows application event log - see that there's an error for the service & that the service is no longer running Changing this in dispatchServiceCtrl() in PythonService.cpp: case SERVICE_CONTROL_POWEREVENT: { POWERBROADCAST_SETTING *pbs = (POWERBROADCAST_SETTING *)eventData; sub = Py_BuildValue("NN", PyWinObject_FromIID(pbs->PowerSetting), PyString_FromStringAndSize((char *)pbs->Data, pbs->DataLength)); break; To the following is working for me: case SERVICE_CONTROL_POWEREVENT: { if (dwEventType == PBT_POWERSETTINGCHANGE) { POWERBROADCAST_SETTING *pbs = (POWERBROADCAST_SETTING *)eventData; sub = Py_BuildValue("NN", PyWinObject_FromIID(pbs->PowerSetting), PyString_FromStringAndSize((char *)pbs->Data, pbs->DataLength)); } else { sub = Py_None; Py_INCREF(sub); } break; ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:26 Message: thanks Checking in PythonService.cpp; new revision: 1.28; previous revision: 1.27 ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-01-02 13:10 Message: looks good, thanks! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2924128&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:17:13
|
Bugs item #2984187, was opened at 2010-04-09 08:43 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2984187&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Pending >Resolution: Works For Me Priority: 5 Private: No Submitted By: Neil Murphy (neilhmurphy) Assigned to: Nobody/Anonymous (nobody) Summary: PythonWin Edit pythonpath doesn't work Initial Comment: I'm using PythonWin under Win7 no SP 64 bit. I try to edit pythonpath (Tools.Edit PythonPath). The help screen brings up the Active State document reardless of what I choose. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:17 Message: I can't quite understand this report - it seems to work for me, although does end in an "Access Denied" error due to run being run in elevated mode. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2984187&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:14:53
|
Bugs item #2999657, was opened at 2010-05-11 08:58 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2999657&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: help() failure Initial Comment: This pretty much says it all: help("os.urandom")Firing event 'ProcessEnter' failed. Traceback (most recent call last): File "C:\Python26\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 142, in fire rc = binding.handler(*args) File "C:\Python26\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 453, in ProcessEnterEvent if self.HandleSpecialLine(): return 0 File "C:\Python26\Lib\site-packages\pythonwin\pywin\framework\winout.py", line 152, in HandleSpecialLine line = self.GetLine(lineNo-1) File "C:\Python26\Lib\site-packages\pythonwin\pywin\scintilla\control.py", line 373, in GetLine return self.GetTextRange(start, end) File "C:\Python26\Lib\site-packages\pythonwin\pywin\scintilla\control.py", line 362, in GetTextRange ret = ret.decode(default_scintilla_encoding) File "C:\Python26\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-2: invalid data Help->About reports pywin32 build214 Running Python 2.6.5 from python.org locally. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:14 Message: WFM too - I wonder if a default encoding has been specified in site.py? ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-06 08:20 Message: I can't reproduce this. Can you provide some more specifics on how to make it happen ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2999657&group_id=78018 |
From: SourceForge.net <no...@so...> - 2010-08-30 04:13:07
|
Bugs item #2986020, was opened at 2010-04-13 03:19 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2986020&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Steve C (mrsteve1999) Assigned to: Nobody/Anonymous (nobody) Summary: Inserting special character causes source file deletion Initial Comment: >From within PythonWin editor, inserting a string containing a certain special character (–, as seen in "Char to paste.txt") into a python string object, and then attempting to save the file, causes the source file to be erased completely, from outside the editor. Using the 2 attached files, copy the character in "Char to paste.txt" to the clipboard. Open "Bug Demo.py" with PythonWin, and paste the character into the second string in the same location as the hyphen in the first string. Save the file. At the very minimum, this error should be handled much more gracefully. I nearly lost a significant amount of code when this happened initially, and fortunately I chose NOT to reload the (now empty) file in the editor, so I had the opportunity to copy the code. Environment: PyWin32 build 214 64-bit Windows 7 Ultimate ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-30 14:13 Message: Fixed by Roger on 2010/05/06 ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-05-03 22:12 Message: Here's the relevant part of the traceback: Traceback (most recent call last): File "J:\Python31\Lib\site-packages\pythonwin\pywin\framework\editor\document.py", line 77, in OnSaveDocument self.SaveFile(fileName) File "J:\Python31\Lib\site-packages\pythonwin\pywin\scintilla\document.py", line 54, in SaveFile ok = view.SaveTextFile(fileName) File "J:\Python31\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 394, in SaveTextFile doc._SaveTextToFile(self, f) File "J:\Python31\Lib\site-packages\pythonwin\pywin\scintilla\document.py", line 156, in _SaveTextToFile f.write(s.encode(source_encoding)) UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 139: ordinal not in range(256) Looks like we should default the file encoding to something other than latin-1. This would also mean inserting a coding declaration where one doesn't already exist. Alternately, we could catch the error and just pop up a message box saying than an encoding should be specified in the source file. Either way, the actual encoding needs to be attempted before opening the file to avoid losing any existing data. ---------------------------------------------------------------------- Comment By: Steve C (mrsteve1999) Date: 2010-04-13 12:16 Message: Windows Clipboard.... Initially from Visual Studio 2005, and also occurs when copying from Notepad. I think as long as the correct character gets pasted, it is the process of saving that triggers the issue. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-04-13 11:35 Message: What tool did you use to *copy* the character? The tool used is probably important for me to reliably reproduce this. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2986020&group_id=78018 |