Using python22.dll with Python 2.5?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Schneider

    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.d ll not compatible
    with the current Python version."

    Has anybody an idea how to solve this?

    Thanks for your ideas.
    Best regards,
    Martin
  • Diez B. Roggisch

    #2
    Re: Using python22.dll with Python 2.5?

    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.d ll 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

    Comment

    • Robert Kern

      #3
      Re: Using python22.dll with Python 2.5?

      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.d ll 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.

      Numerical Python /Old Numeric files. Browse /Old Numeric files for Numerical Python, A package for scientific computing with Python


      --
      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

      Comment

      • John Machin

        #4
        Re: Using python22.dll with Python 2.5?

        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.d ll 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.

        Comment

        Working...