Version-Release number of selected component: hamster-time-tracker-1.04-5.fc23 Additional info: reporter: libreport-2.6.2 cmdline: python /usr/bin/hamster overview executable: /usr/bin/hamster kernel: 4.2.5-300.fc23.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: invalid syntax (hamster, line 165) File "/usr/bin/hamster", line 165 print "\n".join(formats) ^ SyntaxError: invalid syntax
Created attachment 1093671 [details] File: backtrace
Created attachment 1093672 [details] File: environ
Maybe we want to try the release candidate of v2.0 from upstream? https://github.com/projecthamster/hamster/releases/tag/v2.0-rc1 > type: Python3 Why Python3? I do not see any support for Python3 at upstream. Did you change your local settings for the default python interpreter?
Likely a Python3 venv is active. head /usr/bin/hamster #!/usr/bin/env python # - coding: utf-8 - I think it's a common Fedora practice to replace the env call with "/usr/bin/python".
Sorry, my fault, I switched over python3 by default (after updating to F23) because I thought it was the default interpreter for this version (https://fedoraproject.org/wiki/Changes/Python_3_as_Default).
(In reply to Francesco Frassinelli (frafra) from comment #5) > Sorry, my fault, I think the hamster package should be changed anyway because a venv is not guaranteed to have all required modules. > I switched over python3 by default (after updating to F23) > because I thought it was the default interpreter for this version > (https://fedoraproject.org/wiki/Changes/Python_3_as_Default). /usr/bin/python and "env python" should alway point to Python 2.x as recommended in PEP 0394 (also mentioned on the wiki page above) because just too many things break if you use Python 3 instead of Python 2.
@Maintainer, please fix this as suggested in comment #4. > %install […] > sed -i -e '/^#!\//, 1d' %{buildroot}%{_bindir}/hamster > sed -i -e '1i#!%{__python2}' %{buildroot}%{_bindir}/hamster https://fedoraproject.org/wiki/Packaging_tricks#Remove_shebang_from_files https://fedoraproject.org/wiki/Packaging_tricks#Add_shebang
hamster-time-tracker-2.0-0.1.rc1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-401ab10316
hamster-time-tracker-2.0-0.2.rc1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-01bd33e7e6
hamster-time-tracker-2.0-0.2.rc1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e7bfef7108
hamster-time-tracker-2.0-0.2.rc1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e7bfef7108
hamster-time-tracker-2.0-0.2.rc1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-01bd33e7e6
hamster-time-tracker-2.0-0.2.rc1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
hamster-time-tracker-2.0-0.2.rc1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.