Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'source,': 0.04; 'configure': 0.05; '(using': 0.07; 'modify': 0.07; 'puts': 0.07; 'subject:bug': 0.07; 'tkinter': 0.07; '__init__': 0.09; 'newly': 0.09; 'properly.': 0.09; 'tcl/tk': 0.09; 'python': 0.11; 'bug': 0.12; 'fails.': 0.16; 'hmm.': 0.16; 'interactive,': 0.16; 'tcl': 0.16; 'usable': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'version.': 0.19; '>>>': 0.22; 'import': 0.22; 'creating': 0.23; 'header:User- Agent:1': 0.23; 'directory.': 0.24; 'fixed.': 0.24; 'looks': 0.24; 'source': 0.25; 'second': 0.26; 'skip:_ 20': 0.27; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'that.': 0.31; '"",': 0.31; 'directly,': 0.31; 'george': 0.31; 'libraries': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'another': 0.32; 'linux': 0.33; 'running': 0.33; '(most': 0.33; 'skip:_ 10': 0.34; "can't": 0.35; 'received:209.85': 0.35; 'created': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'skip:" 50': 0.36; 'skip:~ 10': 0.36; 'subject:?': 0.36; 'similar': 0.36; 'virtual': 0.37; 'skip:- 20': 0.37; 'received:209': 0.37; 'hat': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'recent': 0.39; 'received:74.125': 0.39; 'does': 0.39; 'environment.': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'manually': 0.60; 'new': 0.61; 'first': 0.61; 'here:': 0.62; 'more': 0.64; 'different': 0.65; 'mar': 0.68; 'url:a': 0.72; '2014,': 0.84; 'continuum': 0.84; 'directories:': 0.84; 'monte': 0.84; 'skip:/ 30': 0.84; 'you...': 0.96 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=EJdkJ1xXuQP4WBa2fhGi/yb6K5tQwaSj1of5s5ZHOW8=; b=T0YlTOtY5jBGt5eEpxnC0EkaqIIPU/EU/dOhxiPU8CHUYt8jjG9t6c1KY7nrV3Myon oRwtF/rHQQc1N5VdtK0U8UlArD8wVZxTPXeWapbbePAOUVaVLG6Ny4hof6uCt+usFrBA LJ8Z28XudBQ5Ipv6rizQMm5LMlIFqH8m1LedaOC0tx84CnvvOOCTF8PCUX9sNzqbhOWZ T8FIXjbUXVG9Z2MqhJpWdfgfuCXWwUAn2a5wELB9hdpeQgw6KzFZTKHoL+2kCvzo34tX 8T8eg7YyLjlHjd/wTYzMtinZWjkZS14lZGXz0EO+7+Nm5wLGZ0gf+pEbtRC11coFDS31 Dlpw== X-Gm-Message-State: ALoCoQn/RpPIt73poP/DcX1goNC6kiqQ+3th9RR4SNxb5gVYcjadRqC6AuL5rdkKufQgCsEub71lix3qfhamyTyx8e1/XpGyHw73XpAyN/PyXeUHKTbxforEn75/fOGlfGXjX7l1iSGOZRdCvXgqcocXfD2YOKr7pjaopQ2tJRZU6OCBY04bKWT7aKGrhuOGVZ7HmsDse+OSub7QKxvc2FN66fY8+LaNaw== X-Received: by 10.70.48.37 with SMTP id i5mr45768065pdn.111.1426611065465; Tue, 17 Mar 2015 09:51:05 -0700 (PDT) X-Received: by 10.70.48.37 with SMTP id i5mr45768028pdn.111.1426611065239; Tue, 17 Mar 2015 09:51:05 -0700 (PDT) Date: Tue, 17 Mar 2015 16:51:03 +0000 From: George Trojan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Re: anaconda bug? References: <550763E4.5000700@noaa.gov> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 76 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426611074 news.xs4all.nl 2890 [2001:888:2000:d::a6]:59651 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87642 On 03/16/2015 11:47 PM, memilanuk wrote: > Might be just you... > > monte@machin-shin:~$ python > Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:03:53) > [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import tkinter > >>> tkinter.Tk() > > >>> > > > Just for the heck of it I created a new venv (using conda create -n > test) and tried it again. Same thing. > > How are you creating your venv? > > Monte > > Hmm. I tried on the different system (Fedora 20), with Python 3.4.2. Same results: dilbert@gtrojan> python Python 3.4.2 |Continuum Analytics, Inc.| (default, Oct 21 2014, 17:16:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter >>> tkinter.Tk() >>> dilbert@gtrojan> which pyvenv /usr/local/miniconda3/bin/pyvenv dilbert@gtrojan> pyvenv --system-site-packages ~/test dilbert@gtrojan> source ~/test/bin/activate (test) dilbert@gtrojan> python Python 3.4.2 |Continuum Analytics, Inc.| (default, Oct 21 2014, 17:16:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter >>> tkinter.Tk() Traceback (most recent call last): File "", line 1, in File "/usr/local/miniconda3/lib/python3.4/tkinter/__init__.py", line 1851, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: Can't find a usable init.tcl in the following directories: /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 /home/gtrojan/test/lib/tcl8.5 /home/gtrojan/lib/tcl8.5 /home/gtrojan/test/library /home/gtrojan/library /home/gtrojan/tcl8.5.15/library /home/tcl8.5.15/library This probably means that Tcl wasn't installed properly. >>> I suspect faulty logic: pyvenv does not copy/links the tcl/tk libraries to the newly created directory. When I run python directly, the second directory to search is /usr/local/miniconda3/lib/tcl8.5, where conda puts its tcl version. In virtual environment, the path is replaced and tkinter fails. So the other fix would be to manually create symlinks after running pyvenv, or modify Continuum Analytics pyvenv to do that. There is no issue with pyvenv when Python is built from the source, the first directory in the path is where tcl is found by configure and that does not change in virtual environment. I found another similar bug report here: https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Q9xvJT8khTs Looks this has not been fixed. George