kolypto/py-mailem

Syntax error during installation

Closed this issue · 2 comments

Hello,

I installed through setup.py, and getting a syntax error as follows:

running install
running bdist_egg
running egg_info
creating mailem.egg-info
writing requirements to mailem.egg-info/requires.txt
writing mailem.egg-info/PKG-INFO
writing top-level names to mailem.egg-info/top_level.txt
writing dependency_links to mailem.egg-info/dependency_links.txt
writing manifest file 'mailem.egg-info/SOURCES.txt'
reading manifest file 'mailem.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mailem.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/mailem
copying mailem/postman.py -> build/lib/mailem
copying mailem/message.py -> build/lib/mailem
copying mailem/attachment.py -> build/lib/mailem
copying mailem/__init__.py -> build/lib/mailem
copying mailem/util.py -> build/lib/mailem
creating build/lib/mailem/connection
copying mailem/connection/base.py -> build/lib/mailem/connection
copying mailem/connection/smtp.py -> build/lib/mailem/connection
copying mailem/connection/lo.py -> build/lib/mailem/connection
copying mailem/connection/__init__.py -> build/lib/mailem/connection
creating build/lib/mailem/template
copying mailem/template/__init__.py -> build/lib/mailem/template
copying mailem/template/renderer.py -> build/lib/mailem/template
copying mailem/template/registry.py -> build/lib/mailem/template
copying mailem/template/template.py -> build/lib/mailem/template
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mailem
copying build/lib/mailem/postman.py -> build/bdist.linux-x86_64/egg/mailem
creating build/bdist.linux-x86_64/egg/mailem/connection
copying build/lib/mailem/connection/base.py -> build/bdist.linux-x86_64/egg/mailem/connection
copying build/lib/mailem/connection/smtp.py -> build/bdist.linux-x86_64/egg/mailem/connection
copying build/lib/mailem/connection/lo.py -> build/bdist.linux-x86_64/egg/mailem/connection
copying build/lib/mailem/connection/__init__.py -> build/bdist.linux-x86_64/egg/mailem/connection
copying build/lib/mailem/message.py -> build/bdist.linux-x86_64/egg/mailem
copying build/lib/mailem/attachment.py -> build/bdist.linux-x86_64/egg/mailem
copying build/lib/mailem/__init__.py -> build/bdist.linux-x86_64/egg/mailem
copying build/lib/mailem/util.py -> build/bdist.linux-x86_64/egg/mailem
creating build/bdist.linux-x86_64/egg/mailem/template
copying build/lib/mailem/template/__init__.py -> build/bdist.linux-x86_64/egg/mailem/template
copying build/lib/mailem/template/renderer.py -> build/bdist.linux-x86_64/egg/mailem/template
copying build/lib/mailem/template/registry.py -> build/bdist.linux-x86_64/egg/mailem/template
copying build/lib/mailem/template/template.py -> build/bdist.linux-x86_64/egg/mailem/template
byte-compiling build/bdist.linux-x86_64/egg/mailem/postman.py to postman.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/connection/base.py to base.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/connection/smtp.py to smtp.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/connection/lo.py to lo.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/connection/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/message.py to message.pyc
**SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/mailem/message.py', 106, 15, '            for key, addresses in (\n'))**

byte-compiling build/bdist.linux-x86_64/egg/mailem/attachment.py to attachment.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/util.py to util.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/template/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/template/renderer.py to renderer.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/template/registry.py to registry.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailem/template/template.py to template.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying mailem.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailem.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailem.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailem.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailem.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/mailem-0.0.3_1-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing mailem-0.0.3_1-py2.6.egg
creating /usr/lib/python2.6/site-packages/mailem-0.0.3_1-py2.6.egg
Extracting mailem-0.0.3_1-py2.6.egg to /usr/lib/python2.6/site-packages
**SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/mailem-0.0.3_1-py2.6.egg/mailem/message.py', 106, 15, '            for key, addresses in (\n'))**

Adding mailem 0.0.3-1 to easy-install.pth file

Installed /usr/lib/python2.6/site-packages/mailem-0.0.3_1-py2.6.egg
Processing dependencies for mailem==0.0.3-1
Finished processing dependencies for mailem==0.0.3-1

Any thoughts?

Apologies, seems the issue is with my Python 2.6.
Is it possible to provide support for Python 2.6?

Duplicate #2