Cannot create "ChangeRequest"
Opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Use sample code provided
2. Substitute cq db info and bug object type ("ChangeRequest" instead of
"Defect"
3.
What is the expected output? What do you see instead?
I expect some kind of success message, but instead the create() call says:
Parentheses missing around "my" list at (eval 1) line 1098.
Parentheses missing around "my" list at (eval 1) line 1099.
Useless use of a variable in void context at (eval 1) line 1098.
Useless use of a variable in void context at (eval 1) line 1098.
Useless use of a variable in void context at (eval 1) line 1098.
Useless use of a variable in void context at (eval 1) line 1098.
Useless use of a variable in void context at (eval 1) line 1099.
Useless use of a variable in void context at (eval 1) line 1099.
Useless use of a variable in void context at (eval 1) line 1099.
Useless use of a variable in void context at (eval 1) line 1099.
Scalar value @actionTypeNames[$actionType - 1] better written as
$actionTypeNames[$actionType - 1] at (eval 1) line 1283.
couldn't use module name at (eval 1) line 1687.
Free to wrong pool 41cc800 not 250cc58 during global destruction.
Free to wrong pool 44205b0 not 250cc58 during global destruction.
Free to wrong pool 45b8868 not 250cc58 during global destruction.
Free to wrong pool 478ea50 not 250cc58 during global destruction.
Free to wrong pool 499f570 not 250cc58 during global destruction.
Free to wrong pool 4b7c5f0 not 250cc58 during global destruction.
Traceback (most recent call last):
File "c:/schnitz/bin/newBug.py", line 11, in <module>
bug = session.create('ChangeRequest')
File "c:\cygwin\usr\local\lib\python2.7\clearquest\api.py", line 4994, in create
return DeferredWriteEntityProxy(self.BuildEntity(entityDefName),
File "c:\cygwin\usr\local\lib\python2.7\clearquest\api.py", line 232, in newf
result = f(*_args, **_kwds)
File "c:\cygwin\usr\local\lib\python2.7\clearquest\api.py", line 4387, in BuildEntity
ret = Dispatch(ret, 'BuildEntity', None, UnicodeToString=0)
File "c:\python27\lib\site-packages\win32com\client\__init__.py", line 94, in Dispatch
assert UnicodeToString is None, "this is deprecated and will go away"
AssertionError: this is deprecated and will go away
What version of the product are you using? On what operating system?
v58, windows (xp) python 2.7,
Please provide any additional information below.
Original issue reported on code.google.com by ray.schn...@gmail.com
on 12 May 2011 at 12:44
GoogleCodeExporter commented
I ran into the same issue using python 2.6 (standard python *not* ActivePython)
and pywin32 build 216. As a workaround I installed pywin32 212. The assertion
seems to have been introduced in pywin32 build >= 213 according to this bug
report
http://sourceforge.net/tracker/index.php?func=detail&aid=2841107&group_id=78018&
atid=551954
HTH
Original comment by drenna...@gmail.com
on 16 Aug 2011 at 8:36