roxma / nvim-yarp

Yet Another Remote Plugin Framework for Neovim
MIT License
229 stars 14 forks source link

find_spec is not python2-compatible #37

Closed stu105502 closed 4 years ago

stu105502 commented 4 years ago

find_spec was introduced in python3.4. Consequently, this code can not be used with python2.7 and yarp#pyexe2 is not able to be executed appropriately. I suggest a complete avoidance of 'find module'-functions because they seem to have the tendency of being changed quite often. (See https://stackoverflow.com/questions/51491793/utility-to-check-imports-in-python-without-running-the-code-python2-7). For long-term use I suggest a simple try/except block.