473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 3428
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bk | last post by:
hi, i'm using pythonwin 2.2.3 my programm reads and write the outlook-adress book using COM. for this i have to use the makepy utility. after i have run the utiltity everything is fine and i...
1
by: Alv Mart | last post by:
Hi, I ran makepy for ADO. After I installed a new version of python I have this error: Do you know why could I have this error? >>> from ADODB import Connection,Recordset >>> conn =...
3
by: Gerson Kurz | last post by:
I have problems getting "COM makepy" working in ActivePython 2.3.2. This is what happens when I start "COM makepy" from the Pythonwin Menu: PythonWin 2.3.2 (#49, Nov 6 2003, 10:18:20) on...
0
by: Jim Kerr | last post by:
Does makepy always respect versioning of interfaces? It appears as though makepy correctly handles versioning of objects you obtain directly, but not for objects you get via a function call. ...
1
by: Tom Willis | last post by:
Just a general question. It seems in COM late binding is something that should be avoided if possible. Because python seems to be really good at doing thing dynamically I'm wondering why no...
2
by: nvhengr | last post by:
Has anyone seen this? When I run the COM Makepy utility and choose Microsoft Excel 9.0 Object Library (1.3), I get an application error message: PythonWin: Pythonwin.exe - Application Error...
1
by: Martin Stettner | last post by:
Hi, when trying to generate the wrapper classes for Microsofts ADO Library (Version 2.8) with makepy, I run into the following problem. Here's what I do (I use ActiveState Python 2.4.1.245) ...
1
by: Steve M | last post by:
When I use the COM Makepy utility on one computer with WindowsXP, ActivePython 2.3 and I select the library Microsoft Word 10.0 Object Library (8.2), things work fine. When I have WindowsXP,...
0
by: Alan Meyer | last post by:
I had an unusual problem tonight running makepy to install some Microsoft COM interfaces in a Python 2.5 Windows XP installation created using the ActiveState installer. In earlier versions of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.