スクリプト内から HTTP POST クエリを使用してファイルをアップロードできるように、Chris Atlee の python Poster ライブラリをインストールしようとしています。
Python 2.3 で と入力すると# python setup.py install
、次のエラーが表示されます。>>> import poster
インストールは続行されますが、後でできません。
byte-compiling build/bdist.linux-x86_64/egg/poster/encode.py to encode.pyc
File "build/bdist.linux-x86_64/egg/poster/encode.py", line 112
@classmethod
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/poster/streaminghttp.py to streaminghttp.pyc
File "build/bdist.linux-x86_64/egg/poster/streaminghttp.py", line 114
newheaders = dict((k,v) for k,v in req.headers.items()
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/poster/__init__.py to __init__.pyc
ポインタはありますか?