MacOS syntax error on launch

37 views
Skip to first unread message

Chris Alemany

unread,
Aug 20, 2020, 2:50:49 PM8/20/20
to weewx-user
Hi all,

Trying to upgrade from 3.9.2.

Have python3 installed and everything is in /Users/Shared/weewx as normal.  I get the below message when I run the daemon after installation. I do have a number of extensions in play as well including crt.

Cheers
Chris

Traceback (most recent call last):

  File "./bin/weewxd", line 261, in <module>

    main()

  File "./bin/weewxd", line 148, in main

    engine = weewx.engine.StdEngine(config_dict)

  File "/Users/Shared/weewx/bin/weewx/engine.py", line 75, in __init__

    self.loadServices(config_dict)

  File "/Users/Shared/weewx/bin/weewx/engine.py", line 138, in loadServices

    obj = weeutil.weeutil.get_object(svc)(self,config_dict)

  File "/Users/Shared/weewx/bin/weeutil/weeutil.py", line 1093, in get_object

    mod = __import__(module)

  File "/Users/Shared/weewx/bin/user/crt.py", line 376

    except Exception, e:

                    ^

SyntaxError: invalid syntax

Tom Keffer

unread,
Aug 20, 2020, 3:50:55 PM8/20/20
to weewx-user
Your copy of the crt extension has not been ported to Python 3. Either upgrade the extension, or use Python 2.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7f6f42da-5420-46a4-aaeb-c720a13f1900n%40googlegroups.com.

Chris Alemany

unread,
Aug 20, 2020, 4:25:54 PM8/20/20
to weewx-user
Yup seeing that now. I actually went and fixed the syntax errors and after upgrading the forecast module, it looks like things are functional again.
Reply all
Reply to author
Forward
0 new messages