Public bug reported:

In 17.10 the idle package (v. 3.6.3-0ubuntu1) depends on Python 3.6. But
the /usr/bin/idle script contains the code that doesn't work in Python
3.6.

$ idle
Traceback (most recent call last):
  File "/usr/bin/idle", line 3, in <module>
    from idlelib.PyShell import main
ModuleNotFoundError: No module named 'idlelib.PyShell'

In Python 3.6 the PyShell module was renamed to pyshell (see
https://bugs.python.org/issue24225).

/usr/bin/idle-python3.6 from the idle-python3.6 package works correctly.

Maybe make /usr/bin/idle just a link to /usr/bin/idle-python3.6?

If you want /usr/bin/idle always run the default python3 and don't
depent of future changes in the idlelib Python package, you can make it
a shell script:

#! /bin/sh
exec /usr/bin/python3 -m idlelib

** Affects: python3-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1722397

Title:
  idle doesn't run in 17.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1722397/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to