I double checked weewx.conf and it was a decimal so something was haywire. 
I grep'd /etc and /var and deleted nearly everything weewx touched. Was 
waiting for more feedback before continuing with reinstall.

On Sunday, February 18, 2024 at 12:47:45 PM UTC-6 michael.k...@gmx.at wrote:

> Maybe , first of all, change 
>
> [Station]
>     longitude =  -89-77993
>
> to
>
> [Station]
>     longitude =  -89.77993
>
> in your weewx.conf and see, if this helps you getting rid of all this 
> crap.
> Adam White schrieb am Sonntag, 18. Februar 2024 um 19:33:01 UTC+1:
>
>> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3f7dd3fa-820d-41b6-b617-367732f0445dn%40googlegroups.com.

Reply via email to