Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
My weather indicato nie działa na linux mint ulyana
#1
0
Witam wszystkich i wybaczcie mi ale jestem nowy na forum. Z linuksem trochę jestem obeznany ale z forum? Dzięki dedito trafiłem i mogę coś napisać. My weather indicator działał bez problemu na starszych wersjach minta a teraz mimo że instalowałem jak zawsze nie wyświetla wigetu i nie mogę ustawić lokalizacji. Nie można wpisać ręcznie a automatyczna lokalizacja nic nie daje.
Nie wiem jakie załączniki mam przesłać?

Moderowano:
Instalowano na podstawie https://www.debugpoint.com/2016/07/a-coo...inux-mint/
Odpowiedz
#2
0
Wrzuć jeszcze wynik inxi -Fxz zgodnie z zasadami https://forum.linuxmint.pl/showthread.php?tid=304
Pokaż też wynik apt-file list my-weather-indicator
Odpowiedz
#3
0
Napisz też w jaki sposób instalowałeś.
Dodając repozytorium "atareao"?


EDIT:
Terminal twierdzi, że:
Kod:
jw@MINT20:~$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7f7ac5d773a0>
#####################################################
System: Linux
Machine: x86_64
Node: MINT20
Release: 5.4.0-53-generic
Version: #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020
Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.29
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################

My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
****** Requesting timezone identificacion
** OWM **
757692 22.6962 51.219
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
Error 1 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.UbuntuGeoIP was not provided by any .service files
Error 2 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.Hostip was not provided by any .service files
******* Adquiring inv direction *******
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
    main()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
    MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 352, in load_preferences
    self.update_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 141, in update_weather
    self.update_menu(i)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 636, in update_menu
    location = geocodeapi.get_inv_direction(lat, lon)['city']
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
    aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Nie ma takiego pliku ani katalogu: '/var/crash/_opt_extras.ubuntu.com_my-weather-indicator_bin_my-weather-indicator.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
    main()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
    MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 352, in load_preferences
    self.update_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 141, in update_weather
    self.update_menu(i)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 636, in update_menu
    location = geocodeapi.get_inv_direction(lat, lon)['city']
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
    aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)
Odpowiedz
#4
0
Coś tam z geolokalizacją nie działa.
Macie poinstalowane paczki geoclue ?
Kod:
dpkg -l | grep -i geoclue
Odpowiedz
#5
0
Kod:
jw@MINT20:~$ dpkg -l | grep -i geoclue
ii  geoclue-2.0                                2.5.6-0ubuntu1                      amd64        geoinformation service
ii  libgeoclue-2-0:amd64                       2.5.6-0ubuntu1                      amd64        convenience library to interact with geoinformation service
Odpowiedz
#6
0
To by trzeba doinstalować geoclue-hostip i geoclue-ubuntu-geoip
Odpowiedz
#7
0
Jest pewien problem apt policy geoclue-hostip geoclue-ubuntu-geoip- null. Po prostu przechodzi do kolejnego wiersza.
Odpowiedz
#8
0
W pliku ~/.config/my-weather-indicator/my-weather-indicator.conf spróbujcie ustawić na false zmienną "first-time": false, u mnie po tym zabiegu wystartowało.
Odpowiedz
#9
0
(16-11-2020, 13:41)yahoob3 napisał(a): Napisz też w jaki sposób instalowałeś.
Dodając repozytorium "atareao"?


EDIT:
Terminal twierdzi, że:
Kod:
jw@MINT20:~$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7f7ac5d773a0>
#####################################################
System: Linux
Machine: x86_64
Node: MINT20
Release: 5.4.0-53-generic
Version: #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020
Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.29
My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################

My-Weather-Indicator version: 0.9.5-0extras20.04.09
#####################################################
****** Requesting timezone identificacion
** OWM **
757692 22.6962 51.219
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
Error 1 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.UbuntuGeoIP was not provided by any .service files
Error 2 org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.Hostip was not provided by any .service files
******* Adquiring inv direction *******
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
    main()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
    MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 352, in load_preferences
    self.update_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 141, in update_weather
    self.update_menu(i)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 636, in update_menu
    location = geocodeapi.get_inv_direction(lat, lon)['city']
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
    aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Nie ma takiego pliku ani katalogu: '/var/crash/_opt_extras.ubuntu.com_my-weather-indicator_bin_my-weather-indicator.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 36, in <module>
    main()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 956, in main
    MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 126, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 352, in load_preferences
    self.update_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 141, in update_weather
    self.update_menu(i)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 636, in update_menu
    location = geocodeapi.get_inv_direction(lat, lon)['city']
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 136, in get_inv_direction
    aplace = reverse.resolve()
gi.repository.GLib.Error: g-io-error-quark: Service Unavailable (0)


Załączone pliki Miniatury
   
Odpowiedz
#10
0
Dziwnie to działa... na 18.3 też były problemy, zwłaszcza z ustawieniem lokalizacji. Zrobiłem to "ręcznie", czyli wklepałem dane do pliku ~/.config/my-weather-indicator/my-weather-indicator.conf i to, co wyświetla program, zgadza się z tym, co mam za oknem Wink
Zawartość mojego conf poniżej:
Kod:
{
    "24h": true,
    "autolocation": false,
    "first-time": false,
    "http-port": 0,
    "http-proxy": "",
    "https-port": 0,
    "https-proxy": "",
    "icon-light": true,
    "latitude": 51.25,
    "latitude2": 0,
    "location": "Lublin",
    "location2": "",
    "longitude": 22.56,
    "longitude2": 0,
    "main-location": true,
    "onalldesktop1": true,
    "onalldesktop2": true,
    "onwidget1hide": false,
    "onwidget1top": false,
    "onwidget2hide": false,
    "onwidget2top": false,
    "pressure": "mb",
    "rain": "mm",
    "refresh": 1.0,
    "second-location": false,
    "show-notifications": false,
    "show-notifications2": true,
    "show-temperature": true,
    "show-temperature2": true,
    "showintaskbar1": false,
    "showintaskbar2": false,
    "skin1": "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/skins/super",
    "skin2": "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/skins/full",
    "snow": "cm",
    "temperature": "C",
    "version": "0.9.5-0extras20.04.09",
    "visibility": "km",
    "weather-service": "openweathermap",
    "widget1": false,
    "widget2": true,
    "wind": "km/h",
    "wp1-x": 0,
    "wp1-y": 0,
    "wp2-x": 0,
    "wp2-y": 0,
    "wu-key": "",
    "wwo-key": ""
}
Odpowiedz


Skocz do:




Użytkownicy przeglądający ten wątek: 1 gości