Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87644

Re: anaconda bug?

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'guys.': 0.09; 'newly': 0.09; 'properly.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tcl/tk': 0.09; 'python': 0.11; 'bug': 0.12; '(at)': 0.16; 'fails.': 0.16; 'hmm.': 0.16; 'interactive,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'tcl': 0.16; 'usable': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'version.': 0.19; 'work,': 0.20; '>>>': 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:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'am,': 0.29; '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; 'received:66': 0.35; "can't": 0.35; 'created': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'skip:" 50': 0.36; 'skip:~ 10': 0.36; 'useful': 0.36; 'subject:?': 0.36; 'similar': 0.36; 'should': 0.36; 'virtual': 0.37; 'skip:- 20': 0.37; 'gmail': 0.38; 'hat': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'recent': 0.39; 'does': 0.39; 'bad': 0.39; 'environment.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'manually': 0.60; 'tell': 0.60; 'new': 0.61; "you're": 0.61; 'further': 0.61; 'first': 0.61; 'here:': 0.62; 'reach': 0.63; 'more': 0.64; 'different': 0.65; 'charset:windows-1252': 0.65; 'worth': 0.66; 'managing': 0.66; 'mar': 0.68; 'response.': 0.68; 'url:a': 0.72; '2014,': 0.84; 'continuum': 0.84; 'directories:': 0.84; 'isolate': 0.84; 'monte': 0.84; 'skip:/ 30': 0.84; 'sorry.': 0.91; 'trojan': 0.91; 'you...': 0.96
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From memilanuk <memilanuk@gmail.com>
Subject Re: anaconda bug?
Date Tue, 17 Mar 2015 10:25:11 -0700
References <550763E4.5000700@noaa.gov> <me7q2b$lv5$1@ger.gmane.org> <55085B77.5030504@noaa.gov>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 66.172.107.27
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To <55085B77.5030504@noaa.gov>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.19
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.499.1426613125.21433.python-list@python.org> (permalink)
Lines 92
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426613125 news.xs4all.nl 2837 [2001:888:2000:d::a6]:41938
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87644

Show key headers only | View raw


On 03/17/2015 09:51 AM, George Trojan wrote:
> 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()
>> <tkinter.Tk object at 0x7ff4c6fc8160>
>> >>>
>>
>>
>> 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()
> <tkinter.Tk object at 0x7f5713951630>
>  >>>
> 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 "<stdin>", line 1, in <module>
>    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.

Well, it might be worth poking them and seeing if you get any response.

What happens if you create a venv using conda?  Is there some particular 
reason you're using Anaconda but not using its tools for managing 
virtualenvs?  I get it that pyenv should work, but it might be useful to 
isolate it further to tell if its just pyenv, or something else.  I 
don't have any experience with pyenv myself, sorry.

HTH,

Monte


-- 
Shiny!  Let's be bad guys.

Reach me @ memilanuk (at) gmail dot com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: anaconda bug? memilanuk <memilanuk@gmail.com> - 2015-03-17 10:25 -0700

csiph-web