954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to uninstall wxpython 2.8 from Mac OSX 10.6

Some details of my machine and installed packages before proceeding further:

Mac OSX version: 10.6.6
Python version: Activestate Python 2.7.1
wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only)

I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the Carbon API and hence is limited to 32-bit mode only. I have to write my applications using "arch -i386" in order to import wx, and due to this limitation I am unable to import certain other packages likes "MySQLdb" which are not available in 32-bit mode. So, my best option is to uninstall wxpython 2.8 and install wxpython 2.9 because version 2.9 uses Cocoa API which has both 32-bit and 64-bit support.

I don't know how to uninstall wxpython2.8 on my Mac OSX. Can anyone please help me?

imperialguy
Newbie Poster
12 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

I don't use Mac OSX, nor Activestate python but, you should be able to see where is your wx package by running

>>> import wx
>>> wx.__file__
'/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py'

This should give you the path to the 'site-packages' directory (for me in linux, it is /usr/lib64/python2.6/site-packages). Now, if you list the files and directories which start with 'wx' in this directory and remove some of them, or all of them, it should uninstall your wxpython.

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

Thank you for the reply. I found out how to uninstall it. There is an uninstall script in the dmg installer that I mounted. I ran that script and it uninstalled the package. It is very unfortunate and annoying that Macs don't ship with uninstallers by default. Also, while the uninstall script was running I saw that wxpython was actually installed in /usr/local/lib/wxPython-unicode-2.8.12.0.

imperialguy
Newbie Poster
12 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: