fixed pycurl “ImportError: DLL load failed: The specified procedure could not be found.”

Because normal package download from pypi throw:


ImportError: DLL load failed: The specified procedure could not be found.

I guess this maybe mismatch of openssl version, so I try to build with version 1.0.0.t and replace dll with version 0.9.8, python throw this exception.

So I decided to link openssl staticly, and everything fine. because may tool build with ssl, I can’t just delete other lower version dll, it is dll-hell:(

By the way I modify setup.py to include depend windows library and openssl, see setup.py source code for details.


library_dirs.append(os.path.join(curl_dir, "lib"))
extra_link_args.extend(["libeay32MD.lib", "ssleay32MD.lib", "advapi32.lib", "user32.lib"])

All source code upload to https://github.com/buaabyl/pycurl-win32 and release to https://github.com/buaabyl/pycurl-win32/releases

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

This entry was posted in Memo and tagged , , , , , , . Bookmark the permalink.