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

Python-warnings polluting system logs #28

Closed khurshid-alam closed 7 years ago

khurshid-alam commented 7 years ago

Can you please fix these warnings?

/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.

It's annoying and polluting my syslog.

pywill commented 7 years ago

@khurshid-alam Do you have some capture of that issue in a picture? , maybe i could look it and make something to help you but i need to know what i am doing

pywill commented 7 years ago

@khurshid-alam @kasramp I have added this line to indicator-weather and it worked for me, try it by yourself: gi.require_version('AppIndicator3', '0.1') in line 28, after gi.require_version('Gtk', '3.0') in line 27 indicator-weather.txt

khurshid-alam commented 7 years ago

Thanks. Yes it works.

pywill commented 7 years ago

@khurshid-alam Ok, i am glad to help you from Cuba!!!!!! LOL!!!!!!!

pywill commented 7 years ago

@kasramp Hi, it is not my project but i really think that will be good if you add the line mentioned cause i can´t do it by myself. Thanks

kasramp commented 7 years ago

@pywill thanks for helping out for this issue, I have added the code. It's working great. Thanks @khurshid-alam for reporting it.