Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

Gis Weather not loading for some reason, looking for substitute

Report Bugs, Issues and non- package Requests
Post Reply
Message
Author
User avatar
Eadwine Rose
Administrator
Posts: 11838
Joined: Wed Jul 12, 2006 2:10 am

Gis Weather not loading for some reason, looking for substitute

#1 Post by Eadwine Rose »

And I am not knowledgable enough to figure it out.

Tried to remove the config files, but where those are exactly...? Every time I rename something that I might think is it it gives a cannot start because cannot find whatever I just renamed.

Then did a reinstall (did not remove, just marked for reinstallation) who knows (it's in the test repo).

Then tried again from the terminal, and it said this:

Code: Select all

$ gis-weather
Gis Weather 0.8.2.5
/usr/share/gis-weather/gis-weather.py:66: 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
Not found gir1.2-rsvg-2.0 (librsvg)
Configuration folder:
    /home/eadwine/.config/gis-weather/gw_config2.json
Widget size:
    width = 522 height = 292 including indent = 6
Your screen supports alpha
> Getting weather for 5 days
> Downloading http://www.accuweather.com/com/nl/xxxx/249235/current-weather/249235
Where xxxx is my city, of course. And yep that link is working, but things are staying stuck.


looked at the text, see it says Not found gir1.2-rsvg-2.0 (librsvg)

Installed gir1.2-rsvg-2.0 from the regular repos. Tried again:

Code: Select all

$ gis-weather
Gis Weather 0.8.2.5
/usr/share/gis-weather/gis-weather.py:66: 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
/usr/share/gis-weather/gis-weather.py:74: PyGIWarning: Rsvg was imported without specifying a version first. Use gi.require_version('Rsvg', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import Rsvg
Configuration folder:
    /home/eadwine/.config/gis-weather/gw_config2.json
Widget size:
    width = 522 height = 292 including indent = 6
Your screen supports alpha
> Getting weather for 5 days
> Downloading http://www.accuweather.com/com/nl/xxxx/249235/current-weather/249235
To note: I didn't change anything to it. Nada. It just starts every time I boot the computer and it started fine earlier today. I even rebooted just now to see if MAYBE that was it, but nope.

Renamed gw_config2.json, it just creates a new one.

What it wants... I dunno.. any ideas?
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
timkb4cq
Developer
Posts: 3179
Joined: Wed Jul 12, 2006 4:05 pm

Re: Gis Weather not loading for some reason

#2 Post by timkb4cq »

It works if you use gismeteo instead of AccuWeather.
I suspect it's not downloading from accuweather because it's trying http & accuweather now defaults to https.
I'll have to check the code.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Eadwine Rose
Administrator
Posts: 11838
Joined: Wed Jul 12, 2006 2:10 am

Re: Gis Weather not loading for some reason

#3 Post by Eadwine Rose »

Thanks for looking into it, I have NO idea where to change that info *chuckle*
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
timkb4cq
Developer
Posts: 3179
Joined: Wed Jul 12, 2006 4:05 pm

Re: Gis Weather not loading for some reason

#4 Post by timkb4cq »

It isn't just a http:/https: issue. For some reason gis-weather is neither downloading from accuweather nor timing out as it's supposed to.
Just remove the ~/.config/gis-weather folder and start gis-weather again, selecting Gismeteo instead of Accuweather.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Eadwine Rose
Administrator
Posts: 11838
Joined: Wed Jul 12, 2006 2:10 am

Re: Gis Weather not loading for some reason

#5 Post by Eadwine Rose »

I renamed the folder and got this:

Code: Select all

$ gis-weather
Gis Weather 0.8.2.5
/usr/share/gis-weather/gis-weather.py:66: 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
/usr/share/gis-weather/gis-weather.py:74: PyGIWarning: Rsvg was imported without specifying a version first. Use gi.require_version('Rsvg', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import Rsvg
Configuration folder:
    /home/eadwine/.config/gis-weather/gw_config2.json
Traceback (most recent call last):
  File "/usr/share/gis-weather/gis-weather.py", line 312, in <module>
    shutil.copy(os.path.join(CONFIG_PATH, 'gw_config%s.json'%str(INSTANCE_NO-1)), CONFIG_PATH_FILE)
  File "/usr/lib/python3.5/shutil.py", line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.5/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/eadwine/.config/gis-weather/gw_config1.json'
Seriously haha.. it's being annoying.
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
timkb4cq
Developer
Posts: 3179
Joined: Wed Jul 12, 2006 4:05 pm

Re: Gis Weather not loading for some reason

#6 Post by timkb4cq »

That happens if you delete the ~/.config/gis-weather folder while you still have gis-weather running and try to open another instance.
Gis-weather likes opening its weather display on another Desktop from the one the setup GUI is started on, so you probably had an instance still running but hidden.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Stevo
Developer
Posts: 12745
Joined: Fri Dec 15, 2006 8:07 pm

Re: Gis Weather not loading for some reason

#7 Post by Stevo »

FileNotFoundError: [Errno 2] No such file or directory: '/home/eadwine/.config/gis-weather/gw_config1.json'
Does it help if you restore that folder and file?

User avatar
timkb4cq
Developer
Posts: 3179
Joined: Wed Jul 12, 2006 4:05 pm

Re: Gis Weather not loading for some reason

#8 Post by timkb4cq »

It's automatically generated when gis-weather starts up - unless there's an instance already running.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
richb
Administrator
Posts: 10306
Joined: Wed Jul 12, 2006 2:17 pm

Re: Gis Weather not loading for some reason

#9 Post by richb »

Eadwine, mine is all messed up as well. I guess I am the purge and reinstall stage.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
Eadwine Rose
Administrator
Posts: 11838
Joined: Wed Jul 12, 2006 2:10 am

Re: Gis Weather not loading for some reason

#10 Post by Eadwine Rose »

I have opted to completely remove gis-weather, restarting, and then reinstalling. I could see where it was running as I have only one desktop and no gis-weathers running anywhere that I can find.

I have it back up and running now, just need to configure. :)

Thanks for the help!!


Stevo: too late, I got rid of that install and started completely fresh
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “Bugs and Non-Package Requests Forum”