Talk:Extending Python with C++

From OLPC
Revision as of 18:11, 24 March 2008 by 68.146.220.249 (talk) (ImportError: cannot import name setup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hi. When I try to execute the line:

python setup.py build_ext --inplace

I get the error message

Traceback (most recent call last):
   File "setup.py", line 2, in <module>
      from distutils import setup, Extension
ImportError: cannot import name setup

Any ideas?

Also, is it possible to have separate header and implementation files for the C++ code?

-- Kevin S 68.146.220.249 18:11, 24 March 2008 (EDT)