472,135 Members | 1,244 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,135 software developers and data experts.

makepy.py not working

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
4 3219
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
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
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
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.

Similar topics

1 post views Thread by Alv Mart | last post: by
3 posts views Thread by Gerson Kurz | last post: by
reply views Thread by Jim Kerr | last post: by
1 post views Thread by Tom Willis | last post: by
2 posts views Thread by nvhengr | last post: by
1 post views Thread by Martin Stettner | last post: by
1 post views Thread by Steve M | last post: by
reply views Thread by Alan Meyer | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.