on a python3-system it is impossible to add screenlets from the screenlet-manager. Switching to python2 solves the problem.
Steps to Reproduce:
1. run eselect python set 2 # if No. 2 is a python3 interpreter
2. run screenlets-manager
3. try to add any screenlet
Most fail with "SyntaxError: invalid syntax" because of some "print" statement.
Not directly caus of this problem but connected:
If you look at line 866 of /usr/share/screenlets-manager/screenlets-manager.py (this is the creation of an auto-start screenlet) the EXEC is "python -u %s/%sScreenlet.py"
IMHO this line should say "python2 -u %s/%sScreenlet.py"
Created attachment 335902 [details, diff]
epatch for direct python calls
The attached patch fixes the problem for me by replacing all (well, all I could find anyway) direct calls to "python" by calls to "python2".
euscan reports that 0.1.5 is available. HOMEPAGE appears hard to access right now.
Created attachment 335922 [details, diff]
Would this do?
Oh, according to https://launchpad.net/screenlets version 0.1.6 is available now. :)
(In reply to comment #4)
Short answer: No :-)
Long answer: Kinda...
You did multiple thing in that patch, which don't work together...
"sed -i $(find src/ -type f) -e 's|exec python|&2|g;s|python -u|python2 -u|g' || die"
works nicely in the 0.1.2 ebuild, thanks for that.
But you also bumped.. and 0.1.5 seems to depend on dev-python/beautifulsoup-3.
After installing that, too I could start screenlets-manager, however all screenslets were gone...
Hmm. Seems like all screenlets now reside in [https://launchpad.net/indiv-screenlets]
So possibly adding the dependency to beautifulsoup is all that's missing. And a new ebuild for the individual-screenlets ;-)
Created attachment 336034 [details, diff]
The screenlets-0.1.6.ebuild.patch has the correct dependency. However, default screenlets are no longer part of the package.
Fixed in 0.1.6. Thanks for the patch. It was helpful in migrating to the -r1 eclasses.