[python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Jiawei Li
I am running the following line of code: iTunes = win32com.client.gencache.EnsureDispatch('iTunes.Application') This results in this error: Traceback (most recent call last): File Helper.py, line 154, in module File win32com\client\gencache.pyo, line 529, in EnsureDispatch File

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Tim Golden
On 31/03/2011 06:04, Jiawei Li wrote: I am running the following line of code: iTunes = win32com.client.gencache.EnsureDispatch('iTunes.Application') This results in this error: Traceback (most recent call last): File Helper.py, line 154, in module File win32com\client\gencache.pyo,

[python-win32] py3k branch on pywin32 hg repo

2011-03-31 Thread Tim Golden
I note that the pywin32 hg repo has a py3k branch. AFAICT, this is an artefact leftover from CVS days and not a current focus of work? If I'm right, it might be worth marking it as closed (hg commit --close-branch) to avoid confusion. TJG ___

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Jiawei Li
iTunes is installed. On Thu, Mar 31, 2011 at 2:31 AM, Tim Golden m...@timgolden.me.uk wrote: On 31/03/2011 06:04, Jiawei Li wrote: I am running the following line of code: iTunes = win32com.client.gencache.EnsureDispatch('iTunes.Application') This results in this error: Traceback (most

Re: [python-win32] Clear the interactive screen

2011-03-31 Thread Mark Hammond
On 31/03/2011 2:41 AM, Blockheads Oi Oi wrote: On 27/03/2011 07:53, Mark Hammond wrote: Try something like: from pywin.framework import interact interact.edit.currentView.SetSel(0, -1) interact.edit.currentView.Clear() Try the above three lines from the interactive prompt and nothing that I

Re: [python-win32] py3k branch on pywin32 hg repo

2011-03-31 Thread Mark Hammond
On 31/03/2011 7:24 PM, Tim Golden wrote: I note that the pywin32 hg repo has a py3k branch. AFAICT, this is an artefact leftover from CVS days and not a current focus of work? If I'm right, it might be worth marking it as closed (hg commit --close-branch) to avoid confusion. Done, thanks!

[python-win32] EuroPython 2011: call for paper is ending - Please spread the word!

2011-03-31 Thread Palla
Hi all members, I'm Francesco and I am writing on behalf of Python Italia APS, a no-profit association promoting EuroPython conference. (www.europython.eu) Europython End of Call for Presentations is April 6th. I'd like to ask to you to forward this mail to anyone that you feel may be interested.

Re: [python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

2011-03-31 Thread reckoner
-- Message: 3 Date: Wed, 30 Mar 2011 16:17:01 -0700 From: Tim Robertst...@probo.com To: Python-Win32 Listpython-win32@python.org Subject: Re: [python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

Re: [python-win32] Clear the interactive screen

2011-03-31 Thread Blockheads Oi Oi
On 31/03/2011 11:53, Mark Hammond wrote: On 31/03/2011 2:41 AM, Blockheads Oi Oi wrote: On 27/03/2011 07:53, Mark Hammond wrote: Try something like: from pywin.framework import interact interact.edit.currentView.SetSel(0, -1) interact.edit.currentView.Clear() Try the above three lines from

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Tim Roberts
Jiawei Li wrote: iTunes is installed. iTunes is a 64-bit application. Unless they also registered a 32-bit proxy, a 64-bit COM object cannot be used in a 32-bit process. If you need this, it may be time to consider loading a 64-bit Python. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Jiawei Li
Ah, I see. So likewise, I just need to run a 64-bit version of py2exe? On Thu, Mar 31, 2011 at 12:18 PM, Tim Roberts t...@probo.com wrote: Jiawei Li wrote: iTunes is installed. iTunes is a 64-bit application. Unless they also registered a 32-bit proxy, a 64-bit COM object cannot be used

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Tim Roberts
Jiawei Li wrote: Ah, I see. So likewise, I just need to run a 64-bit version of py2exe? Since I have not personally tried running iTunes on a 64-bit system, I can't give you 100% confidence, but based on the error message, I am guessing that will solve your problem, yes. -- Tim Roberts,

[python-win32] Python code for windows users???

2011-03-31 Thread abhijeet mahagaonkar
Dear Py-Winners, I just now finished project in python and would want to distribute to Windows users. What is the best way to do it? I know there is a module py2exe which i can use. I wanted to know what is the best way to achieve this? PS: If I had my way i would have all of the users install