473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

/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: 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
2 1436
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike S. | last post by:
Hello, Has anyone had success compiling the informixdb-1.3 module under python 2.2? It seems the absense of makefile.pre.in in python 2.2 causes the break under py2.2. Is there an easy way...
2
by: Jakub Moscicki | last post by:
Hello, A small problem: I get a signal during a system call (from xmlrpclib -> httplib) and an exception "IOError: Interrupted system call" is raised (this is system dependant, on other machine...
3
by: Adil Hasan | last post by:
Hello, I'm having problems trying to use ZSI to connect to a https url. I give the command and I get prompted for my X509 cert pass-phrase, but the program dies with an openssl error. Here's my...
1
by: chetan hs | last post by:
Hi, I have installed Red Hat Linux 9, and tried to install python2.3 on python2.2 but there was a library installation error, while doing "make install". I wanted to access BerkelyDB4.2 from...
0
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
2
by: venkatbo | last post by:
Hi all, I have python2.4 running on ppc-linux 2.6.17. I'm attempting to get a TurboGears 0.9a9 (using CherryPy 2.2.1) based app running on it. During the TG-app startup sequence, it reaches...
15
by: Christopher Taylor | last post by:
RHEL comes with Python2.3 installed. A program I need to install requires Python2.4 So I got Python2.4 from source and compiled it up. I configured it with --prefix=/usr --exec-prefix=/usr...
6
by: samn | last post by:
i compiled and installed the release version of python 2.5 for linux to a directory accessible to 2 computers, configured with --prefix=/usr/arch (which is accessible to both machines). the...
2
by: Pradnyesh Sawant | last post by:
Hello, I have a code snippet which does 'import xmltramp' to parse an xml file received over the network. Also, I have 2 instances of python, namely python2.4 and python2.5 on my box. The...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.