-
Notifications
You must be signed in to change notification settings - Fork 23
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
AttributeError: module 'vim' has no attribute 'find_module' (python 3.7) #33
Comments
Hi, since Python 3.7 and Python 3.6 use separate site-packages folder, the upgrade to Python3.7 does require a reinstallation of package For your case, I find it quite curious why If you open python3 in the terminal, in the interactive prompt, invoke |
Thanks you, |
How about in Vim 8? Invoke |
That causes an error!
my full
|
Hi @sebastianst , sorry for the long delay. From what we have conversed, it seems like your Vim build's python integration has some issue. I cannot determine if the source was caused by Vim's build or Python's minor version upgrade, though. |
Thanks! I reported this on the Arch bug tracker |
Got a response already. I quote: https://github.com/vim/vim/blob/HEAD/src/if_py_both.h#L91 only find_spec is exposed as that's what should be used in python >= 3.7 so there is no find_module exposed in vim's module and hence the error message. Calling it from terminal does something totally different. pkg_resources from https://github.com/pypa/setuptools should use find_spec instead of imp find_module when running on >= 3.7 that would be the place to get a proper fix. |
I see, so the issue is with PyPa kept on using the deprecated |
I get this error since I use |
Removing package dependency checking could work. But this would potentially make new users not knowing what to do when their thesaurus.com backend refuses to work. Technically, this issue is caused by the conflicting between Vim8 and Pypa, so I am not certain what I can do from my side. Maybe using |
I suggest you give a try to |
I guess it's time to spend an afternoon migrating, then. Thank you for your time, and also this wonderful plugin. :) |
Probably after upgrading my Arch Linux system to python 3.7, thesaurus_query stopped working. I get the following errors:
Up-to-date Arch Linux, python 3.7.0, vim 8.1
It seems that other projects have similar problems, e.g., python-mode/python-mode#937
The text was updated successfully, but these errors were encountered: