Public bug reported:

Binary package hint: python2.5

When you use shutil.copyfileobj in python in ubuntu gutsy, it will fail
and return an error.

Here is the script I used:
#!/usr/bin/python
import shutil
shutil.copyfileobj('/dev/zero','test','1024')

It returns this error:
[EMAIL PROTECTED]:~/Programming/xbyte$ ./xbyte 
Traceback (most recent call last):
  File "./xbyte", line 3, in <module>
    shutil.copyfileobj('/dev/zero','test','1024')
  File "/usr/lib/python2.5/shutil.py", line 21, in copyfileobj
    buf = fsrc.read(length)
AttributeError: 'str' object has no attribute 'read'
[EMAIL PROTECTED]:~/Programming/xbyte$

** Affects: python2.5 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
shutil in python error
https://bugs.launchpad.net/bugs/120690
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to