Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed6.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'failing': 0.05; 'tkinter': 0.07; 'scripts': 0.09; 'python': 0.09; 'subject:script': 0.09; 'do,': 0.15; '9.0': 0.16; 'adam': 0.16; 'eclipse': 0.16; 'oct': 0.16; 'scripts.': 0.16; 'somehow,': 0.16; 'subject: \n ': 0.16; 'subject:run': 0.16; 'tk.': 0.16; 'tkinter.': 0.16; 'uninstalling': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'thanks,': 0.18; 'all,': 0.21; 'import': 0.21; '3.2': 0.22; "haven't": 0.23; "i've": 0.23; 'command': 0.24; 'script': 0.24; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'module.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'run': 0.28; 'environment': 0.29; 'installed,': 0.29; "i'm": 0.29; 'received:209.85.215.46': 0.30; 'running': 0.32; 'environment,': 0.33; 'idle': 0.33; 'to:addr :python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'problem,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'uses': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'your': 0.60; 'different': 0.63; 'fat': 0.84; 'subject:any': 0.84; 'scraping': 0.91 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding:x-gm-message-state; bh=oYr5aXdeY9gk2iNbg74kgPQ/aFjUZdbAd5sfis/g1V4=; b=aGW/3Fj3jU2Ve8FrNQSaZ4CruWysj7phN6GvajHzWBU4EF5i4MoLqpQoOHA8ZWWpsX lCZZpaN6ch4VCXWYOq7lXhkIS8iR41M3XlEc3jh/MPx0dErkFkvHcMc3g3VzFuVQPJ9e uUYXzkEgm7ebKEupjTJBhF+p4Ri3eRxuSkJL+87Rl3xA7fkTk0U86Dw93z8y1k/QPvSI ITc41PJpiV2854K3uVMoGICdSnYPRYojb5BWXFSefQlneYcsdoEJz+9se38PVn9A3Guj Vg20Fi37OJBMMWOV3CKbj2pZCz5u8PvvCey1p7VQ5ZnTe7efX521MMtky3M7JDgKqmwd DHIw== MIME-Version: 1.0 In-Reply-To: <2bc334bc-6b2c-45f2-94ed-5933c196f47a@googlegroups.com> References: <2bc334bc-6b2c-45f2-94ed-5933c196f47a@googlegroups.com> Date: Sun, 14 Oct 2012 19:18:12 -0700 Subject: Re: Can't run any script without it failing due to calling tkinter for no reason From: Benjamin Kaplan To: python-list@python.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQknoSIXmdMfCrlOPRHDr46iiL1WVlUiOXGtr6C8eual5PEeT0IqDqqSSslGZYCHFnSGyX2d X-Junkmail-Whitelist: YES (by domain whitelist at mpv2.tis.cwru.edu) 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350267563 news.xs4all.nl 6851 [2001:888:2000:d::a6]:33008 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31277 On Sun, Oct 14, 2012 at 6:47 PM, wrote: > Hello All, > > > I'm running python 3.2 on Freebsd 9.0 Release and I must've screwed up my= environment somehow, because now I can't run any script without it failing= and throwing: > ** IDLE can't import Tkinter. Your Python may not be configured for Tk. = ** > > Yet none of my scripts use tkinter nor call that module. They're simple n= etwork scraping scripts. I use pydev and eclipse and must've fat fingered s= omething that screwed up my python environment, but I haven't the slightest= clue on how to fix it. I can run my scripts in idle no problem, but I've b= uilt them as command line apps. I've tried uninstalling python 3 and reinst= alling it to no avail. What did I do, and how can I fix it? > > Thanks, > Adam > -- IDLE uses Tkinter. If you don't have Tk installed, just run the scripts from the terminal or pick a different IDE.