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.p y", line 1, in ?
import helloworld
File "G:\msmith\pyth on\helloworld.p y", line 2, in ?
import win32com
File "C:\PYTHON23\li b\site-packages\win32c om\__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. 3 48222
Joe Francia <us****@soraia. com> wrote in message news:<gg******* **************@ news.easynews.c om>... 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.p y", line 1, in ? import helloworld File "G:\msmith\pyth on\helloworld.p y", line 2, in ? import win32com File "C:\PYTHON23\li b\site-packages\win32c om\__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
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 "Installati on 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>
Thanks for the ehlp, it was the pythonpath or rather the lack of one
that was causing me difficulties,
thanks again,
matt This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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: python-list-admin@python.org
> På vegne af Carsten Gehling
> Sendt: 16. juli 2003 16:24
|
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
|
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*) LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
|
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
C:\Python24\Lib\site-packages
Trying to run a python script through a C# console app is causing me
problems: the last line of code in the following block results in a no
module named win32ap error. I'm not sure if this is because there is no
|
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 last):
File "C:\Python25\lib\runpy.py", line 87, in run_module
raise ImportError("No module named " + mod_name)
ImportError: No module named compile.py
| |
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 running them using IDLE.
To start with the applications worked OK. However, as time has progressed, the error message "ImportError: No module named ****" has been generated with increasing frequency.
It has now become impossible to use Python...
|
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 named win32api
|
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 c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build\bdist.win32
creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build\bdist.win32\winexe
creating c:\Documents and...
|
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 cPickle. I've also
tried using pickle (instead of cPickle), but I get the same response.
Below is the code. I'll put the rest of my comments after the code
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |