473,385 Members | 1,983 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,385 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 48167
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.