Re: Error importing .pyd python extension



P.S. I have run 'depends', and all the dll's are there, the only error
its throwing up is:

"Warning: At least one module has an unresolved import due to a missing
export function in a delay-load dependent module."

The offending file is mpr.dll in c:\windows\system32\

Any ideas?

Toby

Toby wrote:
Hi, I've managed to get my hands on the ms 2003 toolkit, and have
successfully (i think) created a .pyd file in win xp (setup.py is
provided intersystems cache):

--------------------------------------------------------------------
C:\CacheSys\Dev\python>setup.py install
enter directory where you installed Cache'c:\CacheSys
libdir=c:\CacheSys\dev\cpp\lib
include dir=c:\CacheSys\dev\cpp\include
running install
running build
running build_py
running build_ext
running install_lib
creating C:\Program Files\Python243\Lib\site-packages\intersys
copying build\lib.win32-2.4\intersys\pythonbind.py -> C:\Program
Files\Python243
\Lib\site-packages\intersys
copying build\lib.win32-2.4\intersys\pythonbind1.pyd -> C:\Program
Files\Python2
43\Lib\site-packages\intersys
copying build\lib.win32-2.4\intersys\__init__.py -> C:\Program
Files\Python243\L
ib\site-packages\intersys
byte-compiling C:\Program
Files\Python243\Lib\site-packages\intersys\pythonbind.
py to pythonbind.pyc
byte-compiling C:\Program
Files\Python243\Lib\site-packages\intersys\__init__.py
to __init__.pyc

C:\CacheSys\Dev\python>cd \program
files\python243\Lib\site-packages\intersys\

C:\Program Files\Python243\Lib\site-packages\intersys>dir
Volume in drive C is SYSTEM
Volume Serial Number is 3835-49DE

Directory of C:\Program Files\Python243\Lib\site-packages\intersys

31/10/2006 10:47 AM <DIR> .
31/10/2006 10:47 AM <DIR> ..
19/10/2006 05:50 PM 1,598 pythonbind.py
31/10/2006 10:47 AM 1,961 pythonbind.pyc
31/10/2006 09:44 AM 69,632 pythonbind1.pyd
17/07/2006 05:34 PM 2 __init__.py
31/10/2006 10:47 AM 145 __init__.pyc
5 File(s) 73,338 bytes
2 Dir(s) 16,709,017,600 bytes free
--------------------------------------------------------------------

However, when I try to import pythonbind1.pyd I get the following
error:

Traceback (most recent call last):
File
"C:\PROGRA~1\ACTIVE~1.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 1843, in runMain
self.dbg.runfile(debug_args[0], debug_args)
File
"C:\PROGRA~1\ACTIVE~1.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 1538, in runfile
h_execfile(file, args, module=main, tracer=self)
File
"C:\PROGRA~1\ACTIVE~1.5\lib\support\dbgp\pythonlib\dbgp\client.py",
line 596, in __init__
execfile(file, globals, locals)
File "C:\Program
Files\Python243\Lib\site-packages\intersys\tobytest.py", line 1, in
__main__
import pythonbind1.pyd
ImportError: DLL load failed: The specified module could not be found.


Any suggestions?

.



Relevant Pages

  • UPDATE 2 ?? How to know ??
    ... I started to install Update 2 and saw the ... warning about "cache" and how I'd have to reinstall if I didn't save the ... cache during the "initial install". ... then for clarity and accuracy the warning should state that. ...
    (borland.public.delphi.non-technical)
  • Re: Update 2
    ... option to delete the cache, along with a warning of what this means WRT ... I think it's more that it makes no sense to require old files to install new ...
    (borland.public.delphi.non-technical)
  • Error importing .pyd python extension
    ... Hi, I've managed to get my hands on the ms 2003 toolkit, and have ... successfully created a .pyd file in win xp (setup.py is ... running install ... byte-compiling C:\Program ...
    (comp.lang.python)
  • activesync installation error
    ... I am attempting to install activesync 3.8 or 3.71 on a windows 2000 pro ... WARNING: Uninstall logging failed - uninstall will not work ... Copying static files to C:\Program Files\Microsoft ActiveSync_new ...
    (microsoft.public.pocketpc.activesync)
  • Re: disklabel error in 4.11 release
    ... I personally have no experience with disklabel so it took me a bit to track down, but it seems like the raw device is not allowing anything to edit the first sectors. ... Keep in mind that an Olive install effectively turns your BSD box into a Juniper box, so the boot procedure will be different, which is why I'm leaning toward this. ... olive1# disklabel ad4 ... WARNING: This package will load JUNOS 7.2R4.2 software. ...
    (freebsd-questions)