Skip to content

[Bug] Tree object has no attribute BType #6896

Description

@jason990420

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

Bug


Operating System

Win11

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Python version (sg.sys.version)

3.13.2

PySimpleGUI Version (sg.__version__)

6.2

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

8.6.15


Your Experience In Months or Years (optional)

Years Python programming experience
10+
Years Programming experience overall
10+
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
tkinter
Anything else you think would be helpful?


Troubleshooting

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

  • Searched main docs for your problem PySimpleGUI Documenation
  • Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
  • None of your GUI code was generated by an AI algorithm like GPT
  • 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.com
  • Upgraded to the latest release of PySimpleGUI on PyPI (Version 6)

Detailed Description

Old good Python script run failed with following message after I upgraded from PySimpleGUI 5 to PySimpleGUI 6, and I have no idea what and why this happened ? It happeded when I click on a Tree element.

I tried upgrade it to Maint Release, then got another issue

Installing https://github.com/PySimpleGUI/PySimpleGUI/zipball/master with the Python interpreter = C:\Software\python\python.exe
Install thread started
Collecting https://github.com/PySimpleGUI/PySimpleGUI/zipball/master
  Downloading master
     \ 40.3 MB 2.9 MB/s 0:00:14
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error

  Getting requirements to build wheel did not run successfully.
  exit code: 1

  [24 lines of output]
  Traceback (most recent call last):
    File "C:\Software\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
      main()
      ~~~~^^
    File "C:\Software\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Software\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\user\AppData\Local\Temp\pip-build-env-ogjop1d2\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\user\AppData\Local\Temp\pip-build-env-ogjop1d2\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "C:\Users\user\AppData\Local\Temp\pip-build-env-ogjop1d2\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
      super().run_setup(setup_script=setup_script)
      ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\user\AppData\Local\Temp\pip-build-env-ogjop1d2\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 18, in <module>
    File "<string>", line 7, in readme
  UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 606: illegal multibyte sequence
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/PySimpleGUI/PySimpleGUI/zipball/master' when getting requirements to build wheel


https://github.com/PySimpleGUI/PySimpleGUI/zipball/master upgraded to 

Done Installing https://github.com/PySimpleGUI/PySimpleGUI/zipball/master.

Code To Duplicate

Don't know what and why it happened, so I cannot build short code to demo what happened.

Screenshot, Sketch, or Drawing

Image

Watcha Makin?

If you care to share something about your project, it would be awesome to hear what you're building.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething's not rightDone - Install Dev Build (see docs for how)See https://docs.pysimplegui.com/en/latest/documentation/installing_licensing/upgrading/Port - TKPySimpleGUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions