[python-win32] RE: Python-win32 Digest, Vol 17, Issue 15

Jody Burgess jody.burgess at sewardconsulting.com
Sun Aug 15 22:18:48 CEST 2004


Can someone please tell me why I would receive the following error in the
interactive window from this command?

Command:
hWD = os.system('lpr -S 192.168.168.9 -P queue- myqueue ' + tmpfile)


Error:
[Dbg]>>> Traceback (most recent call last):
  File
"C:\Python23\lib\site-packages\Pythonwin\pywin\framework\dbgcommands.py",
line 73, in OnGo
    self._DoOrStart("do_set_continue", scriptutils.RS_DEBUGGER_GO)
  File
"C:\Python23\lib\site-packages\Pythonwin\pywin\framework\dbgcommands.py",
line 57, in _DoOrStart
    method()
  File "C:\Python23\lib\site-packages\Pythonwin\pywin\debugger\debugger.py",
line 636, in do_set_continue
    if self.GUIAboutToRun():
  File "C:\Python23\lib\site-packages\Pythonwin\pywin\debugger\debugger.py",
line 787, in GUIAboutToRun
    if not self.StopDebuggerPump():
  File "C:\Python23\lib\site-packages\Pythonwin\pywin\debugger\debugger.py",
line 485, in StopDebuggerPump
    if self.GUIAboutToFinishInteract():
  File "C:\Python23\lib\site-packages\Pythonwin\pywin\debugger\debugger.py",
line 836, in GUIAboutToFinishInteract
    self.oldForeground.EnableWindow(1)
win32ui: The window handle does not specify a valid window
win32ui: Error in Command Message handler for command ID 15022, Code 0


Is there anything I can do to prevent the error from occuring? I have
win32ui imported correctly.


Jody Burgess ISP
Systems Analyst
Seward Consulting Ltd.
780.702.5103
jody.burgess at sewardconsulting.com


-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of
python-win32-request at python.org
Sent: Sunday, August 15, 2004 4:00 AM
To: python-win32 at python.org
Subject: Python-win32 Digest, Vol 17, Issue 15


Send Python-win32 mailing list submissions to
	python-win32 at python.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.python.org/mailman/listinfo/python-win32
or, via email, send a message with subject or body 'help' to
	python-win32-request at python.org

You can reach the person managing the list at
	python-win32-owner at python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-win32 digest..."


Today's Topics:

   1. pyRegistry AttributeError (David Flory)


----------------------------------------------------------------------

Message: 1
Date: Sat, 14 Aug 2004 23:51:45 -0400
From: "David Flory" <flory at fdu.edu>
Subject: [python-win32] pyRegistry AttributeError
To: <python-win32 at python.org>
Message-ID:

<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA48bIjzpX0xGAzADAT0HvxsKAAAAQ
AAAAAkCuZRxldEq1KCa8TecjHgEAAAAA at fdu.edu>

Content-Type: text/plain;	charset="us-ascii"


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just downloaded pyRegistry (the 2004-08-11 binary update, v1.0.3) and am
having a problem.  My test code is:

===============
import pyRegistry
baseKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes"
basereg = pyRegistry.open(baseKey)
print basereg.getValueNames()
print basereg.getKeyNames()
============

Which returns

=================
D:\bin>test_pyRegistry
('Drop Shadow', 'Flat Menus', 'SetupVersion', 'InstallTheme',
'InstallVisualStyle')
Traceback (most recent call last):
  File "D:\bin\test_pyRegistry.py", line 5, in ?
    print basereg.getKeyNames()
AttributeError: getKeyNames
============

It appears as though open() and getValueNames() both work fine while
getKeyNames throws an error.

I am running Python 2.3.4 on a WinXP machine.  Any suggestions?

In advance, many thanks for any help.

- --------------------------------------------------
David Flory, Ph.D.
Professor of Physics
Fairleigh Dickinson University
1000 River Road, Mail Stop T-Bec2-03
Teaneck, New Jersey 07666

Office:   Becton Hall Room 111
Voice:    201-692-7064
Email:    flory at fdu.edu   (regular email)
Pager:    flory at vText.com (subj + text < 150 char)
http://TheFlorys.org/David.Flory/ <== My PGP key is here


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
Comment: 201-692-7064

iQA/AwUBQR7d0Fe2/rcN3lp8EQJv1QCgtSQJFilwnonfp4qrgeL3TL5fmIgAnj9E
Mg8Y4PpRujvkFz/q0EciXiXs
=hXJw
-----END PGP SIGNATURE-----



------------------------------

_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32


End of Python-win32 Digest, Vol 17, Issue 15
********************************************



More information about the Python-win32 mailing list