Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > IOError: [Errno 28] No space left on device

Reply
Thread Tools

IOError: [Errno 28] No space left on device

 
 
hong zhang
Guest
Posts: n/a
 
      11-18-2009
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



 
Reply With Quote
 
 
 
 
Lie Ryan
Guest
Posts: n/a
 
      11-18-2009
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?
 
Reply With Quote
 
 
 
 
Tim Chase
Guest
Posts: n/a
 
      11-18-2009
>> 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






 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: IOError: [Errno 28] No space left on device Diez B. Roggisch Python 2 11-19-2009 06:11 AM
Re: IOError: [Errno 28] No space left on device hong zhang Python 2 11-18-2009 08:57 AM
Install Error: No space left on device - write (Errno::ENOSP Kurtis Rainbolt-greene Ruby 6 10-20-2009 03:40 PM
Space left on device sir_alex Python 1 01-16-2006 04:40 PM
Space left on device sir_alex Python 0 01-16-2006 03:52 PM



Advertisments