4

I have a sort of xml like file here: https://github.com/alvations/pywsd/blob/master/pywsd/data/semcor3.0_naf/brown1/br-e24.naf

And when I tried to read it as below, I got an IOError:

>>> import io
>>> infile = io.open('pywsd/data/semcor3.0_naf/brown1/br-e24.naf', 'r', encoding='utf8')
>>> infile.read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error

What does IOError: [Errono5] mean?

Has the error tell me that something is wrong in how I read the file or something wrong with the file?

How do I resolve the error?

3
  • Most likely because I see a few google results with the same question. (Not downvoting, but considering it) Commented Nov 7, 2014 at 15:57
  • but not answer to this problem. I've tried googling too. Commented Nov 7, 2014 at 15:59
  • Unfortunately this question falls under the "why isn't my code working" category, so that also might be why. Try improving your question with what you've done to debug, links to questions you've cited, etc Commented Nov 7, 2014 at 16:02

2 Answers 2

2

man errno says errno 5 is EIO: Input/output error (POSIX.1).

Pretty generic and the same you get in your exception.

This is as far as this can be explored from the information provided.

Sign up to request clarification or add additional context in comments.

2 Comments

I've tried it on another machine and it seems to be a hardware problem. It was fine on another machine =(
You can double check reading the file with something else like cat.
2

I had this problem at university when I exceeded my quota.

You can check your quota with

quota -s

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.