Re: How can i solve ImportError: No module named _vectorized when running unit test files?
dieter <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
NirmalaSudhir <[email protected]> writes: > I get the ImportError: No module named _vectorized when i run my test > files. And i see that there is a problem in building shapely package in eggs > during bin/buildout . Already I posted the question in stackoverflow pls > look at it > http://stackoverflow.com/questions/25133921/importerror-no-module-named-vectorized > <http://stackoverflow.com/questions/25133921/importerror-no-module-named-vectorized> I would have appreciated when you had put the information from stackoverflow into your message to this list. This would have helped me to quote part of the information. So I must do the copying myself. Copied from "stackoverflow": > Traceback (most recent call last): > File "/home/nirmalsudhir/zope/myProject/eggs/Shapely-1.3.3-py2.7-linux-i686.egg/shapely > /tests/__init__.py", line 27, in <module> > from . import test_doctests, test_prepared, test_equality, test_geomseq, \ > File "/home/nirmalsudhir/zope/myProject/eggs/Shapely-1.3.3-py2.7-linux-i686.egg/shapely > /tests/test_vectorized.py", line 3, in <module> > from shapely.vectorized import contains, touches > File "/home/nirmalsudhir/zope/myProject/eggs/Shapely-1.3.3-py2.7-linux-i686.egg/shapely > /vectorized/__init__.py", line 3, in <module> > from ._vectorized import contains, touches > ImportError: No module named _vectorized This tells you that "...shapely/vectorized/__init__.py" contains "from ._vectorized" but "shapely.vectorized" lacks this submodule. "_vectorized" likely would contain C extensions for "shapely.vectorized". Likely, generation or installation of those extensions failed. Your report does not give any information which would allow to determine what went wrong with "_vectorized". ------------------------------------------------------------------------------