473,385 Members | 1,798 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.

"import wxPython"-error

YarrOfDoom
1,247 Expert 1GB
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 3590
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 Expert 1GB
Oops, stupid me. Should have been import wx instead of import wxPython, works all fine now.
Oct 30 '08 #3
tharden3
916 512MB
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
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\teste.pyw", line 1, in <module>
import wx
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.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
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...
2
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
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...
2
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...
9
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...
2
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
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
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
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...
3
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...

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.