I've seen this error before. Did you by any chance do a pip install of
"serial", instead of "pyserial"? The former is for serializing JSON, the
latter for communicating with serial ports.

On Sun, Apr 28, 2024 at 12:28 PM Adam Ellsworth <adaml...@gmail.com> wrote:

> Hello, I've been running weewx smoothly for years, recently there was a
> power outage and when it came back up, weewx won't start.
>
> I assume something got updated and broke.. something? In an attempt to fix
> it I installed the latest weewx 5.0.1... It's using python 3.8.10 says the
> log. I re-ran station reconfigure to see if the driver was obsolete.
>
> Any ideas? Log below. Thank you for any suggestions! Usually I'm better at
> Google than this, but I'm also pretty unfamiliar with python.
>
> Apr 28 10:51:35 homebox weewxd[326279]: INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
> Apr 28 10:51:36 homebox weewxd[326279]: ERROR weewx.engine: Import of
> driver failed: module 'serial' has no attribute 'Serial' (<class
> 'AttributeError'>)
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  Traceback (most recent call last):
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>    self.console = loader_function(config_dict, self)
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>    return VantageService(engine, config_dict)
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>    Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>    self.port.openPort()
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>    self.serial_port = serial.Serial(self.port, self.baudrate,
> timeout=self.timeout)
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL weewx.engine:     ****
>  AttributeError: module 'serial' has no attribute 'Serial'
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL __main__: Unable to load
> driver: module 'serial' has no attribute 'Serial'
> Apr 28 10:51:36 homebox weewxd[326279]: CRITICAL __main__:     ****
>  Exiting...
>
> --
> 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/06f878e5-0950-4b34-9ce9-1573ab380c64n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/06f878e5-0950-4b34-9ce9-1573ab380c64n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEAuW46XN-K4m6QfkA3DaCi85T7fODqw7Bfe_2G%3DjrDDqw%40mail.gmail.com.

Reply via email to