Hi I'm stuck trying to install weewx on a pi 3b+ running bullseye. I used 
apt install weewx and went through the configure options but it apparently 
didn't like my inputs. Before completing the install it errored out. 
I tried sudo dpkg --configure -a and it never worked until I deleted 
/var/lib/dpkg/info/weewx*
I would think after deleting that, running apt purge weewx and deleting the 
following:

sudo rm -r /etc/weewx

sudo rm -r /var/www/html/weewx

sudo rm -r /var/lib/weewx

sudo rm -r /etc/weewx

sudo rm /etc/default/weewx

sudo rm -r /usr/share/weewx

It would be able to start fresh but that's not the case. 


Today I deleted all the above again, did a sudo apt install weewx and had 
this output:


pi@k4spbx:~ $ sudo apt install weewx

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  sqlite ftp
The following NEW packages will be installed:
  weewx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,556 kB of archives.
After this operation, 5,720 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package weewx.
(Reading database ... 122960 files and directories currently installed.)
Preparing to unpack .../archives/weewx_5.0.2-1_all.deb ...
Unpacking weewx (5.0.2-1) ...
Setting up weewx (5.0.2-1) ...
Using weewx:weewx as user:group
Creating /etc/default/weewx
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 74, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 66, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in reconfi
gure_station
    weectllib.station_actions.station_reconfigure(config_dict=config_dic
t,
  File "/usr/share/weewx/weectllib/station_actions.py", line 164, in sta
tion_reconfigure
    config_config(config_dict,
  File "/usr/share/weewx/weectllib/station_actions.py", line 205, in con
fig_config
    config_latlon(config_dict, latitude=latitude, longitude=longitude, n
o_prompt=no_prompt)
  File "/usr/share/weewx/weectllib/station_actions.py", line 345, in con
fig_latlon
    config_dict['Station']['longitude'] = float(final_longitude)
ValueError: could not convert string to float: '-89-77993'
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned er
ror exit status 1
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)


Followed by:

pi@k4spbx:~ $ sudo dpkg --configure -a
Setting up weewx (5.0.2-1) ...
Using weewx:weewx as user:group
Saving old defaults to /etc/default/weewx-20240218113817
Creating /etc/default/weewx
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 74, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 66, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in 
reconfigure_station
    weectllib.station_actions.station_reconfigure(config_dict=config_dict,
  File "/usr/share/weewx/weectllib/station_actions.py", line 164, in 
station_reconfigure
    config_config(config_dict,
  File "/usr/share/weewx/weectllib/station_actions.py", line 205, in 
config_config
    config_latlon(config_dict, latitude=latitude, longitude=longitude, 
no_prompt=no_prompt)
  File "/usr/share/weewx/weectllib/station_actions.py", line 345, in 
config_latlon
    config_dict['Station']['longitude'] = float(final_longitude)
ValueError: could not convert string to float: '-89-77993'
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error 
exit status 1
Errors were encountered while processing:
 weewx



How do I actually delete all this crap, actually purge and then start fresh?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3909a7d1-8297-4023-a56c-b5436a5f13a5n%40googlegroups.com.

Reply via email to