SIP

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Apr 9 10:41:31 EDT 2010


omnia neo <neo.omnia7 <at> gmail.com> writes:
> On Apr 9, 10:42 am, omnia neo <neo.omn... at gmail.com> wrote:
> > On Apr 9, 10:30 am, Stefan Behnel <stefan... at behnel.de> wrote:
> >
> > > omnia neo, 09.04.2010 07:01:
> >
> > > > import siptest
> >
> > > > I get following error :
> > > > import error : no module named siptest
> >
> > > Is the directory where your siptest.dll lies in your PYTHONPATH 
(sys.path)?
> > well I added PYTHONPATH = <my dll path> in my environment variables
> > (windows XP).
> 
> well I just tried this too.
> I added the path using sys.path on the fly in my python script as
> follows:
> 
> ###############
> import sys
> sys.path.append("<dll path>")
> print sys.path
> import siptest
> ###############
> 
> again same error:
> ImportError: No module named siptest.

Make sure the extension module must is called siptest.pyd, not siptest.dll
http://docs.python.org/extending/windows.html
(I'd expect SIP to take care of this)

-- 
Gabriel Genellina




More information about the Python-list mailing list