5 ms·
Sigh. Well, no joy on the mac, despite the presumed promise of platform-neutral Python. Python 2.5.1: line 8: !DOCTYPE: No such file or directory line 9: syn
by sabat 17y ago
Sigh. Well, no joy on the mac, despite the presumed promise of platform-neutral Python.
Python 2.5.1:
line 8: !DOCTYPE: No such file or directory
line 9: syntax error near unexpected token `newline'
line 9: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
Python 3.0:
File "pdfmunge.py", line 8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
^
SyntaxError: invalid syntax
- scott_s 17y agoAre you making a joke, or are you being serious? If you're being serious, then it looks like you somehow captured an HTML page instead of the Python program.
- sabat 17y agoNo joke, just overtired. Wow, I can't believe I did that.
- felixc 17y agoAs another commenter pointed out, it looks like what you've got there is a website, instead of the actual script. A direct link to the file you need is here: http://cloud.github.com/downloads/felixc/pdfmunge/pdfmunge.py http://cloud.github.com/downloads/felixc/pdfmunge/pdfmunge.p...