Seite 1 von 1

EOFError

Verfasst: Mittwoch 22. Oktober 2008, 18:19
von nemomuk
Hallo,

ich versuche gerade mit Python eine PDF Datei zu generieren und zwar mit PISA.

Es hat anfangs wunderbar funktioniert, nur bekomme ich jetzt leider einen EOFError:

Code: Alles auswählen

Traceback (most recent call last):
  File "C:\Dokumente und Einstellungen\Johannes\Desktop\pdf\test.py", line 2, in <module>
    import ho.pisa as pisa
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\ho\pisa\__init__.py", line 16, in <module>
    from sx.pisa3.pisa import *
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\pisa3\__init__.py", line 28, in <module>
    from pisa import *
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\pisa3\pisa.py", line 21, in <module>
    from pisa_document import *
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\pisa3\pisa_document.py", line 11, in <module>
    from pisa_context import pisaContext
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\pisa3\pisa_context.py", line 15, in <module>
    import pisa_parser
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\pisa3\pisa_parser.py", line 28, in <module>
    import sx.w3c.css as css
  File "c:\python25\lib\site-packages\pisa-3.0.27-py2.5.egg\sx\w3c\css.py", line 40, in <module>
    import sets
EOFError: EOF read where object expected
Ich kann mit dieser Fehlermeldung absolut nichts anfangen - Google konnte leider auch nicht weiterhelfen.

Was könnte das sein?

Danke!
MfG

Verfasst: Mittwoch 22. Oktober 2008, 20:57
von nemomuk
Problem gelöst (was auch immer das damit zu tun hat...):
Letzte Leerzeile in der Datei site-packages/sets.py löschen...