-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taskwiki fails with AttributeError: module 'vim' has no attribute 'find_module'
#183
Comments
AttributeError: module 'vim' has no attribute 'find_module'
errorAttributeError: module 'vim' has no attribute 'find_module'
Probably an issue with vim (+python). Closing now. |
@beuerle Were you able to get this working? I'm experiencing the same issue. |
For anyone else that stumbles across this problem, I was able to silence these errors by making a few changes to the It looks like this only disables a dependency check for tasklib. So no major damage done. |
@bbugyi200 no, I wasn't. But after the update(s) I got the same error with the [..]
line 1:
loader = importer.find_module(packageName)
Press ENTER or type command to continue
Error detected while processing /home/user/dotfiles/vim/bundle/python-mode/autoload/pymode/lint.vim:
line 1:
AttributeError: module 'vim' has no attribute 'find_module' The problem is connected to recent (vim+) python update. Not sure why exactly, and I don't have the time right now to figure it out. |
I can confirm that this patch works. |
Upgraded to Python 3.7, but I can't reproduce this guys. |
Updated vim today from
to
but the problem still persists. |
I have the same issue but didn't try the patch, instead, as the problem is python 3.7 related, you can set |
This seems to be reproducible if you have python 3, vim, and at least one python module in your site-packages which has a namespace_packages.txt file in it's egg-info (in ArchLinux, the python-matplotlib pacman package is one example that will trigger this). In which case, attempting to import pkg_resource inside vim will fail (e.g., vim --clean -c ':py3 import pkg_resource'). Aside from importing pkg_resources and triggering the bug, it doesn't seem to be a problem in taskwiki. |
@fanovpn I just wanted to chime in (after checking the setuptool issue): good work tracking this one down guys. |
A recent vim version fixes this. This one works for me:
|
Since some updates (I'm on Arch Linux) I am no longer able to use taskwiki (most recent revision). I get the following error message when opening any
vimwiki
file:Any ideas?
The text was updated successfully, but these errors were encountered: