Problem building/using M2Crypto extension module

Ng Pheng Siong ngps at netmemetic.com
Thu Oct 2 11:48:20 EDT 2003


According to Carl Waldbieser <waldbie at attglobal.net>:
> >>> import M2Crypto
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
>   File "C:\PYTHON23\Lib\site-packages\M2Crypto\__init__.py", line 7, in ?
>     import __m2crypto
> ImportError: DLL load failed: The system cannot find the file specified.

Is there a __m2crypto.dll or __m2crypto.pyd (sorry can't remember which)
somewhere?

I haven't tried with Python 2.3 on Windows, but I've done it on FreeBSD. No
change in build procedure.

  $ python
  Python 2.3 (#3, Sep 15 2003, 15:22:12) 
  [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import M2Crypto
  >>>

  $ python2.3 alltests.py 
  ......................................................................
  ----------------------------------------------------------------------
  Ran 70 tests in 6.756s
  
  OK


On Windows, I use Bloodshed DevC++, which is some version of mingw. Instead
of pydef, I use the free BC++'s impdef, but either should produce
equivalent .def files.

I was going to install Python 2.3 for Windows, then I noticed 2.3.1 and
then I noticed 2.3.2 release candidate, so I decided to wait a little.

Do you have Python 2.2.3, say? Are you able to build on this version?


-- 
Ng Pheng Siong <ngps at netmemetic.com> 

http://firewall.rulemaker.net  -+- Manage Your Firewall Rulebase Changes
http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL




More information about the Python-list mailing list