[issue19582] Tkinter is not working with Py_SetPath

2021-08-07 Thread Irit Katriel


Irit Katriel  added the comment:

This is an old issue and I don't know if it's still relevant. The main problem 
with this issue is that there isn't enough information to understand what 
happened.

What did you set the path to with Py_SetPath?

The error message says it could not find in "C:/Python33/lib/tcl8.5  and so 
on"

and then you say it works when you set the path in the env to something else:

"set TCL_LIBRARY=C:\Python33\tcl\tcl8.5\"


If you are still having problems with this in a current python version (>= 
3.9), please create a new issue with full information on what you did in the 
program that didn't work.

--
nosy: +iritkatriel
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19582] Tkinter is not working with Py_SetPath

2013-11-17 Thread Debarshi Goswami

Debarshi Goswami added the comment:

Anyone tried this issue?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19582
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami

New submission from Debarshi Goswami:

Tkinter is not working when I set PYTHONPATH using Py_SetPath before 
Initialization in an application embedding Python interpreter.

Any call to Py_SetPath is screwing up Tkinter with an error traceback -
-
'Line 1789: Traceback (most recent call last):
  File TestTK.py, line 33, in module
  File C:\Python33\Lib\tkinter\__init__.py, line 1789, 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: 
C:/Python33/lib/tcl8.5  and so on

This probably means that Tcl wasn't installed properly. 
-
But if set the 2 environment variable it works fine
set TCL_LIBRARY=C:\Python33\tcl\tcl8.5\
set TK_LIBRARY=C:\tcl\tk8.5\

If Py_SetPath is not called tkinter works well and tkwindow can be launched.

I am using Windows7 64 and Python 3.3.2

--
components: Tkinter
messages: 202825
nosy: Debarshi.Goswami
priority: normal
severity: normal
status: open
title: Tkinter is not working with Py_SetPath
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19582
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami

Changes by Debarshi Goswami debarshi.gosw...@gmail.com:


--
components: +Interpreter Core
type:  - compile error

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19582
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami

Debarshi Goswami added the comment:

Is there any way to run Tkinter adding some changes from interpreter?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19582
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com