Skip to content

ensure tkinter works in virtualenv #425

@yogeshc

Description

@yogeshc

On a virtualenv I get the following:

DataVizProj)$ python
Python 2.7.3 |CUSTOM| (default, Apr 11 2012, 18:02:54) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
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 "/opt/epd/epd-7.3-2-rh5-x86/lib/python2.7/lib-tk/Tkinter.py", line 1685, 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: 
    /home/builder/work/core/lib/tcl8.5 /opt/Envs/DataVizProj/lib/tcl8.5 /opt/Envs/lib/tcl8.5 /opt/Envs/DataVizProj/library /opt/Envs/library /opt/Envs/tcl8.5.9/library /opt/tcl8.5.9/library


This probably means that Tcl wasn't installed properly.


>>> quit()
(DataVizProj)$ deactivate 

But it works outside fine once I deactivate it:

$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)

Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 11 2012, 18:02:54) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "credits", "demo" or "enthought" for more information.
>>> import Tkinter
>>> Tkinter.Tk()
<Tkinter.Tk instance at 0xb73f7fcc>

I guess this is similar to Issue #56 But this is on Ubuntu based distro

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions