Python Error No Module Named Wx
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers no module named wx mac or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Pip Install Wx
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it
Importerror: No Module Named Wx Ubuntu
only takes a minute: Sign up I got this error while using wxPython on windows “ import wx import error no module named wx ” up vote 0 down vote favorite 1 I'm new to wxPython. I just installed Python
Import Wx In Python
2.7.9 and wxPython for 2.7 on my Windows 7. When I try to run the "helloworld" file #!/usr/bin/env python import wx app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window. frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window. frame.Show(True) # Show the frame. app.MainLoop() from the official website.I got this error c:\Workspace>python hellowword.py Traceback (most recent call last): File "hellowword.py", line 2, in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring import wx error windows developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask importerror no module named wx linux Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join python-wxtools mac them; it only takes a minute: Sign up Can't load packages due to 'No module named wx' error up vote 1 down vote favorite I have seen this answered but can't find it now. I have tried loading wxglade, http://stackoverflow.com/questions/28309247/i-got-this-error-while-using-wxpython-on-windows-import-wx-import-error-no-mod PythonToolkit-14.04.04, and another package but I keep getting the message: ImportError: No module named wx I loaded wxPython using the latest installer. I tried Homebrew and got the message wxPython_v.3.0.0 already loaded. I fixed this a month or so ago by setting the PYTHONPATH but due to a crash I lost the info and now I can't seem to locate the web page that contained the instructions. I have tried python 2.7 and 3.2 but same error. I'm using http://stackoverflow.com/questions/25100007/cant-load-packages-due-to-no-module-named-wx-error a Mac. Can someone please help me. Thanks python share|improve this question edited Aug 2 '14 at 22:51 Aleksander Lidtke 1,42621024 asked Aug 2 '14 at 22:33 john 612 1 Do you have wx installed still? If so just edit the PYTHONPATH to point to them: stackoverflow.com/questions/15742779/… –Aleksander Lidtke Aug 2 '14 at 22:42 Yes I do. When I run 'locate wxpython' i get many lines, one of which is: /usr/local/opt/wxpython How do I set my path to point there? –john Aug 2 '14 at 23:08 I assume wx and wxpython refer to the same thing. I set my PYTHONPATH and my PATH to that /usr/local/opt/wxpython directory but I still get same error... –john Aug 2 '14 at 23:18 when I type: export PYTHONPATH=$PYTHONPATH:/usr/local/Cellar/wxpython/3.0.0.0/lib/python2.7/site-packages/wx-3.0-osx_cocoa that seems to work. Does this make sense? thanks. –john Aug 2 '14 at 23:33 1 I never used Python on OSX (I'm a Linux person) but that seems about right. Hey, if it works it works ;) You want to to point to the directory with the __init__ file for wx (and yes, wx is just the name of the module). On my windows machine this is C:\Python27\Lib\site-packages\wx-2.9.4-msw\wx –Aleksander Lidtke Aug 3 '14 at 7:44 | show 1 more comment active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Y
Search Username Password Remember Me? Register Lost Password? facebook google twitter rss Free Web Developer Tools Advanced Search Forum Programming Languages Python Programming ImportError: No module named wx http://forums.devshed.com/python-programming-11/importerror-module-named-wx-290928.html Thread: ImportError: No module named wx Share This Thread Tweet This + http://ask.xmodulo.com/importerror-no-module-named-wxversion.html 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread September 21st, 2005,11:14 AM #1 xlordt View Profile View Forum Posts Only the strong survives!!. Devshed God 1st Plane (5500 - 5999 posts) Join Date no module Feb 2003 Location A World of wonders. Posts 5,566 Rep Power 409 ImportError: No module named wx I decided to upgrade slackware 10.0 to slackware 10.2, installed wxpython.. ( source, and rpm ) but for some reason i keep getting this error.. its wierd.. because i have installed it but... it cant find the module, has this happend to anyone else running no module named linux? Code: bash-3.00$ python wx.py Traceback (most recent call last): File "wx.py", line 3, in ? from wxPython.wx import * File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wxPython/__init__.py", line 10, in ? import _wx File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wxPython/_wx.py", line 3, in ? from _core import * File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wxPython/_core.py", line 15, in ? import wx._core File "/home/xlordt/programming/python/wx.py", line 3, in ? from wxPython.wx import * ImportError: No module named wx Faq Reply With Quote September 21st, 2005,11:32 AM #2 No Profile Picture dannyp View Profile View Forum Posts Contributing User Devshed Newbie (0 - 499 posts) Join Date Jun 2005 Posts 33 Rep Power 12 Go to a python shell and do this, to make sure it is in your path. PHP Code: importsys
Faq Reply With Quote September 21st, 2005,11:59 AM #3 xlordt View Profile View Forum Posts Only the strong survives!!. Devshed God 1st Plane (5500 - 5999 posts) Join Date Feb 2003 Location A World of wonders. Posts 5,5
printsys.path
by Dan Nanni Leave a comment Question: I was trying to run a Python application on [insert your Linux distro], but I got an error "ImportError: No module named wxversion." How can I solve this error in the Python program? Looking for python... 2.7.9 - Traceback (most recent call last): File "/home/dev/playonlinux/python/check_python.py", line 1, in import os, wxversion ImportError: No module named wxversion failed tests This error indicates that your Python application is GUI-based, relying on a missing Python module called wxPython. wxPython is a Python extension module for the wxWidgets GUI library, popularly used by C++ programmers to design GUI applications. The wxPython extension allows Python developers to easily design and integrate GUI within any Python application. To solve this import error, you need to install wxPython on your Linux, as described below. Install wxPython on Debian, Ubuntu or Linux Mint $ sudo apt-get install python-wxgtk2.8 Install wxPython on Fedora $ sudo yum install wxPython Install wxPython on CentOS/RHEL wxPython is available on the EPEL repository of CentOS/RHEL, not on base repositories. Thus, first enable EPEL repository on your system, and then use yum command. $ sudo yum install wxPython Install wxPython on Arch Linux $ sudo pacman -S wxpython Install wxPython on Gentoo $ emerge wxPython Download this article as ad-free PDF (made possible by your kind donation): Subscribe to Ask Xmodulo Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner. Support Xmodulo Did you find this tutorial helpful? Then please be generous and support Xmodulo! Share this FAQ:Tweet Categories: Python Tags: wxpython, wxwidgets Leave a