By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

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

P: n/a
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: DeprecationWarning: The posixfile
module is obsolete and will disappear in the future
DeprecationWarning)

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
Nov 4 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Chris wrote:
Wonder if anyone can help me?
I very much doubt that, with as little information you gave us.
I am trying to run a perl script but I keep getting this error:

/usr/lib/python2.4/posixfile.py:59: DeprecationWarning: The posixfile
module is obsolete and will disappear in the future
DeprecationWarning)
It's very strange that you get a Python error when running a Perl
script.
Any ideas on why it's failing on that python module?


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
Nov 4 '05 #2

P: n/a
In article <43***********************@news.freenet.de>,
ma****@v.loewis.de says...
Chris wrote:
Wonder if anyone can help me?


I very much doubt that, with as little information you gave us.
I am trying to run a perl script but I keep getting this error:

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


It's very strange that you get a Python error when running a Perl
script.


So I thought ;)

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

http://search.cpan.org/~rprice/Nokia...ia/File/NFB.pm
Any ideas on why it's failing on that python module?


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.


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
Nov 5 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.