473,715 Members | 6,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"import wxPython"-error

YarrOfDoom
1,247 Recognized Expert Top Contributor
I just installed wxPython on my computer (Windows "fails-a-lot" Vista, 32bit, Python 2.6, PIL and pyOpenGL installed).

However, when I try to import the wxPython module, I get this:
Expand|Select|Wrap|Line Numbers
  1. >>> import wxPython
  2.  
  3. Traceback (most recent call last):
  4.   File "<pyshell#0>", line 1, in <module>
  5.     import wxPython
  6.   File "C:\Python26\lib\site-packages\wx-2.8-msw-ansi\wxPython\__init__.py", line 7, in <module>
  7.     DeprecationWarning, stacklevel=2)
  8.   File "C:\Python26\lib\warnings.py", line 29, in _show_warning
  9.     file.write(formatwarning(message, category, filename, lineno, line))
  10. TypeError: idle_formatwarning_subproc() takes exactly 4 arguments (5 given)
What could possibly be wrong?
Oct 30 '08 #1
4 3613
kaarthikeyapreyan
107 New Member
My Guess is that the error is caused due to the incompatible versions of the pre-requisties and the WX python installed. I have faced similar kind of problems on my linux box give it a try with a different combinations of the installers
Oct 30 '08 #2
YarrOfDoom
1,247 Recognized Expert Top Contributor
Oops, stupid me. Should have been import wx instead of import wxPython, works all fine now.
Oct 30 '08 #3
tharden3
916 Contributor
Is this your first look at wx? I looked into a little bit of that a few months ago. It's pretty cool, and relatively easy to pick up. I have good tutorials if you need any. I won't post them here, but if you'd like some PM me.
Oct 31 '08 #4
timoteo
6 New Member
could you send it to my email?
i am using python 2.6.1
and wxpyhton
but can not make a siple hello window example...
Expand|Select|Wrap|Line Numbers
  1. import wx
  2. app = wx.PySimpleApp()
  3. frame = wx.Frame(None, wx.ID_ANY, "Hello World")
  4. frame.Show(True)
  5. app.MainLoop()
  6.  
i receave the error:
IDLE 2.6.1 ==== No Subprocess ====
>>>
Traceback (most recent call last):
File "E:\Python\test e.pyw", line 1, in <module>
import wx
File "C:\Python26\li b\site-packages\wx-2.8-msw-unicode\wx\__in it__.py", line 45, in <module>
from wx._core import *
File "C:\Python26\li b\site-packages\wx-2.8-msw-unicode\wx\_cor e.py", line 4, in <module>
import _core_
ImportError: DLL load failed: Não foi possível iniciar esta aplicação porque a configuração da aplicação está incorrecta. A reinstalação da aplicação poderá corrigir este problema.

by the way i use winXP

Any help is well come.
Thanks
Tim
Jan 23 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4339
by: Simon Erikson | last post by:
Hello: I would like to build an app consisting of a "root" frame that can contain an arbitrary number of child frames (the user will click to create them). Each of these child frames needs the full functionality of a frame (title,menu,status bars, min,max,close icons, scroll bars, sizing, moving). In addition, the user must be able to create grandchild frames within these child frames, to an arbitrary depth (in practice limited to 10...
2
1760
by: Torsten Mohr | last post by:
Hi, i tried to find the file and line in the C sources of python where the command "import" is implemented. Can anybody give me some hint on this? Thanks, Torsten.
12
6495
by: Simon John | last post by:
I'm writing my 2nd large wxPython program, and after the problems I found doing the first's layout in code, I'd like to look at using a 'WYSIWYG' IDE, like VisualStudio does for MFC. I've tried a few that I found, wxGlade is probably the best, although it seems to be not 100% WYSIWYG (like the widgets in the preview are not much like the final program), wxDesigner has a horrid GUI for a GUI designer! VisualWX gave me the 'now what?'...
2
3092
by: Tian | last post by:
I am writing a python program which needs to support some plug-ins. I have an XML file storing some dynamic structures. XML file records some class names whose instance needs to be created in the run time while parsing the XML file. I wonder what is the best solution for this problem? I also have some problem about the "import". How should I design my packages? Say, I have all code locates at c:\projects\sami, "c:\project" is in my...
9
4973
by: monkey | last post by:
I just learn to make a blank windows frame with python and wxpython. I found the statment "import wx" cannot work as the original "from wxPython.wx import *". I see in the readme file of wxpython that if I install it as the default one, I can use "import wx" instead of the long one. What is wrong? The code pasted below: import wx # the default is "from wxPython.wx import *", I change it and it just can't work. class MyApp(wxApp):
2
1566
by: Iain King | last post by:
New book on wxPython: http://www.manning.com/books/rappin Release date of this month. Does anyone know if it's out yet / has anyone read it and has an opinion? Iain
5
2185
by: mark_galeck_spam_magnet | last post by:
Hi, why does complain name 'compileFile' not defined. But works. Why? (I did read the tutorial, it seems to say "import module" should work. Thank you, Mark
14
2134
by: Paulo da Silva | last post by:
Hi! If I have two files .py such as m.py from c import * ... x=c() ... os.any_method ...
1
1994
by: Eric Hanchrow | last post by:
(This is with Python 2.5.2, on Ubuntu Hardy, if it matters.) This seems so basic that I'm surprised that I didn't find anything about it in the FAQ. (Yes, I am fairly new to Python.) Here are three tiny files: ==== mut.py ==== import system
3
1694
by: J. Cliff Dyer | last post by:
On Thu, 2008-05-08 at 12:00 -0700, Eric Hanchrow wrote: It's the same reason as this: 5 5 6 5 Python "variables" are just names that point at objects. When you
0
8823
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
8718
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
9343
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
9198
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
9104
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,...
1
6646
isladogs
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...
0
5967
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();...
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.