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

C

Chris

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
 
?

=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?=

Chris said:
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
 
C

Chris

I very much doubt that, with as little information you gave us.


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-File-NFB-0.01/lib/Nokia/File/NFB.pm
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top