Getting the following error when trying to import a lib that depends on zope
No module named zope.index
my python path is correct (I can import other libs) I already created an init.py file in the zope folder but it still isnt working so Im not sure what I might be missing
currently using python 3.7
*edit Error:
File "C:\Users\vitor.valentim\AppData\Local\Programs\Python\Python37\Lib\dedupe\tfidf.py", line 5, in from .canopy_index import CanopyIndex
File "C:\Users\vitor.valentim\AppData\Local\Programs\Python\Python37\Lib\dedupe\canopy_index.py", line 3, in from zope.index.text.lexicon import Lexicon
ModuleNotFoundError: No module named 'zope.index'
-
Please do not include images of code or errors. Paste their output (formatted) here.Sean Pianka– Sean Pianka2018年11月15日 20:39:35 +00:00Commented Nov 15, 2018 at 20:39
1 Answer 1
The error message No module named zope.index implies that import found a package zope, but then failed to find zope.index (otherwise the error message would be No module named zope).
Try
import zope
print(zope)
and see what that resolves to, something like this often happens if there is something shadowing the package you're trying to import.
1 Comment
Explore related questions
See similar questions with these tags.