RE: python 2.3.1 issues DeprecationWarning for FCNTL when importing tempfile

Discussion in 'Python' started by Tony Meyer, Oct 6, 2003.

  1. Tony Meyer

    Tony Meyer Guest

    [Pierre Rouleau]
    > Would you remember what version of the Installer was doing that? I
    > should probably report that to Gordon McMillan if i could reproduce
    > it.


    [Tim Peters]
    > Sorry, I have only the vaguest recollection of this. I can't
    > even say whether Gordon's installer-builder specifically was
    > implicated in this aged and feeble memory. If you can
    > remember what you did a few days ago, though, you could try
    > to provoke it again.


    I think the incident that Tim is remembering is when I asked a very similar
    question to this a little while back. Mark Hammond also came across this
    behaviour around the same time. It's definitely the McMillan software that
    does it. If you want details, they'd definitely be in the recent (last
    couple of months) archives here (a google for "Meyer fnctl Peters" would
    probably find it), and also in the spambayes archives (google for "fnctl
    spambayes site:mail.python.org").

    =Tony Meyer
    Tony Meyer, Oct 6, 2003
    #1
    1. Advertising

  2. Re: python 2.3.1 issues DeprecationWarning for FCNTL when importingtempfile


    > [Pierre Rouleau]
    >
    >>Would you remember what version of the Installer was doing that? I
    >>should probably report that to Gordon McMillan if i could reproduce
    >>it.

    >
    >
    > [Tim Peters]
    >
    >>Sorry, I have only the vaguest recollection of this. I can't
    >>even say whether Gordon's installer-builder specifically was
    >>implicated in this aged and feeble memory. If you can
    >>remember what you did a few days ago, though, you could try
    >>to provoke it again.

    >
    >
    > I think the incident that Tim is remembering is when I asked a very similar
    > question to this a little while back. Mark Hammond also came across this
    > behaviour around the same time. It's definitely the McMillan software that
    > does it. If you want details, they'd definitely be in the recent (last
    > couple of months) archives here (a google for "Meyer fnctl Peters" would
    > probably find it), and also in the spambayes archives (google for "fnctl
    > spambayes site:mail.python.org").
    >
    > =Tony Meyer
    >
    >

    Thanks Tony.

    I reported the problem to Gordon McMillan (via the bugTRacker on his
    site). The fcntl.pyc re-appeared on one of the systems I use (Win32 XP)
    when I got the latest wxPython and ran the Installer on a simple 2-line
    python program.

    The creation of fcntl.pyc is not easy to reproduce. After noticing the
    file presence I was not able to reproduce the creation of the file
    again. I'll try later tonight and will update this thread if i find
    something new.

    Pierre
    Pierre Rouleau, Oct 6, 2003
    #2
    1. Advertising

  3. Tony Meyer

    David Bolen Guest

    Pierre Rouleau <> writes:

    > The creation of fcntl.pyc is not easy to reproduce. After noticing
    > the file presence I was not able to reproduce the creation of the file
    > again. I'll try later tonight and will update this thread if i find
    > something new.


    Just make a dummy module that directly imports fcntl (or even
    conditionally as if it were a module that was supposed to work under
    Windows or Unix), aka:

    try:
    import fcntl
    except:
    pass

    And then run Installer's Makespec.py and Build.py on that - you'll
    have your fcntl.pyc.

    The trick is then figuring out which of your various projects may have
    directly or indirectly referenced fcntl somewhere so that Installer
    found it when doing its dependency checking. Probably not worth it
    though :)

    I think that fixing this either means that Installer needs to better
    track case of identified import files during dependency checking, or
    that the py_compile module needs to double check the case of files it
    is asked to compile when generating default output names.

    -- David
    David Bolen, Oct 6, 2003
    #3
  4. Re: python 2.3.1 issues DeprecationWarning for FCNTL when importingtempfile

    David Bolen wrote:

    > Pierre Rouleau <> writes:
    >
    >
    >>The creation of fcntl.pyc is not easy to reproduce. After noticing
    >>the file presence I was not able to reproduce the creation of the file
    >>again. I'll try later tonight and will update this thread if i find
    >>something new.

    >
    >
    > Just make a dummy module that directly imports fcntl (or even
    > conditionally as if it were a module that was supposed to work under
    > Windows or Unix), aka:
    >
    > try:
    > import fcntl
    > except:
    > pass
    >
    > And then run Installer's Makespec.py and Build.py on that - you'll
    > have your fcntl.pyc.


    Confirmed!
    >
    > The trick is then figuring out which of your various projects may have
    > directly or indirectly referenced fcntl somewhere so that Installer
    > found it when doing its dependency checking. Probably not worth it
    > though :)
    >
    > I think that fixing this either means that Installer needs to better
    > track case of identified import files during dependency checking, or
    > that the py_compile module needs to double check the case of files it
    > is asked to compile when generating default output names.


    I have reported the bug in Gordon McMillan Bug Tracker.
    Thanks to all!

    Pierre
    Pierre Rouleau, Oct 8, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pierre Rouleau
    Replies:
    7
    Views:
    361
    David Bolen
    Oct 6, 2003
  2. Tim Peters
    Replies:
    2
    Views:
    390
    Pierre Rouleau
    Oct 3, 2003
  3. Tim Peters
    Replies:
    1
    Views:
    327
    Pierre Rouleau
    Oct 3, 2003
  4. Omid Fatemi

    fcntl and FCNTL

    Omid Fatemi, Oct 30, 2004, in forum: Python
    Replies:
    4
    Views:
    6,827
    Steve Holden
    Nov 1, 2004
  5. Mitko Haralanov

    Invalid argument with fcntl.fcntl

    Mitko Haralanov, Jun 6, 2007, in forum: Python
    Replies:
    0
    Views:
    534
    Mitko Haralanov
    Jun 6, 2007
Loading...

Share This Page