Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'importerror:': 0.07; 'puts': 0.07; 'things,': 0.09; 'subject:Help': 0.11; 'python': 0.11; 'exception:': 0.16; 'folks,': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'pygtk,': 0.16; 'subject:pyGTK': 0.16; 'wrote:': 0.18; 'library': 0.18; 'obviously': 0.18; 'module': 0.19; 'trying': 0.19; "skip:' 30": 0.19; 'import': 0.22; 'header:User- Agent:1': 0.23; 'please?': 0.24; 'subject:Needed': 0.24; 'header :In-Reply-To:1': 0.27; 'installed': 0.27; 'point': 0.28; "i'm": 0.30; '"",': 0.31; "skip:' 40": 0.31; 'anyone': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'running': 0.33; '(most': 0.33; 'mac': 0.33; "can't": 0.35; 'but': 0.35; 'version': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'recent': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'first': 0.61; 'email addr:gmail.com': 0.63; 'skip:n 10': 0.64; 'here': 0.66; 'believe': 0.68; 'presumably': 0.84; "skip:' 80": 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Fri, 20 Sep 2013 21:35:16 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: pyGTK Help Needed Please References: <0951a583-c9d6-490f-806f-f8f07e805797@googlegroups.com> In-Reply-To: <0951a583-c9d6-490f-806f-f8f07e805797@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379734528 news.xs4all.nl 15914 [2001:888:2000:d::a6]:58283 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54530 On 09/20/2013 12:30 PM, bingefeller@gmail.com wrote: > Hi folks, > > I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here - http://pastebin.com/nwmrpp2Y ) > > When I try to run Nicotine+ I get this message: > > '/Users/******/Downloads/nicotine+-1.2.16', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages'] > Exception: No module named pygtk > > > If I run Python and type import pygtk I get this message: > > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named pygtk > > > can anyone help me please? You probably need to run the program using the version of Python that's installed in MacPorts. Your system python does not know anything about MacPorts, so it obviously can't find pyGTK, since it's not in the system library location. I can't remember where MacPorts puts things, but presumably you'd have to do edit the nicotine+-1.2.16 file and change the first line to point to the MacPorts version of python.