shutil in python error
Bug #120690 reported by
Alec Wright
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.5 (Ubuntu) |
Invalid
|
Undecided
|
Matthias Klose |
Bug Description
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.
It returns this error:
alec@alecomp:
Traceback (most recent call last):
File "./xbyte", line 3, in <module>
shutil.
File "/usr/lib/
buf = fsrc.read(length)
AttributeError: 'str' object has no attribute 'read'
alec@alecomp:
To post a comment you must log in.
invalid, please see the documentation for the types of all parameters.