Using python22.dll with Python 2.5?

M

Martin Schneider

Hi!

I'd like to use the numpy library (which runs on Python 2.5) in the same
project with another (mandatory) library which needs python22.dll. When
I try to compile I get an error similar to "python22.dll not compatible
with the current Python version."

Has anybody an idea how to solve this?

Thanks for your ideas.
Best regards,
Martin
 
D

Diez B. Roggisch

Martin said:
Hi!

I'd like to use the numpy library (which runs on Python 2.5) in the same
project with another (mandatory) library which needs python22.dll. When
I try to compile I get an error similar to "python22.dll not compatible
with the current Python version."

Has anybody an idea how to solve this?

There is no solution to the compilation problems. You can't just mix
arbitrary python dlls. If upgrading the mandatory library isn't possible,
you could think of using a RPC-mechanism or depending on the task of the
library the module subprocess to do whatever that library needs to do in a
python2.2.

Diez
 
R

Robert Kern

Martin said:
Hi!

I'd like to use the numpy library (which runs on Python 2.5) in the same
project with another (mandatory) library which needs python22.dll. When
I try to compile I get an error similar to "python22.dll not compatible
with the current Python version."

Has anybody an idea how to solve this?

You can't. Binary extension modules compiled for one "minor" version of Python
cannot be used for another. numpy also requires Python >= 2.3 anyways, so you
could not recompile it for Python 2.2 in any case. You could use numpy's
predecessor, Numeric, which still should work with Python 2.2, but you will have
to compile it yourself; there are no available Python 2.2 Windows binaries.

http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=1351

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
J

John Machin

Hi!

I'd like to use the numpy library (which runs on Python 2.5) in the same
project with another (mandatory) library which needs python22.dll. When
I try to compile I get an error similar to "python22.dll not compatible
with the current Python version."

Has anybody an idea how to solve this?

Tell us what barriers you think you face that prevent you compiling
the (presumably C) source of the "another (mandatory) library which
needs python22.dll" so that it will run with Python 2.x (x > 2) ...
someone may be able to help you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top