IOError: [Errno 28] No space left on device

Discussion in 'Python' started by hong zhang, Nov 18, 2009.

  1. hong zhang

    hong zhang Guest

    List,

    My python script has a strange error.

    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

    work perfectly.

    But following get error like:
    print >>f, cont_tx
    IOError: [Errno 28] No space left on device

    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

    Too many layers?
    Thanks for help.

    ---henry
    hong zhang, Nov 18, 2009
    #1
    1. Advertising

  2. hong zhang

    Lie Ryan Guest

    hong zhang wrote:
    > List,
    >
    > My python script has a strange error.
    >
    > 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
    >
    > work perfectly.
    >
    > But following get error like:
    > print >>f, cont_tx
    > IOError: [Errno 28] No space left on device
    >
    > 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
    >
    > Too many layers?
    > Thanks for help.


    Apparently the harddisk where you stored the file is full?
    Lie Ryan, Nov 18, 2009
    #2
    1. Advertising

  3. hong zhang

    Tim Chase Guest

    >> for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
    >> with open(i, 'w') as f:
    >> print >>f, cont_tx
    >>
    >> work perfectly.
    >>
    >> But following get error like:
    >> print >>f, cont_tx
    >> IOError: [Errno 28] No space left on device

    >
    > Apparently the harddisk where you stored the file is full?


    Likely a misinterpretation of the error. I'm guessing either one
    needs to be root to write to this [likely virtual] file, or a
    member of an associated group. It would help to have the output of

    bash$ whoami
    bash$ id

    and

    bash$ ls -lsF
    /sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx


    I'd be particularly interested in the group association and the
    permission bits.

    -tkc
    Tim Chase, Nov 18, 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,379
    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,820
    Vinay Sajip
    Oct 11, 2004
  3. hong zhang
    Replies:
    2
    Views:
    1,977
    Diez B. Roggisch
    Nov 18, 2009
  4. Diez B. Roggisch
    Replies:
    2
    Views:
    343
    Terry Reedy
    Nov 19, 2009
  5. Kurtis Rainbolt-greene
    Replies:
    6
    Views:
    137
    Ilan Berci
    Oct 20, 2009
Loading...

Share This Page