Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30538 - Freevo can't open since 1.9.0-8

Attached to Project: Community Packages
Opened by soul916 (soul916) - Wednesday, 04 July 2012, 13:49 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 05 July 2012, 19:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ronald van Haren (pressh)
Giovanni Scafora (giovanni)
Architecture i686
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Freevo can't open since 1.9.0-8, the program out put:

$ freevo
File "<string>", line 1
import freevo; print freevo.__path__[0]
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/bin/freevo", line 491, in <module>
python, freevo_python = get_python(1)
File "/usr/bin/freevo", line 218, in get_python
child.fromchild.close()
AttributeError: 'Popen' object has no attribute 'fromchild'

Additional info:
* package version(s)
1.9.0-8
* config and/or log files etc.

Steps to reproduce:
start freevo
This task depends upon

Closed by  Ronald van Haren (pressh)
Thursday, 05 July 2012, 19:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  -9
Comment by Ronald van Haren (pressh) - Thursday, 05 July 2012, 14:16 GMT
It's because of this change in the PKGBUILD

[code]
# fix executable for python 2.7
- sed -i "s|search = ('python', 'python2')|search = ('python2', 'python2.7')|" ${pkgdir}/usr/bin/freevo
+ sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \
+ $(find ${pkgdir} -regex ".*.py\|.*.recipe")
+ sed -i "s:python:python2:g" ${pkgdir}/usr/share/freevo/htdocs/downloadurl
[/code]

This causes the executable to reset the python version to use to /usr/bin/python instead of python2. I'll fix it tonight. If you're in a hurry, I guess that manually changing the "search = ('python', 'python2')" line in /usr/bin/freevo should do the trick (not tested).

@giovanni: please test to see if the program at least runs when you make changes, than line was there for a reason.

Loading...