byte compile fails on python 2.6.6
vkorpolu opened this issue · 0 comments
vkorpolu commented
When I tried to build rpm, I get the below error.
running install_scripts
writing list of installed files to 'INSTALLED_FILES'
- /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/h4ci1/python-timber/build/bdist.linux-x86_64/rpm/BUILD/python-timber-2.1.0
find: `debug': No such file or directory - /usr/lib/rpm/check-buildroot
- /usr/lib/rpm/redhat/brp-compress
- /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
- /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
- /usr/lib/rpm/brp-python-bytecompile /usr/bin/python
Bytecompiling .py files below /home/h4ci1/python-timber/build/bdist.linux-x86_64/rpm/BUILDROOT/python-timber-2.1.0-1_tet.el6.x86_64/usr/lib/python2.6 using /usr/bin/python2.6
Compiling /home/h4ci1/python-timber/build/bdist.linux-x86_64/rpm/BUILDROOT/python-timber-2.1.0-1_tet.el6.x86_64/usr/lib/python2.6/site-packages/timber/frame.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/timber/frame.py', 43, 15, " 'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename',\n"))
Compiling /home/h4ci1/python-timber/build/bdist.linux-x86_64/rpm/BUILDROOT/python-timber-2.1.0-1_tet.el6.x86_64/usr/lib/python2.6/site-packages/timber/frame.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/timber/frame.py', 43, 15, " 'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename',\n"))
- /usr/lib/rpm/redhat/brp-python-hardlink
- /usr/lib/rpm/redhat/brp-java-repack-jars