How to install My Weather Indicator in Fossapup?-(solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

How to install My Weather Indicator in Fossapup?-(solved)

Post by rburkartjo »

running flossapup 9.5 and cant get my-weather-indicator to work

http://ppa.launchpad.net/atareao/atarea ... indicator/

any ideas i tried to use the deb install on the bottom/tks

Last edited by rburkartjo on Sat Mar 06, 2021 3:27 pm, edited 1 time in total.
User avatar
rockedge
Site Admin
Posts: 5898
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2123 times
Been thanked: 2230 times
Contact:

Re: unable to install

Post by rockedge »

it looks like it would work if you downloaded the .deb or .tar.xz file then extract the contents and manually copy them into the correct locations.
It appears that Python 3 is required and the Python 3 PyGObject and it's module gi must be available. I attempted to switch to python 2.7 because I have the gi module installed for it, but it threw an error:

Code: Select all

root-# /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
Namespace AppIndicator3 not available
Repository version required not present

my suggestion is extract manually, copy to the correct locations and load the Devx for Fossapup then with pip or with the package manager install PyGObject components for Python3. It should work then, in theory, since I do not have the actual mechanical parts I can not test it.

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 146 times

Re: unable to install

Post by 666philb »

hi @rburkartjo

you'll need to install from the PPM . use the 'find box' ....

gir1.2-geocodeglib
python3-django-timezone-field
gir1.2-osmgpsmap
python3-requests-oauthlib

if still not working, run in a terminal and let me know what it says.

FYI if a module missing it's usually python '3' in this case, and if namespace missing it's a 'gir' ... i usually just type gir in the find box and scroll through to the correct one.

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: unable to install

Post by ThruHammer »

If you're in the States, there's a far less troublesome app you could use.

If another country, give us some idea so we can test it out.

rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

Re: unable to install

Post by rburkartjo »

thru in the states

rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

Re: unable to install

Post by rburkartjo »

666
terminal output
root# my-weather-indicator
bash: my-weather-indicator: command not found
root#
also here is pfind the folder output
/opt/extras.ubuntu.com/my-weather-indicator
/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/images/my-weather-indicator-old.png
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/images/my-weather-indicator.png
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/my-weather-indicator-autostart.desktop
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/my-weather-indicator.png
/opt/extras.ubuntu.com/my-weather-indicator/share/pixmaps/my-weather-indicator.png
/tmp/my-weather-indicator_0.9.5.files
/tmp/my-weather-indicator-autostart.desktop
/tmp/my-weather-indicator.desktop
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ar-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-be-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ber-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-bg-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ca-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ca@valencia-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-cs-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-de-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-el-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-en_AU-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-en_GB-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-en-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-eo-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-es-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-et-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-eu-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-fi-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-fr-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-gl-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-he-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-hi-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-hr-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-hu-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-is-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-it-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ja-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ko-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-lt-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-lv-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ml-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ms-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-nl-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-pl-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-pt_BR-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-pt-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ro-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ru-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-si-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-sk-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-sl-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-sr@latin-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-sr-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-sv-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-ta-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-te-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-tr-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-uk-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-vi-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-zh_CN-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator.mo ~ -usr-share-locale-langpack-zh_TW-LC_MESSAGES-my-weather-indicator.mo
/tmp/my-weather-indicator-old.png
/tmp/my-weather-indicator ~ -opt-extras.ubuntu.com-my-weather-indicator-bin-my-weather-indicator
/tmp/my-weather-indicator.png ~ -opt-extras.ubuntu.com-my-weather-indicator-share-my-weather-indicator-images-my-weather-indicator.png
/tmp/my-weather-indicator.png ~ -opt-extras.ubuntu.com-my-weather-indicator-share-my-weather-indicator-my-weather-indicator.png
/tmp/my-weather-indicator.png ~ -opt-extras.ubuntu.com-my-weather-indicator-share-pixmaps-my-weather-indicator.png
/usr/share/applications/my-weather-indicator.desktop
/usr/share/doc/my-weather-indicator
/usr/share/locale-langpack/ar/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/be/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ber/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/bg/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ca/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ca@valencia/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/cs/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/de/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/el/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/en_AU/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/en/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/eo/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/es/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/et/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/eu/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/fi/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/fr/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/gl/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/he/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/hi/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/hr/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/hu/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/is/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/it/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ja/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ko/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/lt/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/lv/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ml/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ms/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/nl/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/pl/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/pt_BR/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/pt/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ro/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ru/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/si/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/sk/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/sl/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/sr@latin/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/sr/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/sv/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/ta/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/te/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/tr/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/uk/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/vi/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/zh_CN/LC_MESSAGES/my-weather-indicator.mo
/usr/share/locale-langpack/zh_TW/LC_MESSAGES/my-weather-indicator.mo
/var/packages/my-weather-indicator_0.9.5.files

also the menu shows an icon for my-weather-indicator but no action when clicked

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: unable to install

Post by ThruHammer »

Phil, I've got TWeather running aboard (yes, "aboard" boys'n girls -- guess who?) Fossa.

