f = open('/home/ada/dictionary.txt', 'r')
string = f.readline()
f.close()
Traceback (most recent call last):
File "/home/ada/inverter.py", line 172, in <module>
f = open('/home/ada/dictionary.txt', 'r')
File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
отключить PIL нельзя, используется в другой части программы (если отключить, все работает нормально)
как открыть текст?