PySimpleGUI / PySimpleGUI/PySimpleGUI

[Bug] psgupgrade command - problem with an interpreter specified in PySimpleGUI settings

Open
#5,079 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Port - TK
Dominant language
Python
Stars
13.8k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

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

Bug


Environment

Operating System

Windows version 10

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Python version (sg.sys.version)

3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]

PySimpleGUI Version (sg.__version__)

4.56.0.2

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

8.6.9


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

Noticed that upgrading PySimpleGUI to the github version had trouble when there is a Python interpreter specified in the PySimpleGUI settings. Removing the interpreter caused it towk function correctly.

Code was added a few releases back to handle this specific situation so something about that code isn't quite right.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the psgupgrade command and reproduce the upgrade with a Python interpreter configured in PySimpleGUI settings, comparing it with the case where that setting is removed. Trace the code added to support a configured interpreter and verify that upgrading to the GitHub version works in both cases on the reported Windows and Python versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.