Would you prefer to continue with rburkartjo? Seems to me that our state-side OP would have an easier go with TWeather.

You make the call...

Attachments
tweather_locale.jpg
tweather_locale.jpg (22.2 KiB) Viewed 1173 times
rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

Re: unable to install

Post by rburkartjo »

guys okay to go with tweather. however i can still play around with getting my-weather-indicator to work. in the 15 years i have used linux persistence has always solved 99.9 % of problems. appreciate all your help .

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: unable to install

Post by ThruHammer »

TWeather direct download. Then open "/usr/share/sit/functions," swap in your zip and SAVE. All that's left is to add "/usr/bin/tweather" to your startup apps and reboot. With any luck, you should now be able to access your locations current weather from the tray.

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 146 times

Re: unable to install

Post by 666philb »

hi @rburkartjo
ok a better way to install may be by adding the PPA as it has more dependencies than i thought.

first off uninstall my-weather-indicator.

then in a terminal ....

Code: Select all

pkg add-repo ppa:atareao/atareao ubuntu focal

Code: Select all

pkg repo focal-atareao

Code: Select all

pkg get my-weather-indicator
rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

Re: unable to install-(solved)

Post by rburkartjo »

666 tks followed your directions and worked like a charm

gabtech
Posts: 61
Joined: Sun Jul 19, 2020 12:29 pm
Been thanked: 1 time

Re: How to install My Weather Indicator in Fossapup?

Post by gabtech »

@666philb

I followed the above instructions, now how do I start my-weather-indicator?

gabtech :thumbup2:

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 146 times

Re: How to install My Weather Indicator in Fossapup?

Post by 666philb »

should be in the menu.... utilities I think

User avatar
mikewalsh
Moderator
Posts: 5699
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 616 times
Been thanked: 1759 times

Re: How to install My Weather Indicator in Fossapup?

Post by mikewalsh »

@666philb :-

Phil, I take my hat off to you. (And most definitely Sc0tty, too..!) This "pkg" of his seems to work rather better than I thought...

I haven't seen this on my desktop since I used to run Ubuntu "Trusty" 14.04 LTS, nearly 7 years ago. Not for lack of trying, either.....but Puppy's native PPM, even in recently upgraded format, has always had fundamental limitations.

Nice one, guys'n'gals..! :thumbup:

Image

