Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure tkinter works in virtualenv #425

Open
yogeshc opened this issue May 2, 2013 · 9 comments
Open

ensure tkinter works in virtualenv #425

yogeshc opened this issue May 2, 2013 · 9 comments

Comments

@yogeshc
Copy link

yogeshc commented May 2, 2013

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

@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 15, 2019
@stale stale bot closed this as completed Jan 22, 2019
@c0d3h4x0r
Copy link

This is still an issue on Mac. Someone need to reactivate this issue. Just because it has sat around without getting any traction, that doesn't mean it's no longer an issue. It just means the project maintainers have not prioritized it like they should.

@gaborbernat gaborbernat reopened this Jan 31, 2020
@gaborbernat
Copy link
Contributor

Hello, just to clear up things here. Project maintainers "should" do something is a very bad way to look at this. This is an open source project, project maintainers maintain the package, which means they ensure that patches applied don't break the world, as much as possible. If there's issue please look it in the spirit of open source and post a solution pull request, rather then telling them off for not solving it for you.

@gaborbernat gaborbernat changed the title Tkinter fails in virtualenv ensure tkinter works in virtualenv Feb 6, 2020
@gaborbernat gaborbernat added this to the 20.1.0 milestone Feb 6, 2020
@gaborbernat
Copy link
Contributor

Seems no longer an issue as no one reported it in 3 years.

@LexiconCode
Copy link

LexiconCode commented Apr 3, 2024

-removed-

@c0d3h4x0r
Copy link

It's still an issue. We just worked around it in our own systems by copying the right files into the right places ourselves.

@c0d3h4x0r
Copy link

This issue needs to be reopened. It shouldn't have been closed in the first place.

@gaborbernat gaborbernat reopened this Apr 3, 2024
@gaborbernat
Copy link
Contributor

PR welcome.

@LexiconCode
Copy link

PR welcome.

I apologize my issue ended up being related to the standalone python build not the virtual environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants