Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2019 03:23:45 +0000
From:      "Dave M." <oldriverbsd9@gmail.com>
To:        ports@freebsd.org
Subject:   weather package weather-2.3_1 and port.
Message-ID:  <789a4b62-5597-dc1b-bfc6-68f295c6b7c3@gmail.com>

next in thread | raw e-mail | index | archive | help
I have weather-2.3_1 installed on FreeBSD freebsd12 12.0-RELEASE-p3 
FreeBSD 12.0-RELEASE-p3 GENERIC  amd64, and the command, `weather lax` 
gives the output:

Searching via airport...
Traceback (most recent call last):
   File "/usr/local/bin/weather", line 66, in <module>
     if selections.get_bool("conditions", argument) or not (
   File "/usr/local/lib/python3.6/site-packages/weather.py", line 102, 
in get_bool
     return bool(self.get(option, argument))
   File "/usr/local/lib/python3.6/site-packages/weather.py", line 83, in 
get
     quiet=self.get_bool("quiet")
   File "/usr/local/lib/python3.6/site-packages/weather.py", line 749, 
in guess
     stations.read(datafile)
   File "/usr/local/lib/python3.6/configparser.py", line 697, in read
     self._read(fp, filename)
   File "/usr/local/lib/python3.6/configparser.py", line 1015, in _read
     for lineno, line in enumerate(fp, start=1):
   File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
     return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 
3699: ordinal not in range(128)

That is with latest package install or port compiled. Although it does 
work compiled with `DEFAULT_VERSIONS+=python=2.7` in make.conf
What to do?


Thanks in advance, Dave Males.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?789a4b62-5597-dc1b-bfc6-68f295c6b7c3>