0

Im trying to set up some programs to work on a website with cherrypy framework on my laptop. Now i need oursql for the website. I used for both Cython and OurSQL executables. I found a site with executables from the cython download site ("Christoph Gohlke has created Windows installers available for download on his site." link) I both downloaded the versions for windows (I have Windows 7 64-bit) and Python 2.7. After this installation i try to run my script for starting the website and I got the following error:

    import oursql
    ImportError: DLL load failed: The specified module could not be found.

I searched the internet, but I didn't manage to find a solution. Anybody has an idea how this can occur and maybe how this can be fixed?

Facundo Casco
  • 10,065
  • 8
  • 42
  • 63
ProCx
  • 199
  • 5
  • 18
  • 1
    Those binaries are linked against the official MySQL 5.1 distribution and depend on `libmysql.dll`, which is not redistributed with the oursql installers. Install MySQL 5.1 (64 bit if you are using 64 bit Python) and make sure `libmysql.dll` is found in os.path. – cgohlke Oct 27 '12 at 19:24
  • Got rid of the error. Thanks! – ProCx Oct 31 '12 at 14:06

1 Answers1

0

Comment of choglke was the answer

ProCx
  • 199
  • 5
  • 18