New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 warning when building/installing #41

jmcnamara opened this Issue Aug 26, 2013 · 0 comments


1 participant

jmcnamara commented Aug 26, 2013

The module was added in version 0.3.8 to allow backward compatibility with Python 2.5.

However, this module isn't Python 3 compatible and generates the following (harmless) error during build/installation:

$ sudo /usr/local/bin/python3.3 install
running install
running build
running build_py
copying xlsxwriter/ -> build/lib/xlsxwriter
running install_lib
copying build/lib/xlsxwriter/ -> /usr/local/lib/python3.3/site-packages/xlsxwriter
byte-compiling /usr/local/lib/python3.3/site-packages/xlsxwriter/ to compat_collections.cpython-33.pyc
  File "/usr/local/lib/python3.3/site-packages/xlsxwriter/", line 145
    print template
SyntaxError: invalid syntax

Installation should still complete and this error doesn't affect the installed version since the module is only used in Python 2.5.

Will fix in the next release.


@ghost ghost assigned jmcnamara Aug 26, 2013

jmcnamara added a commit that referenced this issue Aug 26, 2013

Fix for Python 3 installation warning.
Fix for harmless Python 3 installation warning in unused Python 2.5 module. Closes issue #41.

@jmcnamara jmcnamara closed this Aug 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment