Loading Python .pyd extensions

From BF2 Technical Information Wiki
Jump to: navigation, search

If you've found yourself on this page hoping to find out how to load your own C++ code (.DLL) via a .pyd file. You may well be dissappointed. As of yet I have not worked out how to do this.

I was using the boost_python libraries to create the .pyd file, but I've downloaded several other types and you always get this error message.

ImportError: Don't know how to import XYZ (type code 3) 

If you know the answer please post here.

Perhaps this page can be about brain-storming a few ideas.

19 September 2006


I haven't used .pyd files or Boost.Python, so I don't have a solution for you, but I do have some suggestions:

--Woody 10:02, 19 September 2006 (MDT)


Thanx very much for the input, greatly appreciated. In reply to your points:

What also puzzles me is that it is not just my .pyd which won't import into BF2 python, I have tried a wide variety of .pyd's from a number of sources and none will import ( ctypes, calldll, winsound among others). I am beginning to fear that what you said about the BF2 Python interpreter being lobotomized is the problem.

--Andrewd 01:59, 20 September 2006 (MDT)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox