[issue47229] IDLE / Thonny UI crashes on Chromebook Linux/Bullseye

2022-04-06 Thread Doug Bates

Doug Bates  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 "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", 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 "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", 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 "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", 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 "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", 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 "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", line 984, in 

[issue47229] IDLE / Thonny UI crashes on Chromebook Linux/Bullseye

2022-04-05 Thread Terry J. Reedy


Terry J. Reedy  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47229] IDLE / Thonny UI crashes on Chromebook Linux/Bullseye

2022-04-05 Thread Doug Bates


New submission from Doug Bates :

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.

--
assignee: terry.reedy
components: IDLE
files: Thonny crashes.txt
messages: 416790
nosy: Coloneldare, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE / Thonny UI crashes on Chromebook Linux/Bullseye
type: crash
Added file: https://bugs.python.org/file50720/Thonny crashes.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com