Re: IOError: [Errno 28] No space left on device

Discussion in 'Python' started by Diez B. Roggisch, Nov 18, 2009.

  1. hong zhang wrote:

    >
    >
    > --- On Wed, 11/18/09, Grant Edwards <> wrote:
    >
    >> From: Grant Edwards <>
    >> Subject: Re: IOError: [Errno 28] No space left on device
    >> To:
    >> Date: Wednesday, November 18, 2009, 9:22 AM
    >> On 2009-11-18, hong zhang <>
    >> wrote:
    >>
    >> >> Apparently the harddisk where you stored the file

    >> is full?
    >>
    >> It's not a real file, and takes up no space.
    >>
    >> > I have plenty space see:
    >> > $ df -l
    >> > Filesystem

    >> 1K-blocks      Used
    >> Available Use% Mounted on
    >> > /dev/sda1

    >> 74027808   4910016
    >> 65357380   7% /
    >>
    >> That doesn't matter.  /sys doesn't contain real
    >> files.  It's an
    >> API to access kernel internals.
    >>
    >> > but following is good.
    >> >
    >> > cont_tx = 1
    >> > for i in

    >> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
    >> >with open(i, 'w') as f:
    >> >print >>f,

    >> cont_tx
    >>
    >> Well, if that works, then what's your problem?

    >
    > But error comes from following, above is good. That is point here.
    >
    > def do_cont_tx( is_start):
    > global cont_tx_started, stdscr
    > if is_start == START and not cont_tx_started:
    > cont_tx = 1
    > for i in
    > glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
    > with open(i, 'w') as f: print >>f, cont_tx --


    "cont_x --" doesn't work. So the above can't be the actual code.

    Diez
     
    Diez B. Roggisch, Nov 18, 2009
    #1
    1. Advertising

  2. On 2009-11-18, Diez B. Roggisch <> wrote:
    > hong zhang wrote:
    >>>
    >>> > but following is good.
    >>> >
    >>> > cont_tx = 1
    >>> > for i in
    >>> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
    >>> >with open(i, 'w') as f:
    >>> >print >>f,
    >>> cont_tx
    >>>
    >>> Well, if that works, then what's your problem?

    >>
    >> But error comes from following, above is good. That is point here.
    >>
    >> def do_cont_tx( is_start):
    >> global cont_tx_started, stdscr
    >> if is_start == START and not cont_tx_started:
    >> cont_tx = 1
    >> for i in
    >> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
    >> with open(i, 'w') as f: print >>f, cont_tx --

    >
    > "cont_x --" doesn't work. So the above can't be the actual code.


    You never want to post the actual code you're running. That
    would make it too easy for people to help.

    --
    Grant Edwards grante Yow! My mind is making
    at ashtrays in Dayton ...
    visi.com
     
    Grant Edwards, Nov 18, 2009
    #2
    1. Advertising

  3. Diez B. Roggisch

    Terry Reedy Guest

    hong zhang wrote:
    >
    >>> "cont_x --" doesn't work. So the above can't be the

    >> actual code.
    >>
    >> You never want to post the actual code you're
    >> running. That would make it too easy for people to help.


    > It is typo.


    To avoid typos, copy and paste, as has been suggested many times.
     
    Terry Reedy, Nov 19, 2009
    #3
    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. Jay Donnell

    IOError: [Errno 32] Broken pipe

    Jay Donnell, Jun 28, 2004, in forum: Python
    Replies:
    2
    Views:
    8,399
    Donn Cave
    Jun 29, 2004
  2. Nigel King

    IOError: [Errno 32] Broken pipe

    Nigel King, Sep 29, 2004, in forum: Python
    Replies:
    3
    Views:
    9,844
    Vinay Sajip
    Oct 11, 2004
  3. hong zhang
    Replies:
    2
    Views:
    882
    Tim Chase
    Nov 18, 2009
  4. hong zhang
    Replies:
    2
    Views:
    1,988
    Diez B. Roggisch
    Nov 18, 2009
  5. Kurtis Rainbolt-greene
    Replies:
    6
    Views:
    144
    Ilan Berci
    Oct 20, 2009
Loading...

Share This Page