By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

makepy.py not working

P: n/a
Hallo,

I've a problem getting makepy running. When I start the tool on my
machine with doubleclick everything is fine.
But when I try this in my Code:

makepy.py -i "Microsoft Excel 11.0 Object Library(1.5)"

I am getting an Syntax Error and command:

makepy.py

bring me this message on the screen:

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'makepy' is not defined

Any ideas what I am doing wrong?
Apr 8 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Tue, Apr 8, 2008 at 4:18 PM, <su*****@googlemail.comwrote:
Hallo,

I've a problem getting makepy running. When I start the tool on my
machine with doubleclick everything is fine.
But when I try this in my Code:

makepy.py -i "Microsoft Excel 11.0 Object Library(1.5)"
This syntax is used to run makepy.py script from command line.
>
I am getting an Syntax Error and command:

makepy.py

bring me this message on the screen:

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'makepy' is not defined

Any ideas what I am doing wrong?
Python interpreter obviously accepts only valid python code, like this:

import win32com.client.makepy
win32com.client.makepy.ShowInfo("Microsoft Excel 11.0 Object Library(1.5)")

--
kv
Apr 8 '08 #2

P: n/a
Ok, thanks for your help. After looking into the makepy.py file it was
clear that this is only a command for the CMD console.

I want to write a function which generates this .py file of the excel
objects. I will now send the command to the CMD threw my python code.

thanks again.

suzhi
Apr 9 '08 #3

P: n/a
Ok, thanks for your help. After looking into the makepy.py file it was
clear that this is only a command for the CMD console.

I want to write a function which generates this .py file of the excel
objects. I will now send the command to the CMD threw my python code.

thanks again.

suzhi
Apr 9 '08 #4

P: n/a
Ok, thanks for your help. After looking into the makepy.py file it was
clear that this is only a command for the CMD console.

I want to write a function which generates this .py file of the excel
objects. I will now send the command to the CMD threw my python code.

thanks again.

suzhi
Apr 9 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.