problems with in 2.3.2 developed modules used with 2.2.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raaijmakers, Vincent (IndSys,GE Interlogix)

    problems with in 2.3.2 developed modules used with 2.2.2

    Sorry for the long header of this mail ;-)

    Has anyone experienced modules developed in 2.3.2 (using IDLE and PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it can not see classes from your .py file, so an import fails?

    It almost likes that in my case 2.2.2 doesn't like the file format generated by IDLE or PythonWin in 2.3.2.

    Does someone know if this is a known problem?

    Vincent

  • Kevin Cazabon

    #2
    Re: problems with in 2.3.2 developed modules used with 2.2.2

    Try deleting the .pyc version of the file... maybe 2.2.2 doesn't
    realize that the magic number is wrong and that it should recompile
    from the .py source.

    Kevin.


    "Raaijmaker s, Vincent (IndSys, GE Interlogix)" <Vincent.Raaijm akers@ge.com> wrote in message news:<mailman.1 79.1066413876.2 192.python-list@python.org >...[color=blue]
    > Sorry for the long header of this mail ;-)
    >
    > Has anyone experienced modules developed in 2.3.2 (using IDLE and
    > PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it
    > can not see classes from your .py file, so an import fails?
    >
    > It almost likes that in my case 2.2.2 doesn't like the file format
    > generated by IDLE or PythonWin in 2.3.2.
    >
    > Does someone know if this is a known problem?
    >
    > Vincent[/color]

    Comment

    • John Roth

      #3
      Re: problems with in 2.3.2 developed modules used with 2.2.2


      "Raaijmaker s, Vincent (IndSys,GE Interlogix)" <Vincent.Raaijm akers@ge.com>
      wrote in message news:mailman.17 9.1066413876.21 92.python-list@python.org ...
      Sorry for the long header of this mail ;-)

      Has anyone experienced modules developed in 2.3.2 (using IDLE and PythonWin
      as IDE) don't work under 2.2.2.... I mean basic stuff like it can not see
      classes from your .py file, so an import fails?

      It almost likes that in my case 2.2.2 doesn't like the file format generated
      by IDLE or PythonWin in 2.3.2.

      Does someone know if this is a known problem?

      [Response by John Roth]

      1. Have you checked the bug tracker?

      2. Check the line endings in the .py file. This is a wild guess,
      but 2.2 might not be properly recognizing line endings that
      2.3 recognizes. PEP 278 added universal newline support
      to Python, and it's being used for import and exec(), so
      modules that 2.3 finds readable might not be readable by
      2.2

      John Roth

      Vincent


      Comment

      • Michael Hudson

        #4
        Re: problems with in 2.3.2 developed modules used with 2.2.2

        kevin@cazabon.c om (Kevin Cazabon) writes:
        [color=blue]
        > Try deleting the .pyc version of the file... maybe 2.2.2 doesn't
        > realize that the magic number is wrong and that it should recompile
        > from the .py source.[/color]

        It most certainly should.

        Cheers,
        mwh

        --
        I also fondly recall Paris because that's where I learned to
        debug Zetalisp while drunk. -- Olin Shivers

        Comment

        Working...