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 browsed about the shapely.vectorized and i see that
> _vectorized.pyx contain these import files
>
> import cython
> cimport cpython.array
>
> import numpy as np
> cimport numpy as np
>
> import shapely.prepared
>
>
> i Hope this is the problem.  This causes this error "Numpy or Cython not
> available, shapely.vectorized submodule not being built.". But i dont know
> how to solve it.

Install "Numpy" and "Cython" in your Plone setup -- at least as
a first step.

I usually do installations of this kind in the following way
(although, likely, there are other ways -- e.g. via "buildout"):

 1. I locate the Python installation:
    
      bin/zopepy -c "import sys; print sys.prefix"

    Its "bin" subdirectory usually has an "easy_install" command

 2. I use this "easy_install" for the installation

      <path-to-Python>/bin/easy_install <package>


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.