Re: Nested/Sub Extensions in Python

2011-07-03 Thread H Linux
On Jul 2, 10:43 pm, Carl Banks wrote: > I got and built the package, and it imported smt.bar just fine for me. > > So my advice would be to rename all the modules. My guess is that there is a > conflict for smt and Python is importing some other module or package. Is > there a file called smt.

Re: Nested/Sub Extensions in Python

2011-07-02 Thread Carl Banks
On Saturday, July 2, 2011 6:35:19 AM UTC-7, H Linux wrote: > On Jul 2, 2:28 am, Carl Banks > wrote: > > On Friday, July 1, 2011 1:02:15 PM UTC-7, H Linux wrote: > > > Once I try to nest this, I cannot get the module to load anymore: > > > >import smt.bar > > > Traceback (most recent call last): >

Re: Nested/Sub Extensions in Python

2011-07-02 Thread H Linux
On Jul 2, 2:28 am, Carl Banks wrote: > On Friday, July 1, 2011 1:02:15 PM UTC-7, H Linux wrote: > > Once I try to nest this, I cannot get the module to load anymore: > > >import smt.bar > > Traceback (most recent call last): > >   File "", line 1, in > > ImportError: No module named bar > > [snip

Re: Nested/Sub Extensions in Python

2011-07-02 Thread H Linux
On Jul 2, 3:46 am, Corey Richardson wrote: > Excerpts from H Linux's message of Fri Jul 01 16:02:15 -0400 2011: > > > Dear all, > > > I am currently fighting with a problem writing a set of Python > > extensions in C. > > If you haven't seen it yet, Cython is a *very* nice tool for writing > C ext

Re: Nested/Sub Extensions in Python

2011-07-01 Thread Corey Richardson
Excerpts from H Linux's message of Fri Jul 01 16:02:15 -0400 2011: > Dear all, > > I am currently fighting with a problem writing a set of Python > extensions in C. If you haven't seen it yet, Cython is a *very* nice tool for writing C extensions. http://cython.org/ -- Corey Richardson "Those

Re: Nested/Sub Extensions in Python

2011-07-01 Thread Carl Banks
On Friday, July 1, 2011 1:02:15 PM UTC-7, H Linux wrote: > Once I try to nest this, I cannot get the module to load anymore: > >import smt.bar > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named bar [snip] > PyMODINIT_FUNC > initbar(void) > { > Py_In