Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87587
| 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 | <george.trojan@noaa.gov> |
| 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; 'root': 0.05; 'skip:" 60': 0.07; 'subject:bug': 0.07; 'tkinter': 0.07; '__init__': 0.09; 'exit': 0.09; 'tcl/tk': 0.09; 'url:github': 0.09; 'window.': 0.09; 'python': 0.11; 'bug': 0.12; 'interactive,': 0.16; 'report:': 0.16; 'url:348': 0.16; 'url:issues': 0.16; 'usable': 0.16; 'packages.': 0.19; 'command': 0.22; '>>>': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'fine': 0.24; 'looks': 0.24; 'environment': 0.24; 'source': 0.25; 'switch': 0.26; 'skip:_ 20': 0.27; 'installed': 0.27; '"",': 0.31; 'george': 0.31; 'libraries': 0.31; 'though.': 0.31; 'file': 0.32; 'linux': 0.33; 'up.': 0.33; '(most': 0.33; 'skip:t 40': 0.33; 'skip:_ 10': 0.34; 'problem': 0.35; "can't": 0.35; 'received:209.85': 0.35; 'created': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'similar': 0.36; 'url:org': 0.36; 'virtual': 0.37; 'received:209': 0.37; 'hat': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'skip:_ 30': 0.39; 'received:74.125': 0.39; 'environment.': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'more': 0.64; 'here': 0.66; 'mar': 0.68; 'export': 0.74; 'directories:': 0.84; 'messed': 0.84; 'skip:/ 30': 0.84 |
| 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:content-type:content-transfer-encoding; bh=+I9w6GuCFFdLL0iv7cDxkRd0/Qp1hFeeBrxNIfBWtXk=; b=SNSwsfBfkXGJoIU2ZoXxasIMe3dCQFGQDm88TLZunmd1QWMbV3p1iE3yuEOmjTOhKp afA48+Q9gvwEAmxrQp3nw17ECfMCIhhV9BSUlEI5qlsy8VP+fKYzS6NQd7kEBwffM9kR 9/Z6KeQL/H6uIlHTzSvoEbNs3MYRwOOz3DTLqMJszyYf+Tey1U15vTP1hhQYkDxnggco 5yF4AaXiFcEX+QFMWaK/kKcT0BCSg7CzW7rW7cRNxWsR5mdQHp3acxlJYHN2T8l+d2E0 4QmyxoaxxuhSAltxeyNa352FFD0aadoDxbMtv8Kzhqqk/r6JMeczYpskwwAlZov6oYLb f+iQ== |
| X-Received | by 10.70.102.236 with SMTP id fr12mr71233045pdb.79.1426547686136; Mon, 16 Mar 2015 16:14:46 -0700 (PDT) |
| X-Gm-Message-State | ALoCoQlMqZy/kOXffmnpePZqIlkPT/uEw3oCMHkGb+1574ARoZw0LDIeL5v4UHHNwi0ZSkiR76LoW7Z23Wkx26k1G/lwPUdNJKrKzwML9fNWoXCCAg2Z2Pd2yz1dB1HkmUGsyhsWVmclp1z1sN+X/2jobqXuJeCDlMiOm4Srn5tHTmFz/Hv99IpfaXOCTskXy5J9TTXGaUDoXPr1GUUunuugPNSx6rEsIQ== |
| X-Received | by 10.70.102.236 with SMTP id fr12mr71233022pdb.79.1426547685978; Mon, 16 Mar 2015 16:14:45 -0700 (PDT) |
| Date | Mon, 16 Mar 2015 23:14:44 +0000 |
| From | George Trojan <george.trojan@noaa.gov> |
| 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 | anaconda bug? |
| 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 <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.464.1426548127.21433.python-list@python.org> (permalink) |
| Lines | 45 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1426548127 news.xs4all.nl 2878 [2001:888:2000:d::a6]:45617 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:87587 |
Show key headers only | View raw
I am not sure it is just me or there is a bug in anaconda. I installed
miniconda from http://conda.pydata.org/miniconda.html, then several
python3.4.3 packages. Then created virtual environment. When I switch to
that environment I can not create tk root window. Here is the traceback:
(venv-3.4.3) $ 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()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gtrojan/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/venv-3.4.3/lib/tcl8.5 /home/gtrojan/lib/tcl8.5
/home/gtrojan/venv-3.4.3/library /home/gtrojan/library
/home/gtrojan/tcl8.5.18/library /home/tcl8.5.18/library
It looks like the search path for tcl/tk libraries is messed up. The
same command works fine when I exit virtual environment though. I do not
have a problem with python 3.4.2 built from source on the same system.
For a workaround, I set TCL_LIBRARY and TK_LIBRARY in activate:
# bug in anaconda?
_OLD_TCL_LIBRARY="$TCL_LIBRARY"
TCL_LIBRARY="/home/gtrojan/miniconda3/lib/tcl8.5"
export TCL_LIBRARY
_OLD_TK_LIBRARY="$TK_LIBRARY"
TK_LIBRARY="/home/gtrojan/miniconda3/lib/tk8.5"
export TK_LIBRARY
I have found somewhat similar bug report:
https://github.com/conda/conda/issues/348.
George
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
anaconda bug? George Trojan <george.trojan@noaa.gov> - 2015-03-16 23:14 +0000
csiph-web