473,668 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

STrange error importing win32gui

I'm using Python 2.3 on windows and trying to use the win32 libs. I
keep getting the following error
import win32gui


Traceback (most recent call last):
File "<pyshell#6 >", line 1, in -toplevel-
import win32gui
ImportError: DLL load failed: A device attached to the system is not
functioning.

I'm not sure what it means ot how to fix it. Any thoughts?
Jul 18 '05 #1
4 2735
jo******@cyberm esa.com (Jay O'Connor) writes:
I'm using Python 2.3 on windows and trying to use the win32 libs. I
keep getting the following error
import win32gui


Traceback (most recent call last):
File "<pyshell#6 >", line 1, in -toplevel-
import win32gui
ImportError: DLL load failed: A device attached to the system is not
functioning.

I'm not sure what it means ot how to fix it. Any thoughts?


Don't you just love those informative Windows error messages?

I had that error message before (can't remember the circumstances),
and never found out what the problem was. Had to work around it
rather than fix it.
John
Jul 18 '05 #2
jj*@pobox.com (John J. Lee) wrote in message news:<87******* *****@pobox.com >...
jo******@cyberm esa.com (Jay O'Connor) writes:
I'm using Python 2.3 on windows and trying to use the win32 libs. I
keep getting the following error
>> import win32gui


Traceback (most recent call last):
File "<pyshell#6 >", line 1, in -toplevel-
import win32gui
ImportError: DLL load failed: A device attached to the system is not
functioning.

I'm not sure what it means ot how to fix it. Any thoughts?


Don't you just love those informative Windows error messages?

I had that error message before (can't remember the circumstances),
and never found out what the problem was. Had to work around it
rather than fix it.
John


When I've had these errors, it's usually indicated
that -- at some point -- one of my network drives
has gone down, especially but not limited to the
one I'm hosting my python-site-packages directory
on. Forcing a reconnection to the drive
(ie net use /del followed by net use) seems to solve it,
even if the drive is by now up and running again.

YMMV
TJG
Jul 18 '05 #3
On 13 Nov 2003 00:42:06 -0800, ti********@viac om-outdoor.co.uk (Tim
Golden) wrote:
jj*@pobox.co m (John J. Lee) wrote in message news:<87******* *****@pobox.com >...
jo******@cyberm esa.com (Jay O'Connor) writes:
> I'm using Python 2.3 on windows and trying to use the win32 libs. I
> keep getting the following error
>
> >>> import win32gui
>
> Traceback (most recent call last):
> File "<pyshell#6 >", line 1, in -toplevel-
> import win32gui
> ImportError: DLL load failed: A device attached to the system is not
> functioning.
>
> I'm not sure what it means ot how to fix it. Any thoughts?


Don't you just love those informative Windows error messages?

I had that error message before (can't remember the circumstances),
and never found out what the problem was. Had to work around it
rather than fix it.
John


When I've had these errors, it's usually indicated
that -- at some point -- one of my network drives
has gone down, especially but not limited to the
one I'm hosting my python-site-packages directory
on. Forcing a reconnection to the drive
(ie net use /del followed by net use) seems to solve it,
even if the drive is by now up and running again.


This is a standalone PC with only a dialup modem for connectivity.
It's an old Win95 machine.

Basically I want to do GUI progrmaming in Python on windows to expand
my offerings as a programmer. I thuoght the win32 api would be good
but I'm also considering wxPython now (I really don't like Tkinter)

FWIW - I'm an unemployed software developer who likes programming in
Python and Smalltalk if anyone needs a warm body.

Jul 18 '05 #4
Jay O'Connor wrote:
On 13 Nov 2003 00:42:06 -0800, ti********@viac om-outdoor.co.uk (Tim
Golden) wrote:

jj*@pobox.c om (John J. Lee) wrote in message news:<87******* *****@pobox.com >...
jo******@cyb ermesa.com (Jay O'Connor) writes:
I'm using Python 2.3 on windows and trying to use the win32 libs. I
keep getting the following error
>>>import win32gui

Traceback (most recent call last):
File "<pyshell#6 >", line 1, in -toplevel-
import win32gui
ImportError : DLL load failed: A device attached to the system is not
functioning .

I'm not sure what it means ot how to fix it. Any thoughts?

Don't you just love those informative Windows error messages?

I had that error message before (can't remember the circumstances),
and never found out what the problem was. Had to work around it
rather than fix it.
John


When I've had these errors, it's usually indicated
that -- at some point -- one of my network drives
has gone down, especially but not limited to the
one I'm hosting my python-site-packages directory
on. Forcing a reconnection to the drive
(ie net use /del followed by net use) seems to solve it,
even if the drive is by now up and running again.

This is a standalone PC with only a dialup modem for connectivity.
It's an old Win95 machine.

Basically I want to do GUI progrmaming in Python on windows to expand
my offerings as a programmer. I thuoght the win32 api would be good
but I'm also considering wxPython now (I really don't like Tkinter)

FWIW - I'm an unemployed software developer who likes programming in
Python and Smalltalk if anyone needs a warm body.


I'm afraid that win32all no longer supports Win95 - that is the cause of
the error. Windows 98 or better works.

I realize this sucks, but at some stage I have to let go - and if it is
good enough for MS to call 95 "unsupporte d", it is good enough for me <wink>

Mark.

Jul 18 '05 #5

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

Similar topics

0
1184
by: Michael J. Bigos | last post by:
Has anyone else come across this? We are building an ASP.Net application that uses a certficate in the local machine store to sign XML data before transmitting it to a third-party. The third party application was getting an "invalid signature" error upon verification of the signature in our Test environments. I thought perhaps our Production (www) certificate version was being used instead, so I exported it from the Production server and...
2
1716
by: unexpected | last post by:
Hey guys, I'm having problems importing a file into my python app. Everytime I try to define the object specified by this file, i.e, test = Test(), It raises an ImportError exception: ImportError: cannot import name Test.
3
1882
by: robert | last post by:
As soon as I install wxPython on a Py2.3.5, my win32ui / win32gui apps freak out. buttons in dialogs are magically pressed. backgrounds of dialogs are colored wrong... this is with current wxPython (it was the same situation with a wx version some months back) When I uninstall wxPython the other win32ui/win32gui apps work again. What could be the reason?
3
7803
by: geskerrett | last post by:
Hope someone can steer me in the right direction. I am trying to use python to collect the values from a Win32 application's control. I can successfull query an retreive the values ListBox, Edit and Buttons, however, the application uses a control called a 'SysListView32' Control. MSDN says that this descends from CListView control and the msdn website reference for this control is;...
0
8459
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8374
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,...
0
8890
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, 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...
0
8791
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 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...
1
8575
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,...
0
5677
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();...
0
4202
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...
2
2018
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1783
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.