noclear2000 Apprentice
Joined: 21 Jun 2006 Posts: 153 Location: Germany
|
Posted: Wed Mar 06, 2013 11:04 am Post subject: caffeine (software) not starting - python problem |
|
|
hi
I want to install caffeine 2.4.1 (latest) https://launchpad.net/caffeine.
Found it in overlay "ROKO__". Merged it.
Upon start I get:
Code: |
[~]$ caffeine
Traceback (most recent call last):
File "/usr/bin/caffeine", line 40, in <module>
import caffeine
File "/usr/lib64/python3.2/site-packages/caffeine/__init__.py", line 150, in <module>
import __builtin__
ImportError: No module named __builtin__
|
It is using python 3.2:
Code: |
[~]$ head -n1 $(which caffeine)
#!/usr/bin/python3.2
|
I read __builtin__ was rename to "builtins" once.
The code doing the import looks like this:
Code: | # register the gettext function for the whole interpreter as "_"
import __builtin__
__builtin__._ = gettext.gettext
|
Is there anyone out there who knows python and/or has any suggestions? Thanks!
Cheers |
|