[pypy-dev] question on using ctypes

Jiwon Seo seojiwon at gmail.com
Wed Jul 5 09:25:12 CEST 2006

On further inspection, it is actually ctypes problem. It seems like
setting sys.path in PYTHONSTARTUP file isn't enough. I guess I should
just install it in system-wide python site-package directory.


On 7/4/06, Jiwon Seo <seojiwon at gmail.com> wrote:
> > Hello,
> >
> > Don't know if it helps, but I have already seen this problem:
> > sometimes an ImportError can mask another ImportError.
> > The code in mixedmodule.py looks like this:
> >    try:
> >        d[name] = __import__(pkgroot+'.'+name, None, None, [name])
> >    except ImportError:
> >        d[name] = __import__(name, None, None, [name])
> >
> > The first call is supposed to be the good one, but if it fails with an
> > ImportError, you get the error from the second call.
> > Is the ctypes module correctly installed?
> >
> Yeah, I think so. (I installed in my home directory, and I think I
> properly set up PYTHONSTARTUP and did sys.path.append... in the
> And, 'p name' in the pdb tells me it's tcc modue. So, I think ctypes
> might not be related to this. (but I could be wrong)
> Any other suggestions?
> -Jiwon

More information about the Pypy-dev mailing list