Issue47229
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2022-04-05 17:19 by Coloneldare, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Files | ||||
---|---|---|---|---|
File name | Uploaded | Description | Edit | |
Thonny crashes.txt | Coloneldare, 2022-04-05 17:19 | Error messages from terminal for info/clues? |
Messages (5) | |||
---|---|---|---|
msg416790 - (view) | Author: Doug Bates (Coloneldare) | Date: 2022-04-05 17:19 | |
Having installed IDLE on Chromebbok/Linux Bullseye, on startup the UI crashes as soon as a menu item is selected. Also when trying to use Thonny. Other packages seem OK. Used to work fine under Buster, but not since fresh install to Bullseye. Apologies from my knowledge/skill level. |
|||
msg416837 - (view) | Author: Terry J. Reedy (terry.reedy) * | Date: 2022-04-06 01:27 | |
This issue tracker is for improving the CPython distribution. It is not a tracker for other software, or for general help with running Python. For the latter, try https://mail.python.org/mailman/listinfo/python-list Thonny is 3rd party software with its own tracker, although I suspect that the problem is with your upgrade Chromebook/Linux Bullseye. While running Python on Linux on PCs is supported, I do not believe Chromebooks are included; there is certainly no Chromebook buildbot for testing CPython listed on https://buildbot.python.org/all/#/builders. If there is a Chromebook Python list, you might ask if tkinter works with Bullseye for other users. IDLE *is* part of CPython. What specific release of Python are you running. This is the first thing IDLE prints when it starts. If you are running a somewhat recent release of 3.9 or 3.10, then continue. To see whether there might be an IDLE-specific or ever tkinter-specific problem, run the CPython test suite from a command line with "python3 -m test -j0 -ugui" and report results. (Or 'python ...' is 'python' works to run python 3.) If it passes except for IDLE tests, start IDLE from a command line with "python3 -m idlelib". Get IDLE to quit/crash. Then report any error info printed in the terminal. |
|||
msg416850 - (view) | Author: Doug Bates (Coloneldare) | Date: 2022-04-06 10:12 | |
Thank you Terry for your interest/helpfulness. I'm a bit out of my depth but to explain, I first noticed the problem attempting to run Thonny as an development tool for Raspberry Pi RP2040 Picos. Previously it all worked great running on Buster. When I hit problems after moving to Bullseye I raised a bug with thonny.org and exchanged several posts with https://github.com/aivarannamaa who was very helpful and he observed the Thonny GUI uses the same as IDLE - so I tried it and found the same. Aivar couldn't replicate the issue but after several attempts suggested: https://github.com/thonny/thonny/issues/2196#issuecomment-1069473517. You will see from our exchanges that I found the 'core' of Thonny (and IDLE if the window doesn't collapse immediately) seems to be running OK (e.g. >>> 22/7 > 3.142... etc) but any menu operations crashes it immediately. This obviously leaves a mess and neither IDLE nor Thonny will reload without restarting the whole linux container. Anyway, running the tests you suggested gives the following. Thanks again and let me know if I can help further. —------------------ python3 -m test -j0 -ugui == CPython 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] == Linux-5.10.106-15260-g6010c49177e8-x86_64-with-glibc2.31 little-endian == cwd: /tmp/test_python_19389æ == CPU count: 2 == encodings: locale=UTF-8, FS=utf-8 0:00:00 load avg: 0.00 Run tests in parallel using 4 child processes 0:00:00 load avg: 0.00 [ 1/10/1] test_builtin failed test test_builtin crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_builtin' 0:00:00 load avg: 0.00 [ 2/10/2] test_dict failed test test_dict crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_dict' 0:00:00 load avg: 0.00 [ 3/10/3] test_opcodes failed test test_opcodes crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_opcodes' 0:00:00 load avg: 0.00 [ 4/10/4] test_grammar failed test test_grammar crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_grammar' 0:00:00 load avg: 0.00 [ 5/10/5] test_exceptions failed test test_exceptions crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_exceptions' 0:00:00 load avg: 0.00 [ 6/10/6] test_types failed test test_types crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_types' 0:00:00 load avg: 0.00 [ 7/10/7] test_doctest failed test test_doctest crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_doctest' 0:00:01 load avg: 0.00 [ 8/10/8] test_unittest failed test test_unittest crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_unittest' 0:00:01 load avg: 0.00 [ 9/10/9] test_doctest2 failed test test_doctest2 crashed -- Traceback (most recent call last): File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/usr/lib/python3.9/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_doctest2' 0:00:03 load avg: 0.24 [10/10/9] test_support passed == Tests result: FAILURE == 1 test OK. 9 tests failed: test_builtin test_dict test_doctest test_doctest2 test_exceptions test_grammar test_opcodes test_types test_unittest Total duration: 3.8 sec Tests result: FAILURE —----------------------------- [comment: despite failure I tried this, leading to …. > a window flashes on the screen and vanishes] On Wed, Apr 6, 2022 at 2:27 AM Terry J. Reedy <report@bugs.python.org> wrote: > > Terry J. Reedy <tjreedy@udel.edu> added the comment: > > This issue tracker is for improving the CPython distribution. It is not a > tracker for other software, or for general help with running Python. For > the latter, try > https://mail.python.org/mailman/listinfo/python-list > > Thonny is 3rd party software with its own tracker, although I suspect that > the problem is with your upgrade Chromebook/Linux Bullseye. While running > Python on Linux on PCs is supported, I do not believe Chromebooks are > included; there is certainly no Chromebook buildbot for testing CPython > listed on https://buildbot.python.org/all/#/builders. If there is a > Chromebook Python list, you might ask if tkinter works with Bullseye for > other users. > > IDLE *is* part of CPython. What specific release of Python are you > running. This is the first thing IDLE prints when it starts. > > If you are running a somewhat recent release of 3.9 or 3.10, then > continue. To see whether there might be an IDLE-specific or ever > tkinter-specific problem, run the CPython test suite from a command line > with "python3 -m test -j0 -ugui" and report results. (Or 'python ...' is > 'python' works to run python 3.) If it passes except for IDLE tests, start > IDLE from a command line with "python3 -m idlelib". Get IDLE to > quit/crash. Then report any error info printed in the terminal. > > ---------- > > _______________________________________ > Python tracker <report@bugs.python.org> > <https://bugs.python.org/issue47229> > _______________________________________ > |
|||
msg416915 - (view) | Author: Terry J. Reedy (terry.reedy) * | Date: 2022-04-07 05:28 | |
"Thonny GUI uses the same as IDLE": I presume this means that Thonny also uses tkinter and both fail, which means that tkinter is not working right. Your test run indicates that python is not running correctly either. It only tried to run 10 of what should be over 400 tests and 9 of those failed because of failure to import the test file. You should report this to whoever supplies python on Chromebook, which I presume is whoever supplies Bullseye. |
|||
msg416979 - (view) | Author: Doug Bates (Coloneldare) | Date: 2022-04-08 11:45 | |
'cc' Terry to say thank you. Just fyi I regressed my Chromebook to Debian/Buster form Bullseye, as IDLE and Thonny had previously worked seamlessly but now it doesn't work on Bullseye either -> so Google must have broken something along the way upgrading ChromeOS [98..101]. I have reported this via Google's bug reporter. Fingers crossed and thanks for your help :-) On Thu, Apr 7, 2022 at 6:28 AM Terry J. Reedy <report@bugs.python.org> wrote: > > Terry J. Reedy <tjreedy@udel.edu> added the comment: > > "Thonny GUI uses the same as IDLE": I presume this means that Thonny also > uses tkinter and both fail, which means that tkinter is not working right. > Your test run indicates that python is not running correctly either. It > only tried to run 10 of what should be over 400 tests and 9 of those failed > because of failure to import the test file. You should report this to > whoever supplies python on Chromebook, which I presume is whoever supplies > Bullseye. > > ---------- > resolution: -> third party > stage: -> resolved > status: open -> closed > title: IDLE / Thonny UI crashes on Chromebook Linux/Bullseye -> IDLE UI > crashes on Chromebook Linux/Bullseye > > _______________________________________ > Python tracker <report@bugs.python.org> > <https://bugs.python.org/issue47229> > _______________________________________ > |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:58 | admin | set | github: 91385 |
2022-04-08 11:45:54 | Coloneldare | set | messages:
+ msg416979 title: Python tests fail on Chromebook Linux/Bullseye -> IDLE UI crashes on Chromebook Linux/Bullseye |
2022-04-07 05:29:26 | terry.reedy | set | type: crash -> behavior components: + Tests, - IDLE title: IDLE UI crashes on Chromebook Linux/Bullseye -> Python tests fail on Chromebook Linux/Bullseye |
2022-04-07 05:28:18 | terry.reedy | set | status: open -> closed title: IDLE / Thonny UI crashes on Chromebook Linux/Bullseye -> IDLE UI crashes on Chromebook Linux/Bullseye messages: + msg416915 resolution: third party stage: resolved |
2022-04-06 10:12:07 | Coloneldare | set | messages:
+ msg416850 title: IDLE crashes on Chromebook Linux/Bullseye -> IDLE / Thonny UI crashes on Chromebook Linux/Bullseye |
2022-04-06 01:27:41 | terry.reedy | set | title: IDLE / Thonny UI crashes on Chromebook Linux/Bullseye -> IDLE crashes on Chromebook Linux/Bullseye |
2022-04-06 01:27:06 | terry.reedy | set | messages: + msg416837 |
2022-04-05 17:19:04 | Coloneldare | create |