Question to python C API

alex23 wuwei23 at gmail.com
Fri Apr 17 09:01:20 CEST 2009


On Apr 17, 4:22 pm, Andreas Otto <aotto1... at onlinehome.de> wrote:
>         Question 1: Why you wall it "Pyrex" package ?

>From the first paragraph on the Cython site: "Cython is based on the
well-known Pyrex, but supports more cutting edge functionality and
optimizations."

> >python ./setup.py install
>
> Traceback (most recent call last):
>   File "./setup.py", line 5, in <module>
>     from Cython.Compiler.Version import version
>   File "/home/dev1usr/src/Cython-0.11.1/Cython/__init__.py", line 2, in
> <module>
>     from Shadow import *
> ImportError: No module named Shadow

Did you unpack the Cython archive correctly? Is there a Shadow.py in
your src/Cython-0.11.1/Cython/ folder?

>   4. than I try the second part from INSTALL.txt
> (2) If you prefer not to modify your Python
>     installation, arrange for the directory
>     containing this file (INSTALL.txt) to be in
>     your PYTHONPATH. On unix, also put the bin
>     directory on your PATH.
>
> Traceback (most recent call last):
>   File "setup.py", line 3, in <module>
>     from Cython.Distutils import build_ext
> ImportError: No module named Cython.Distutils

Did you follow the 2nd set of instructions & modify both your
PYTHONPATH & PATH env vars? Have you confirmed they're correct? This
is the sort of error I'd expect if those weren't set up properly.

>   7. a little bit to much errors for the first step, isn't it ?

Yes, however none of these happened when I just installed Cython to
the XP, OSX & Ubuntu boxen I'm working on, so this isn't usual
behaviour.

What is your setup? What OS?



More information about the Python-list mailing list