Clique no erro do módulo no ubuntu 16.10

1

Recebo a seguinte mensagem de erro ao fazer sudo apt-get install -f :

Preparing to unpack .../click_0.4.46+16.10.20170607.3-0ubuntu1_amd64.deb ...
Traceback (most recent call last):
  File "/usr/bin/click", line 37, in <module>
    import click
ImportError: No module named 'click'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/click", line 37, in <module>
    import click
ImportError: No module named 'click'
dpkg: error processing archive /var/cache/apt/archives/click_0.4.46+16.10.20170607.3-0ubuntu1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Job for click-system-hooks.service failed because the control process exited with error code.
See "systemctl status click-system-hooks.service" and "journalctl -xe" for details.
click-system-hooks.service couldn't start.
Errors were encountered while processing:
 /var/cache/apt/archives/click_0.4.46+16.10.20170607.3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

dpkg-query -l click python3-click :

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  click          0.4.45.1+16. amd64        Click packages
un  python3-click  <none>       <none>       (no description available)

readlink -f /usr/bin/python3 :

/usr/bin/python3.5

ls -l /usr/lib/python3/dist-packages/click_package :

ls: cannot access '/usr/lib/python3/dist-packages/click_package': No such file or directory
    
por Bharatdarapu 07.07.2017 / 15:56

2 respostas

0

Reinstale o pacote defeituoso com:

sudo apt --reinstall install python3-click
    
por dessert 21.08.2017 / 10:22
0

Eu tive o mesmo problema, acabei consertando com um

sudo apt remove python3-click-package
sudo apt install python3-click-package
    
por Lyr 21.08.2017 / 10:19