IOError: [Errno 28] No space left on device

hong zhang henryzhang62 at yahoo.com
Tue Nov 17 20:40:05 EST 2009



--- On Tue, 11/17/09, Lie Ryan <lie.1296 at gmail.com> wrote:

> From: Lie Ryan <lie.1296 at gmail.com>
> Subject: Re: IOError: [Errno 28] No space left on device
> To: python-list at python.org
> Date: Tuesday, November 17, 2009, 6:59 PM
> 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?
I have plenty space see:
$ df -l
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             74027808   4910016  65357380   7% /

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


> -- http://mail.python.org/mailman/listinfo/python-list
> 


      



More information about the Python-list mailing list