kasramp / UbuntuIndicatorWeather

Simple weather indicator for Ubuntu unity and Gnome 3
https://simpleweatherindicator.madadipouya.com/
GNU General Public License v3.0
89 stars 12 forks source link

ubuntu 16.10 applet don't start #19

Closed lodgnewt closed 7 years ago

lodgnewt commented 8 years ago

please fix your great indicator. thanks. indicator don't start on fresh install ubuntu 16.10

kasramp commented 7 years ago

To understand the problem clearly, run indicator-weather in your command line and copy/paste the output here, so I can know what's the exact problem you are facing. Thanks

andyturn commented 7 years ago

I am having an issue where the indicator will not start on ubuntu 16.10 as well. Below is the output you requested.

/usr/bin/indicator-weather:28: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded. from gi.repository import AppIndicator3 as appIndicator Traceback (most recent call last): File "/usr/bin/indicator-weather", line 143, in indicator = WeatherIndicator() File "/usr/bin/indicator-weather", line 62, in init self.configuration = Configuration() File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 29, in init self.ini_start_up = self.create_start_up_script_if_not_exist() File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 46, in create_start_up_script_if_not_exist return self.create_default_start_up_script_and_save_to_disk() File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 98, in create_default_start_up_script_and_save_to_disk self.save_ini_start_up_script_to_disk(config) File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 68, in save_ini_start_up_script_to_disk with open(self.start_up_file_name, 'w') as config_file: IOError: [Errno 2] No such file or directory: '/home/andyt/.config/autostart/indicator-weather.desktop'

kasramp commented 7 years ago

Thanks @andyturn for the log, I will checking the issue

kasramp commented 7 years ago

Fixed in 0.8.1

andyturn commented 7 years ago

i have reinstalled and this is the error i am receiving now when trying to run.

indicator-weather /usr/bin/indicator-weather:28: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded. from gi.repository import AppIndicator3 as appIndicator Traceback (most recent call last): File "/usr/bin/indicator-weather", line 144, in indicator = WeatherIndicator() File "/usr/bin/indicator-weather", line 63, in init self.configuration = Configuration() File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 29, in init self.ini_start_up = self.create_start_up_script_if_not_exist() File "/usr/lib/ubuntu-indicator-weather/configuration.py", line 49, in create_start_up_script_if_not_exist if exc.errno != errno.EEXIST: NameError: global name 'errno' is not defined

kasramp commented 7 years ago

Well that's very odd. @andyturn what version of Python are you using? What you can do for now is to edit /usr/lib/ubuntu-indicato-weather/configuration.py file and add this line on top of the file import errno, so at least we can get more details about the error. I think there would be still an error because from my understanding the startup file cannot be created on your machine, that's why an exception is raised, not sure what's the exact reason, maybe it's something related to permission. I hope adding that line provides more insight regarding the error so I can fix it more precisely. After modifying the code if you received another error message, please paste it here. I have checked on Ubuntu 16.10 but cannot reproduce the error 😞