-
-
Save robertmarsal/9feaa9150926efa4175a to your computer and use it in GitHub Desktop.
sudo apt-get install python-glade2 python-appindicator | |
git clone https://github.com/Kilian/f.lux-indicator-applet.git | |
cd f.lux-indicator-applet | |
chmod +x setup.py | |
sudo ./setup.py install | |
fluxgui |
On Ubuntu 15.04:
$ fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxcontroller.py", line 1, in
from fluxgui import xfluxcontroller
File "/usr/local/lib/python2.7/dist-packages/fluxgui/xfluxcontroller.py", line 1, in
import pexpect
ImportError: No module named pexpect
I got the same error as @sanchomuzax on ubuntu 15.04
@kodeine You need to install python-pexpect to resolve the issue @sanchomuzax had
sudo apt-get install python-pexpect
Didn't work for me on ubuntu gnome 15.04, said I was missing gconf
@Frozenfire92 you need to install python-gconf as well. Had the same two errors and it's working now.
sudo apt-get install python-gconf
Thanks :)
Works like a charm on Kubuntu 14.04 [need to install python-gconf as well as @LucNaterop mentioned above] !! thanks a lot 👍
worked here aswell. Thanks a lot 👍
Awesome! Worked for me with the 2 additional in packages mentioned by @lucnaterop and @ShirajG
This was the full process that I used:
sudo apt-get install python-glade2 python-appindicator python-pexpect python-gconf
cd ~/Downloads
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
Anyone upgraded from 15.04 to 15.10 and have this break? Any workarounds?
I'm on 14.04 and I have the same problem even after reinstalling python-pexpect
and python-gconf
I think it has to do with the fact that I have both python 2.6 and 2.7 installed.
Would you have any suggestions?
THANK YOU! Been trying to get f.lux working on my Xubuntu 14.04 setup for a week now, and this one finally worked. You, sir, deserve a few cookies.
THANK YOU! But I met this strage error message on my ThinkPad X220 laptop which runs Ubuntu 14.04 x64 on it:
...
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
Error: Please install xflux in the PATH
Critical error. Exiting.
...
I checked the xflux
path use which xflux
command and got this message: xflux not found
Then I type ls -l /usr/local/bin/xflux
found the xflux
program does not got the right privilege.
So I tried this sudo chmod +x /usr/local/bin/xflux
and everything is OK.
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type gint
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
Error: Please install xflux in the PATH
Critical error. Exiting.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 270, in <module>
app = FluxGUI()
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 30, in __init__
self.exit(1)
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 49, in exit
gtk.main_quit()
RuntimeError: called outside of a mainloop
I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?
I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?
sudo chmod 755 /usr/local/bin/xflux
@DmitrySandalov Thank you, started working! 👍
@DmitrySandalov thank you your answer worked for me.
I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:
fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in <module>
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in <module>
from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry
I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.
Thanks in advance for your support.
I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:
fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in
from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry
I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.
Thanks in advance for your support.
sudo apt-get install python-xdg
Thanks @ferstar works on Ubuntu 16.04 LTS. With mine it was the permissions issues
On Ubuntu 16.04 LTS I get this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxapp.py", line 3, in <module>
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxcontroller.py", line 1, in <module>
from fluxgui import xfluxcontroller
File "/usr/local/lib/python2.7/site-packages/fluxgui/xfluxcontroller.py", line 1, in <module>
import pexpect
ImportError: No module named pexpect
I've tried with the different solutions postes in this post but it is still not working...
@ferstar recommendation worked perfectly:
sudo chmod +x /usr/local/bin/xflux
I installed f.lux in Ubuntu14.04, using:
$ sudo add-apt-repository ppa:nathan-renniewaldock/flux
$ sudo apt-get update
$suod apt-get install fluxgui
and then, I started it by
$ fluxgui.
error came up as
"Traceback (most recent call last):
File "/usr/bin/fluxgui", line 17, in
from fluxgui.fluxapp import main
ImportError: cannot import name main"
Any advice to deal with it?
Just tested on Ubuntu 15.04 and it worked like a charm 👍