Description of problem: If your environment's `python` is set to python3, the fpaste script won't work due to a syntax error. Version-Release number of selected component (if applicable): fpaste 0.3.7.3.3 How reproducible: always Steps to Reproduce: 1. Create a virtualenv using python3 (virtualenv -p python3) and activate it 2. echo "hi" | fpaste Actual results: $ echo "hi" | fpaste File "/usr/bin/fpaste", line 87 except ValueError, e: ^ SyntaxError: invalid syntax Expected results: It should work. Additional info: This was originally filed as https://fedorahosted.org/fpaste/ticket/16, but hasn't had a response in 6 months. There's a patch to change the shebang to explicitly reference "python2" which should fix the issue I additionally filed https://fedorahosted.org/fpaste/ticket/17 to port fpaste to python3 (which seems like a good idea in general given that it will be the default in F22).
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
I hadn't realised this. Are you sure that python refers to py3 in F22? I'm on F22 and mines set to /usr/bin/python which points to /usr/bin/python2. Fpaste works here, at least for the time being. I can begin working on the porting, including your patches, but I'm not sure if this can be done before F22 release. Cheers, Ankur
(In reply to Ankur Sinha (FranciscoD) from comment #2) > I hadn't realised this. Are you sure that python refers to py3 in F22? I'm > on F22 and mines set to /usr/bin/python which points to /usr/bin/python2. > Fpaste works here, at least for the time being. It does not. But if you use a virtualenv that is using Python 3, then "/usr/bin/env python" will use Python 3. The original plan was to have Python 3 be installed by default in F22 (using /usr/bin/python3), but I think that was bumped to F23.
A build for rawhide has been pushed with py3. I'll wait for a bit to see if folks running rawhide run into any issues before pushing updates for F23/F22. http://koji.fedoraproject.org/koji/buildinfo?buildID=668962
So in a Fedora minimal install with only python3 this doesn't work work with the current F-23 fpaste :-( $ dmesg | fpaste /usr/bin/env: python: No such file or directory $
Can confirm fpaste-0.3.8.0-1.fc24 works as expected on F-23 (dmesg | fpaste) on a python3 only system. Can we please get this pushed to F-23
Will push an update when I get back to work tomorrow. Cheers, Ankur
fpaste-0.3.8.0-1.fc23 has been submitted as an update to Fedora 23. https://bugzilla.redhat.com/show_bug.cgi?id=1177053
fpaste-0.3.8.0-1.fc22 has been submitted as an update to Fedora 22. https://bugzilla.redhat.com/show_bug.cgi?id=1177053
fpaste-0.3.8.0-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update fpaste'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-13891
fpaste-0.3.8.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update fpaste'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-13890
fpaste-0.3.8.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
fpaste-0.3.8.0-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
It now works in F22. Thanks! :)