472,371 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Importerror no module named WIN32API

hi all, again....

having another problem with python COMs, I run a python script on a
win2000 machine, that uses win32com.client and it runs perfectly,
whereas when I come to run it on a win98 machine (the machine that the
code, when completed, will be running from in the future) it returns
the error:

Traceback (most recent call last):
File "firsttry.py", line 1, in ?
import helloworld
File "G:\msmith\python\helloworld.py", line 2, in ?
import win32com
File "C:\PYTHON23\lib\site-packages\win32com\__init__.py", line 5,
in ?
import win32api, sys
ImportError: No module named win32api

Any clues as to how to rectify this problem would be greatly
appreciated

cheers,
matt.
Jul 18 '05 #1
3 48014
Joe Francia <us****@soraia.com> wrote in message news:<gg*********************@news.easynews.com>.. .
Matt Smith wrote:
hi all, again....

having another problem with python COMs, I run a python script on a
win2000 machine, that uses win32com.client and it runs perfectly,
whereas when I come to run it on a win98 machine (the machine that the
code, when completed, will be running from in the future) it returns
the error:

Traceback (most recent call last):
File "firsttry.py", line 1, in ?
import helloworld
File "G:\msmith\python\helloworld.py", line 2, in ?
import win32com
File "C:\PYTHON23\lib\site-packages\win32com\__init__.py", line 5,
in ?
import win32api, sys
ImportError: No module named win32api

Any clues as to how to rectify this problem would be greatly
appreciated

cheers,
matt.


Maybe you need to install the win32all extensions on the Win98 machine?
http://starship.python.net/crew/mhammond/

jf


jf was that supposed to be funny ?

no i would like a serious answer to this problem, as it is seriously hampering
my current project.

cheers,
matt
Jul 18 '05 #2
Matt Smith wrote:
ImportError: No module named win32api

Any clues as to how to rectify this problem would be greatly
appreciated


Maybe you need to install the win32all extensions on the Win98 machine?
http://starship.python.net/crew/mhammond/


jf was that supposed to be funny ?

no i would like a serious answer to this problem, as it is seriously hampering
my current project.


have you checked the "Installation Problems" page (available via the funny
link)?

http://starship.python.net/crew/mham...nProblems.html

have you checked that win32api is installed, and that python is picking up
the right win32api version? have you checked the python path? have you
traced the imports (use "python -v" or "python -vv" to run the program)?
if win32api exists, what happens if you import it from the python prompt?
are all DLLs that win32api depends upon available on your machine (google
for DLL dependency checkers, or use "dumpbin /imports" to check what it
relies on). etc.

</F>


Jul 18 '05 #3
Thanks for the ehlp, it was the pythonpath or rather the lack of one
that was causing me difficulties,

thanks again,
matt
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig meddelelse----- > Fra:...
2
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
0
by: M. Lavasani | last post by:
Hi I am trying to test Python-2.3. Any solution for this problem please: >>>gmake test case $MAKEFLAGS in \ *-s*)...
0
by: Mike | last post by:
Hi. I have Python 2.4 installed on my local machine in c:\Python24. I have also downloaded the python for windows extensions installer pywin32-208.win32-py2.4.exe and installed this to...
0
by: Robert Dailey | last post by:
I created a basic python file and made an attempt to execute it from the command line, however it gives me a weird error after the python file has been executed: Traceback (most recent call...
1
by: Prof Rodney Coates | last post by:
Although I have been using Macs for a quarter of a century and was doing scientific programming in the '60's I am VERY new to Python on the Mac. I have been writing some very simple applications and...
1
by: muralimkrishna26 | last post by:
Unable to import win32gui modlue can any1 help? error message: Traceback (most recent call last): File "<pyshell#11>", line 1, in <module> import win32api ImportError: No module...
0
by: Barak, Ron | last post by:
Hi, I'm trying to compile using py2exe, and am getting the following: $ python_win Setup.py py2exe running py2exe creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build creating...
4
by: Daniel | last post by:
Hello, I'm trying to build a very simple IPC system. What I have done is create Data Transfer Objects (DTO) for each item I'd like to send across the wire. I am serializing these using...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.