473,326 Members | 2,588 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,326 software developers and data experts.

FCNTL module deprecation warning

(I did try to google for an answer to this, but couldn't find anything,
although plenty of instances of the warning).

I don't understand this warning:
import fcntl C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
DeprecationWarning)


It seems to be saying that I shouldn't use "import FCNTL" (which gives
the same warning), but "import fcntl", but that's what I _am_ doing.

(I don't actually even import fnctl, but httplib does, and causes this
all over the place.

Any light shedding would be appreciated.

=Tony Meyer

Jul 18 '05 #1
2 2506
Meyer, Tony enlightened us with:
C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the
FCNTL module is deprecated; please use fcntl
Seems you're using windoze.
It seems to be saying that I shouldn't use "import FCNTL" (which gives
the same warning), but "import fcntl", but that's what I _am_ doing.


Windoze has a case insensitive filesystem, and thus it can't see the
difference between FCNTL and fcntl. Try removing the depricated FCNTL
from your harddisk, or rename it to FCNTL-dep.py.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Jul 18 '05 #2
Sybren Stuvel wrote:

Meyer, Tony enlightened us with:
C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the
FCNTL module is deprecated; please use fcntl


Seems you're using windoze.
It seems to be saying that I shouldn't use "import FCNTL" (which gives
the same warning), but "import fcntl", but that's what I _am_ doing.


Windoze has a case insensitive filesystem, and thus it can't see the
difference between FCNTL and fcntl. Try removing the depricated FCNTL
from your harddisk, or rename it to FCNTL-dep.py.


And check for any .pyc files that might be involved, like FCNTL.pyc,
since they might be confusing things even more...
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pierre Rouleau | last post by:
Hi all! I am using Python 2.3.1 on Win32 (NT, 2000). Whenever a file imports the standard tempfile module, Python 2.3.1 issues the following warning: C:\Python23\lib\fcntl.py:7:...
0
by: Ryan Grow | last post by:
Hi, I'm trying to use fcntl to set an existing file descriptor to be nonblocking. This contrived example exhibits the behavior of python that is preventing me from doing this: import os,...
3
by: Rob McCrea | last post by:
Hi all, On windows98SE, running Python 2.3.4 (#53, May 25 2004, 21:17:02) on win32, the built-in help() function gives me a deprecation warning when used on my docstrings. just help() start...
4
by: Omid Fatemi | last post by:
I followed discussion in the group about this problem: ImportError: No module named fcntl I found out there are two modules: FCNTL fcntl the first one is obsolete and shouldn't be used. But...
185
by: Martin Jørgensen | last post by:
Hi, Consider: ------------ char stringinput ..bla. bla. bla. do {
5
by: marcello | last post by:
Hello I need to do this: 1 opening a file for writing/appending 2 to lock the file as for writing (i mean: the program that lock can keep writing, all others programs can't ) 3 wtite and...
1
by: psreddy71 | last post by:
i am trying to solve deprecation warning problem from past days.can any body help me please ? i am getting deprecation warning at method .can any body compile this program under jdk1.5 and...
9
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I'm having a number of problems with the fcntl module. First off, my system info: Mac OS X Darwin igskcicglthearn.cr.usgs.gov 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007;...
2
by: xucs007 | last post by:
I ran following 2 programs (lock1, lock2) at almost same time, to write either "123456", or "222" to file "aaa" at the same time. But I often just got "222456" in "aaa" . Is this a bug of python...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.