Ii was trying to install IDLE wit this commend:
sudo apt-get install idle3
but while installation this error show up:
the error's complete shape is this:
Setting up idle-python3.5 (3.5.3-1) ...
Traceback (most recent call last):
File "/usr/lib/python3.5/compileall.py", line 15, in <module>
import importlib.util
File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
import types
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 23, in <module>
from weakref import WeakKeyDictionary
File "/usr/lib/python3.5/weakref.py", line 12, in <module>
from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package idle-python3.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of idle3:
idle3 depends on idle-python3.5; however:
Package idle-python3.5 is not configured yet.
dpkg: error processing package idle3 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
idle-python3.5
idle3
E: Sub-process /usr/bin/dpkg returned an error code (1)
tnx for helping me to solve this problem
dpkg: dependency problems prevent configuration of idle3: idle3 depends on idle-python3.5; however: Package idle-python3.5 is not configured yet.
Can you try properly installingidle-python3.5
by itself before tryingidle3
? – code_dredd Sep 09 '17 at 15:12idle3
runs fine w/o issues. Have you triedsudo apt-get install -f
so that it tries to fix broken packages? – code_dredd Sep 09 '17 at 22:32