2020-09-19 python-mode 一打开就报错的问题
问题(坑爹的货,还是改源码)
1 |
|
解决,官方文档已经更改
importlib.find_loader(name, path=None) Find the loader for a module, optionally within the specified path. If the module is in sys.modules, then sys.modules[name].loader is returned (unless the loader would be None or is not set, in which case ValueError is raised). Otherwise a search using sys.meta_path is done. None is returned if no loader is found. A dotted name does not have its parents implicitly imported as that requires loading them and that may not be desired. To properly import a submodule you will need to import all parent packages of the submodule and use the correct argument to path. New in version 3.3. Changed in version 3.4: If loader is not set, raise ValueError, just like when the attribute is set to None. Deprecated since version 3.4: Use importlib.util.find_spec() instead.
根据文档, 替换, 修改 ~/.vim/bundle/python-mode/autoload/pymode/breakpoint.vim 文件如下。
1 |
|