Thanks Lenard! I got the lib to work without SDL having to be installed. I
created a new find_library function, and then hacked the lib a little, and
it works great! Thanks again :-)

On Mon, Apr 14, 2008 at 1:06 AM, Lenard Lindstrom <[EMAIL PROTECTED]> wrote:

> If you go to the ctypes mailing list you would probably find me, though I
> am neither the creator nor maintainer. :-) The problem is ctypes does not
> search the module's directory for dll's unless the directory is path of the
> normal dll search path. And the ctypes 'find_library' function does not look
> in the current directory unless it is part of the PATH environment variable.
> So either C:\Python25\Lib\site-packages\SDL has to be added to PATH or SDL
> and friends have to be placed somewhere in the existing dll search path
> (C:\Python25 would be one place, but probably not the best option).
>
> Lenard
>
>
>
> René Dudfield wrote:
>
> > hello,
> >
> > pygame-ctypes has been abandoned.
> >
> > The authors email is in the docs if you'd like to email him.  You
> > might get a good response on the ctypes list to your issue.
> >
> >
> > cheers,
> >
> >
> >
> > On Mon, Apr 14, 2008 at 9:50 AM, PyMike <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Hi,
> > >
> > > I've been interested in making something similar to pygame, but
> > > completely
> > > in python. I came across http://www.pygame.org/ctypes/ and after I
> > > installed
> > > the SDL lib I get this error when I run __init__.py...
> > >
> > >    Traceback (most recent call last):
> > >   File "C:\Python25\Lib\site-packages\SDL\dll.py", line 221, in
> > > <module>
> > >    _dll = SDL_DLL('SDL', 'SDL_Linked_Version')
> > >   File "C:\Python25\Lib\site-packages\SDL\dll.py", line 54, in
> > > __init__
> > >    _platform_library_name(library_name)
> > >  ImportError: Dynamic library "SDL" was not found
> > >    ...and I have all the SDL DLLs that are included pygame in the same
> > > dir as
> > > the SDL lib. I want to be able to include SDL with the pkg and not
> > > have
> > > users have to install it into their system folder for the python lib
> > > to
> > > work.
> > >
> > >
> >
>


-- 
- pymike (pymike93.googlepages.com)

Reply via email to