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.
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):
>
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
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
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
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
Dear all,
I am currently fighting with a problem writing a set of Python
extensions in C. I want to structure the whole package (here called
smt for sub-module test) into different sub-modules, e.g. according to
this layout:
smt.foo.func()
I can only build a module
>import foo
>print foo.func(1,