Youcompleteme: Error with python setup, no module named pyasn1.type

Created on 1 Aug 2015  路  4Comments  路  Source: ycm-core/YouCompleteMe

After compiling the ycm support libs (I followed the instructions for not caring about semantic support for C-family languages), opening vim gives the error before opening.

Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
/usr/lib/pymodules/python2.7/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer veri
fication will be disabled. Import error is: No module named pyasn1.type
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
warnings.warn(import_error_msg)
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
/usr/lib/pymodules/python2.7/ndg/httpsclient/ssl_peer_verification.py:24: UserWarning: SubjectAltName support is disabled - check pyasn1 pack
age installation to enable
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
warnings.warn(SUBJ_ALT_NAME_SUPPORT_MSG)
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
/usr/lib/pymodules/python2.7/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer veri
fication will be disabled. Import error is: No module named pyasn1.type
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable..58_SetUpPython:
line 34:
warnings.warn(import_error_msg)

Running debian stretch
Python version is 2.7.10
Vim version is 7.4 with python support
I've checked and I have python-pyasn1, python-pyasn1-modules installed, so I don't see why thiscould be happening, but the error indicates that it might use plain HTTP instead of HTTPS so that sounds very bad.

Most helpful comment

Weird, for some reason the pyasn1 files were missing even though the package was installed, fixed with sudo apt-get --reinstall install python-pyasn1 python-pyasn1-modules

All 4 comments

Weird, for some reason the pyasn1 files were missing even though the package was installed, fixed with sudo apt-get --reinstall install python-pyasn1 python-pyasn1-modules

Thanks a lot, it worked for me, i reinstalled pyasn1 module.

works!!!!!

Thanks, worked for me too.

Was this page helpful?
0 / 5 - 0 ratings