Module Not Found in Script.. Works Interactively

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fizzics
    New Member
    • Nov 2008
    • 5

    Module Not Found in Script.. Works Interactively

    I can't seem to figure this one out. I am trying to install some python bindings for IDL. I'd like to call my IDL scripts from my more native python. The bindings are called pyIDL.

    It requires the Cython libraries, which I have installed. When I run the setup.py script here is what I get.

    $ python setup.py install --prefix=/opt/python
    Traceback (most recent call last):
    File "setup.py", line 4, in <module>
    from Cython.Distutil s import build_ext
    ImportError: No module named Cython.Distutil s

    And then if I try to import the thing from the interpreter directly...

    $ python
    Python 2.7.3 (default, Apr 20 2012, 22:39:59)
    [GCC 4.6.3] on linux2
    Type "help", "copyright" , "credits" or "license" for more information.
    >>> from Cython.Distutil s import build_ext
    >>>

    No problem in sight. I have looked at my path.. I can't seem to find anything obvious. WTF?
Working...