On Aug 20, 2008, at 6:32 AM, Muhammad Alkarouri wrote: > Hi everyone, > > Looks like pyximport is a cool addition to cython.
Yes, very. Thanks again Paul Prescod! > Unfortunately, > after I installed Cython through easy_install) I wasn't able to import > pyximport. > > In [2]: Cython? > Type: module > Base Class: <type 'module'> > String Form: <module 'Cython' from > '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ > site-packages/Cython-0.9.8.1.1-py2.5-macosx-10.3-i386.egg/Cython/ > __init__.pyc'> > Namespace: Interactive > File: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ > site-packages/Cython-0.9.8.1.1-py2.5-macosx-10.3-i386.egg/Cython/ > __init__.py > Docstring: > <no docstring> > > > In [3]: import pyximport > ---------------------------------------------------------------------- > ----- > ImportError Traceback (most recent > call last) > > /Users/malkarouri/<ipython console> in <module>() > > ImportError: No module named pyximport > > > When I looked in the package, there is a folder pyximport beside > Cython (sys.path contains > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ > site-packages/Cython-0.9.8.1.1-py2.5-macosx-10.3-i386.egg/, > the parent directory of both). But pyximport doesn't contain an > __init__.py file. Is that the problem? That could be it. Could you add one and see if that works for you? - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
