473,413 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Using python22.dll with Python 2.5?

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
Oct 22 '08 #1
3 2244
Martin Schneider wrote:
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
Oct 22 '08 #2
Martin Schneider wrote:
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/showf...ackage_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

Oct 22 '08 #3
On Oct 23, 12:43*am, Martin Schneider <martin.schnei...@illusion-
factory.dewrote:
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.

Oct 22 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ken | last post by:
Please pardon my ignorance regarding this question, I'm new to Python. I'm running Python 2.2.3 (win32) with the latest download of Python MegaWidgets 1.1. I'm attempting to run the demos but...
2
by: Raj Batra | last post by:
Hi, I've created a dll that you can import into python. The function calls an ostringstream class. Calling this function repeatedly in python will cause a Microsoft Visual C++ Debug Library...
3
by: Anand | last post by:
I have a unexpected issue with python modules (well i kind of know why, but i am trying to find if there is a way around) Intro: I am allowing an external application to actually run python...
5
by: Andrew | last post by:
Hi I just started learning wxPython I wanted to know how I could do this in wxPython self.listbox.delete(0, END) for item in self.results: self.listbox.insert(END, item)
10
by: John Underwood | last post by:
Can I use python23_d and python23 to develop an extension for a commercial application uses python22.dll? (Providing that I do not use any new features found only in 2.3.) I would bulld version...
5
by: Griff | last post by:
Test program: =============================================================== t = 5.8 interval = 2.0 while t < 6.1: print "%s mod %s = %s " % (t, interval, t % interval ) t += 0.1...
52
by: Dick Moores | last post by:
I need to figure out how to compute pi to base 12, to as many digits as possible. I found this reference, <http://mathworld.wolfram.com/Base.html>, but I really don't understand it well enough....
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.