Como posso restaurar um arquivo mimetypes? electrum Error: Nenhum módulo chamado mimetypes

0

Eu removi alguns arquivos mimetypes "errados". Como posso resolver esse erro? Reinstalar o electrum e o pip não resolveu isso.

$ electrum
Error: No module named mimetypes. Try 'sudo pip install <module-name>'

$ sudo pip install mimetypes
Traceback (most recent call last):
 File "/usr/bin/pip", line 9, in <module>
    load_entry_point(pip==1.5.6', console_scripts', pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py, line 5, in <module>
    import mimetypes
ImportError: No module named mimetypes
    
por Henricc 13.06.2017 / 10:01

1 resposta

0

Problema resolvido! Eu fiz falta mimetypes.py do github, depois (maybie não necessário) fez sudo apt-get install --reinstall python2.7

    
por Henricc 13.06.2017 / 20:33

Tags