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 compat_collections.py warning when building/installing #41

Closed
jmcnamara opened this Issue Aug 26, 2013 · 0 comments

Comments

1 participant
@jmcnamara
Owner

jmcnamara commented Aug 26, 2013

The compat_collections.py 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 setup.py install
running install
running build
running build_py
copying xlsxwriter/compat_collections.py -> build/lib/xlsxwriter
running install_lib
copying build/lib/xlsxwriter/compat_collections.py -> /usr/local/lib/python3.3/site-packages/xlsxwriter
byte-compiling /usr/local/lib/python3.3/site-packages/xlsxwriter/compat_collections.py to compat_collections.cpython-33.pyc
  File "/usr/local/lib/python3.3/site-packages/xlsxwriter/compat_collections.py", 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.

John

@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
compat_collections.py 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