/usr/lib/python2.4/posixfile.py error

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

    #1

    /usr/lib/python2.4/posixfile.py error

    Hi,

    Wonder if anyone can help me?

    I am trying to run a perl script but I keep getting this error:

    /usr/lib/python2.4/posixfile.py:59 : DeprecationWarn ing: The posixfile
    module is obsolete and will disappear in the future
    DeprecationWarn ing)

    I am running Ubuntu Hoary 5.10. I'll try the same script on my gentoo
    box at work tommorrow, but really would like to run this script asap.

    Any ideas on why it's failing on that python module?

    Any ideas greatfully received,

    Chris
  • Martin v. Löwis

    #2
    Re: /usr/lib/python2.4/posixfile.py error

    Chris wrote:[color=blue]
    > Wonder if anyone can help me?[/color]

    I very much doubt that, with as little information you gave us.
    [color=blue]
    > I am trying to run a perl script but I keep getting this error:
    >
    > /usr/lib/python2.4/posixfile.py:59 : DeprecationWarn ing: The posixfile
    > module is obsolete and will disappear in the future
    > DeprecationWarn ing)[/color]

    It's very strange that you get a Python error when running a Perl
    script.
    [color=blue]
    > Any ideas on why it's failing on that python module?[/color]

    It's not failing. It's a warning, not an error. The warning is
    that the Python code you are running uses the posixfile module,
    and it should be rewritten to stop doing so, as the posixfile
    module will go away eventually.

    Regards,
    Martin

    Comment

    • Chris

      #3
      Re: /usr/lib/python2.4/posixfile.py error

      In article <436afbc2$0$142 00$9b622d9e@new s.freenet.de>,
      martin@v.loewis .de says...[color=blue]
      > Chris wrote:[color=green]
      > > Wonder if anyone can help me?[/color]
      >
      > I very much doubt that, with as little information you gave us.
      >[color=green]
      > > I am trying to run a perl script but I keep getting this error:
      > >
      > > /usr/lib/python2.4/posixfile.py:59 : DeprecationWarn ing: The posixfile
      > > module is obsolete and will disappear in the future
      > > DeprecationWarn ing)[/color]
      >
      > It's very strange that you get a Python error when running a Perl
      > script.[/color]

      So I thought ;)

      However, it's a perl script that invokes python.


      [color=blue][color=green]
      > > Any ideas on why it's failing on that python module?[/color]
      >
      > It's not failing. It's a warning, not an error. The warning is
      > that the Python code you are running uses the posixfile module,
      > and it should be rewritten to stop doing so, as the posixfile
      > module will go away eventually.
      >[/color]

      Ok, many thanks. I got it working in the end, appears that the nfb.py
      script requires the file it is processing to be in the same directory.
      Which is quite annoying, but at least I know how to sort it now.

      Many thanks for your quick reply and apologies for my late one :(

      Cheers,
      Chris

      Comment

      Working...