Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
caffeine (software) not starting - python problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
noclear2000
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2006
Posts: 144
Location: Germany

PostPosted: Wed Mar 06, 2013 11:04 am    Post subject: caffeine (software) not starting - python problem Reply with quote

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
Back to top
View user's profile Send private message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Sat Feb 22, 2014 5:08 pm    Post subject: Reply with quote

Compile with python2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum