Doug Bates <coloneld...@gmail.com> added the comment:

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 <rep...@bugs.python.org>
wrote:

>
> Terry J. Reedy <tjre...@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 <rep...@bugs.python.org>
> <https://bugs.python.org/issue47229>
> _______________________________________
>

----------
title: IDLE crashes on Chromebook Linux/Bullseye -> IDLE / Thonny UI crashes on 
Chromebook Linux/Bullseye

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to