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

[Question] v5.0.0 _tkinter.TclError #6675

Open
7 tasks
Teque5 opened this issue Feb 14, 2024 · 1 comment
Open
7 tasks

[Question] v5.0.0 _tkinter.TclError #6675

Teque5 opened this issue Feb 14, 2024 · 1 comment
Labels
Port - TK PySimpleGUI question Further information is requested

Comments

@Teque5
Copy link

Teque5 commented Feb 14, 2024

Type of Issue (Enhancement, Error, Bug, Question)

Question


Environment

Operating System

Linux

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Python version (sg.sys.version)

3.7.17 (3.7, 3.9, 3.12)

PySimpleGUI Version (sg.__version__)

V5.0.0

GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)

Unknown


Your Experience In Months or Years (optional)

Python programming experience
Programming experience overall
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
This project and the users!


Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • Searched main docs for your problem www.PySimpleGUI.org
  • Looked for Demo Programs that are similar to your goal Demos.PySimpleGUI.org
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.org
  • Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released

Detailed Description

One of my projects uses PySimpleGUI as a backend and during your recent release of v5.0.0 a few days ago our pipeline broke. Error looks inscrutable to me but we aren't using anything in a fancy way. Similar error on python 3.7, 3.9, and 3.12:

============================= test session starts ==============================
platform linux -- Python 3.7.17, pytest-7.4.4, pluggy-1.2.0
rootdir: /home/runner/work/sigmf-python/sigmf-python
configfile: pyproject.toml
plugins: hypothesis-6.79.4, cov-4.1.0
collected 41 items / 1 error

==================================== ERRORS ====================================
______________________ ERROR collecting sigmf/apps/gui.py ______________________
sigmf/apps/gui.py:11: in <module>
    from PySimpleGUI import *
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/__init__.py:1: in <module>
    from .PySimpleGUI import *
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:25954: in <module>

exec(exec(marshal.loads(base64.b64decode(...incredibly long bit omitted...)
obf_Cleaned_PySimpleGUI50_source.py:1423: in <module>
    ???
obf_Cleaned_PySimpleGUI50_source.py:1163: in __3I645HSK
    ???
obf_Cleaned_PySimpleGUI50_source.py:262: in __CUrwMBp
    ???
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:9903: in __init__
    self.Finalize()
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:10609: in finalize
    self.Read(timeout=1)
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:10374: in read
    results = self._read(timeout=timeout, timeout_key=timeout_key)
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:10452: in _read
    self._Show()
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:10185: in _Show
    StartupTK(self)
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:17394: in StartupTK
    _get_hidden_master_root()
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/PySimpleGUI/PySimpleGUI.py:17334: in _get_hidden_master_root
    Window.hidden_master_root = tk.Tk()
/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/tkinter/__init__.py:2023: in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
E   _tkinter.TclError: no display name and no $DISPLAY environment variable
-- generated xml file: /home/runner/work/sigmf-python/sigmf-python/pytest.xml --
=========================== short test summary info ============================
ERROR sigmf/apps/gui.py - _tkinter.TclError: no display name and no $DISPLAY environment variable
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 3.55s ===============================

Feel free to close if this is unhelpful; I did search for similar errors but didn't find anything. For now I'm pinning to <5.0.0.

Code To Duplicate

None

Screenshot, Sketch, or Drawing


@pysimpleissue pysimpleissue bot closed this as completed Feb 14, 2024
@jason990420 jason990420 changed the title v5.0.0 _tkinter.TclError (bug?) [Question] v5.0.0 _tkinter.TclError Feb 14, 2024
@pysimpleissue pysimpleissue bot removed Fill issue form or you will be REJECTED You MUST use the supplied template to submit a request. PySimpleGUI Issues Bot Has Detected an Error labels Feb 14, 2024
@pysimpleissue pysimpleissue bot reopened this Feb 14, 2024
Repository owner deleted a comment from pysimpleissue bot Feb 14, 2024
Repository owner deleted a comment from pysimpleissue bot Feb 14, 2024
Repository owner deleted a comment from pysimpleissue bot Feb 14, 2024
@jason990420
Copy link
Collaborator

Maybe you can refer issue #4703

@jason990420 jason990420 added question Further information is requested Port - TK PySimpleGUI labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Port - TK PySimpleGUI question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants