tweekmonster / impsort.vim

Sort and highlight Python imports in Vim
MIT License
37 stars 6 forks source link

Error detected while processing function impsort#highlight_imported[1]..<SNR>109_init: #27

Closed hanspinckaers closed 4 years ago

hanspinckaers commented 6 years ago

Hi,

Thanks for your lovely plugin. I encountered the following problem:

Error detected while processing function impsort#highlight_imported[1]..<SNR>109_init:
line   12:
E461: Illegal variable name: Fatal Python error: Py_Initialize: can't initialize sys standard stream

Commenting out the following line in autoload/impsort.vim removes the error:

function! impsort#highlight_imported(force) abort
"  call s:init()

Edit: I have to add: the plugin still works after this.

tweekmonster commented 4 years ago

This has been addressed by handling the error and printing it once. However, it looks like that error is generated due to something either being broken in the builtin modules or your code shadowed a builtin module.