(TBH, I'd forgotten just how much info this thing imparts.....) :shock: :lol: :lol:

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

rburkartjo
Posts: 237
Joined: Thu Feb 25, 2021 12:29 am
Been thanked: 4 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by rburkartjo »

imho this is one of the best weather apps been using for years. i have installed on my ubuntu 20.04 partition

gabtech
Posts: 61
Joined: Sun Jul 19, 2020 12:29 pm
Been thanked: 1 time

Re: How to install My Weather Indicator in Fossapup?

Post by gabtech »

gabtech wrote: Sat Mar 06, 2021 10:07 am

@666philb

I followed the above instructions, now how do I start my-weather-indicator?

Terminal output:
root# my-weather-indicator
bash: my-weather-indicator: command not found

I have opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
There's also a menu entry - my-weather-indicator, clicking it does nothing.

gabtech :thumbup2:

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by ThruHammer »

Hello gabtech, did you follow philb as he suggested here?

gabtech
Posts: 61
Joined: Sun Jul 19, 2020 12:29 pm
Been thanked: 1 time

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by gabtech »

ThruHammer wrote: Tue Mar 09, 2021 11:22 am

Hello gabtech, did you follow philb as he suggested here?

YES! I installed using those instructions.

gabtech :thumbup2:

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by ThruHammer »

Ah, but did you first remove the original package?

If yes, maybe you still require these or the devx?

Never hurts to have the devx loaded.

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by ThruHammer »

Hmmm, no dice for me either after running through philb's instructs, even with the devx loaded and having run Fixmenus.

Code: Select all

./my-weather-indicator
Traceback (most recent call last):
  File "./my-weather-indicator", line 35, in <module>
    from myweatherindicator import main
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 27, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

philb?

OK, in addition this thing needed python3-gi and python3-dbus - maybe more. I wasn't overly concerned with the order I installed packages knowing I wouldn't be saving this session, but knew its dep list would EVENTUALLY be satisfied.

YIKES!

The issue after first run hung on "OpenWeatherMap Weather Service url:hxxp://api.openweathermap.org/data/2.5/weather?id=xxxx..." Who knows, maybe they changed their API?

Too inconsistent for me thank you.

User avatar
mikewalsh
Moderator
Posts: 5699
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 616 times
Been thanked: 1759 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by mikewalsh »

I found the only way to get this thing to launch is to enter the FULL $PATH on the Exec line. Trying to symlink the 'my-weather-indicator' executable across to /usr/bin, then running the command in the terminal will NOT work. It's also the only way to get it to start at boot; again, a wee script is needed in /root/Startup with the full $PATH.

Has to be the full $PATH or nothing, since I suspect the Python script is coded to look for the 'extras.ubuntu.com' directory.....and if you sym-link across to /usr/bin, you're effectively side-stepping this. I similarly suspect I may have had some of the Python 3 items already, though pkg-cli pulled in quite a lot of stuff, I must admit.....and Python, in ANY version, is always a PITA.

EDIT:- Uh-huh. Thought so. The Python exec script expects the full $PATH; otherwise, it simply doesn't "see it". /Opt is, of course, not "in the path" anyway, so this IS expected behaviour....

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

User avatar
TiredPup
Posts: 39
Joined: Mon Jul 13, 2020 1:40 am
Has thanked: 13 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by TiredPup »

I found that it works quite well from the taskbar. However it refuses to display the desktop widget. All I get is a transparent box.

Otherwise this is quite an app.

User avatar
mikewalsh
Moderator
Posts: 5699
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 616 times
Been thanked: 1759 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by mikewalsh »

TiredPup wrote: Sat May 29, 2021 2:54 am

I found that it works quite well from the taskbar. However it refuses to display the desktop widget. All I get is a transparent box.

Otherwise this is quite an app.

@TiredPup :-

Did you follow the pkg-cli instructions that Phil posted here?

viewtopic.php?p=18994#p18994

The PPA probably IS the best way to install it. What readout d'you get if you enter

Code: Select all

/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator

.....into the terminal? Any joy?

(EDIT:- In 'Preferences', on the first tab, have you got the checkbox ticked for 'Show widget'? IIRC, it's not ticked by default, so unless you tick it yourself the widget WON'T show.....)

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

User avatar
TiredPup
Posts: 39
Joined: Mon Jul 13, 2020 1:40 am
Has thanked: 13 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by TiredPup »

@mikewalsh

Did you follow the pkg-cli instructions that Phil posted here?

viewtopic.php?p=18994#p18994

Yes I did that.

In 'Preferences', on the first tab, have you got the checkbox ticked for 'Show widget'? IIRC, it's not ticked by default, so unless you tick it yourself the widget WON'T show

Yes I did that.

The result is that a transparent rectangle appears on the desktop. The weather-indicator app fails at that point.

/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
.....into the terminal? Any joy?

Here is the output of that command in terminal:

My-Weather-Indicator version: 0.9.5-0extras20.04.11
#####################################################

My-Weather-Indicator version: 0.9.5-0extras20.04.11
#####################################################
****** Requesting timezone identificacion
** OWM **
4260977 -86.1407 39.8238
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/ ... 550408c863
-------------------------------------------------------
****** Updated weather
None
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 959, 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 710, in update_menu
self.widgets[index].set_weather(weather)
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 157, in set_weather
self.parse_data()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 426, in parse_data
surface = get_surface_from_file(fileimage)
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 594, in get_surface_from_file
Gdk.cairo_set_source_pixbuf(context, pixbuf, 0, 0)
KeyError: 'could not find foreign type Context'
root# /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7f2a5e8439a0>
#####################################################
System: Linux
Machine: x86_64
Node: puppypc26342
Release: 5.4.53
Version: #1 SMP PREEMPT Sun Jul 26 12:11:02 BST 2020
Platform: Linux-5.4.53-x86_64-with-glibc2.29
My-Weather-Indicator version: 0.9.5-0extras20.04.11
#####################################################

My-Weather-Indicator version: 0.9.5-0extras20.04.11
#####################################################
****** Requesting timezone identificacion
** OWM **
4260977 -86.1407 39.8238
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/ ... 550408c863
-------------------------------------------------------
****** Updated weather
None
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 959, 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 710, in update_menu
self.widgets[index].set_weather(weather)
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 157, in set_weather
self.parse_data()
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 426, in parse_data
surface = get_surface_from_file(fileimage)
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/weatherwidget.py", line 594, in get_surface_from_file
Gdk.cairo_set_source_pixbuf(context, pixbuf, 0, 0)
KeyError: 'could not find foreign type Context'

Thank you very much for your response mikewalsh.

User avatar
mikewalsh
Moderator
Posts: 5699
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 616 times
Been thanked: 1759 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by mikewalsh »

@TiredPup :-

Hoo, boy. I think I've bitten off more than I can chew here..!!

The snag with Python, I always find, is that it's awkward to troubleshoot in the way you would most stuff. You CAN'T use

Code: Select all

ldd

....on it, for a start. That only works with executable binaries, and Python is essentially a bunch of scripts. I was kinda hoping that something would "stand out" from your terminal output as being obviously wrong, but.....it doesn't.

I think either Phil B. (Fossapup's creator) or rockedge - who seems to be something of a whiz with Python - might be better able to help with this one. I'll drop rockedge a PM, see if he can come up with anything to try.

There's certainly no reason it shouldn't work for you; it's functioning as intended for myself and at least a few others. Possibly a bad download somewhere along the line. Let's see what the consensus is, eh..?

Mike. ;)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

User avatar
TiredPup
Posts: 39
Joined: Mon Jul 13, 2020 1:40 am
Has thanked: 13 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by TiredPup »

There are always those variables that seem to occur at random. I was taught early on that no two pieces of hardware are alike. Thank you for your input. Hopefully it is something simple.

User avatar
rockedge
Site Admin
Posts: 5898
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2123 times
Been thanked: 2230 times
Contact:

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by rockedge »

Let me take a look at this. It might be the cairo module from python is playing a role.

I think you are missing the python-gi-cairo dependency. Open the PPM update it and search for python-gi-cairo and install it.

Please let me know if this fixes it.

User avatar
TiredPup
Posts: 39
Joined: Mon Jul 13, 2020 1:40 am
Has thanked: 13 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by TiredPup »

@rockedge

Let me take a look at this. It might be the cairo module from python is playing a role.

I think you are missing the python-gi-cairo dependency. Open the PPM update it and search for python-gi-cairo and install it.

Please let me know if this fixes it.

These were not installed. Odd, because I thought I installed all of the necessary deps.

This did not fix it. Behavior remains the same.

Thank you.

User avatar
mikewalsh
Moderator
Posts: 5699
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 616 times
Been thanked: 1759 times

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by mikewalsh »

@TiredPup :-

Now then; I think I know what your "issue" is here.....because I've just run up against it, and fixed it myself.

I've used Phil's pkg-cli installation instructions, in modified format, to install MyWeatherIndicator in Bionicpup64. (Using the 'bionic' repo as opposed to the 'focal' repo, but that's beside the point.) It worked well in Fossa, so I figured it ought to do the same job in the previous Puppy, too.

Sc0tty's Pkg-cli did its usual magnificent job of resolving dependencies.....with the exception of (you guessed it) the Python 'gi' module. Same issue as you had; why it doesn't pull it in, heaven above knows, but then Python stuff is a law unto itself at the best of times.

Initial start from the terminal complained about "No module named gi found". I used the PPM to look for, and install,

Code: Select all

python-gi-cairo

.....following rockedge's suggestion. A second attempt with the terminal was still giving the same complaint; "No module named gi found". Hmm; odd. Then I had a thought.....

Most Puppies, over the years - certainly, all of Phil's 'buntu-based Puppies - always come with Python 2 installed. The more recent ones - including Bionic & Fossa - are now coming with Python 3 installed as well. So; after agitating the brain cell to come up with some ideas! :D - I searched for, and used the PPM to install

Code: Select all

python3-gi-cairo

And.....BINGO. All working as it should. Erik was very close with his suggestion; 'my-weather-indicator' did need 'python-gi-cairo', but it wants the Python 3 version, not Python 2 .

Image

If you just use 'python' when you search, the PPM assumes you're looking for the older version. You need to append a '3' after 'python' to get the newer Python 3 version.

------------------------------------------------

Let us know if that helps at all, please.

Mike.:)

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

User avatar
rockedge
Site Admin
Posts: 5898
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2123 times
Been thanked: 2230 times
Contact:

Re: How to install My Weather Indicator in Fossapup?-(solved)

Post by rockedge »

I have endless problems with module gi in Python3. I need it for many object detection recognition routines and it really is a hit or miss getting it going. For example no matter how I have attempted to get python3-gi-cairo installed, which reports a successful installation and yet still will not import in python3.
I did have some success with ActiveState's python before. but overall this module is a stress maker.

For example I can not get this program to run on my Bionic64 as of yet. AND it is all because of "gi"

Post Reply

Return to “Beginners Help”