473,387 Members | 1,423 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,387 software developers and data experts.

problem about wxPython error

Hi!
I install wxPython under WinXP
when I want to use some simple sample, there is an error message:

File "C:\Python22\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py" ,line 301, in RunScript
exec codeObject in __main__.__dict__
File "C:\Documents and Settings\Tinmean\temp_desktop\python_0921\wx1.py", line 3, in ?
from frame import Frame
ImportError: No module named frame

From wiki's FAQ, I add new paths in PYTHONPATH for wxPython and wx, but it is no use.
any one could help me?

thanks!

--Tinmean Liu in Taiwan
Jul 18 '05 #1
1 1659
The wxPython imports are in the subdirectory wx in
its installation. So all wxPython programs (that I know)
begin with the following statement.

from wxPython.wx import *

Maybe there is a frame.py somewhere which you have
to locate. Even then I think you need to place the
above import statement before your wx code.

-Anand

"Tinmean K.H.Liu" <kh***@ev078.ev.nctu.edu.tw> wrote in message news:<ma**********************************@python. org>...
Hi!
I install wxPython under WinXP
when I want to use some simple sample, there is an error message:

File
"C:\Python22\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py" ,
line 301, in RunScript
exec codeObject in main . dict
File "C:\Documents and
Settings\Tinmean\temp desktop\python 0921\wx1.py", line 3, in ?
from frame import Frame
ImportError: No module named frame

From wiki's FAQ, I add new paths in PYTHONPATH for wxPython and wx, but
it is no use.
any one could help me?

thanks!

--Tinmean Liu in Taiwan
--

Jul 18 '05 #2

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
1
by: John Kinson | last post by:
Hi, I'm trying to get the wxPython demo to run on a Debian sarge testing installation, but encounter the following error when I run the demo script: # ./demo.py Traceback (most recent call...
1
by: Tim Rice | last post by:
I have a need to write data to the Windows clipboard from a Python script. I found a nice, simple solution @ http://wiki.wxpython.org/index.cgi/ClipBoard. The problem is, I can only get it to...
13
by: Peter Maas | last post by:
Recently I replaced Win2k with Linux on my desktop computer. Using mostly multi-platform software I thought this would be easy. It was not as easy as expected getting wxPython to work. There seemed...
1
by: MakaMaka | last post by:
Hi All, I'm having a problem with Stani's Python Editor (SPE) that I'm hoping somebody has run into before. If I create a simple hello world program: print "hello" and try and run it in...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
3
by: gatoruss | last post by:
Newbie here with a (hopefully not) dumb question....tried searching around on the 'Net without success, so here goes.... I have been playing around with python. I wrote a script that sends an smtp...
0
by: Stef Mientki | last post by:
Peter Anderson wrote: In PyScripter, you should run wxPython in the plain remote machine (not the wxPython remote), and you should set "reset before run flag" or reset the remote machine each...
3
by: Netwatcher | last post by:
im try to activate the tutorial code for wxPython, it is working properly when i tell it to import * from wxPython.wx but with an error about the package, i've done as i was told to change the...
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: 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
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...
0
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,...
0
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...
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.