Weewx build error

45 views
Skip to first unread message

Jens-Jørgen Kjærgaard

unread,
Oct 1, 2021, 7:24:31 AM10/1/21
to weewx-user
Trying to build weewx (again, have done it many times with out this problem):

python3 ./setup.py build 
  File "./setup.py", line 91
    print "Saved bin subdirectory as %s" % bin_savedir
                                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Saved bin subdirectory as %s" % bin_savedir)?

gjr80

unread,
Oct 1, 2021, 8:06:29 AM10/1/21
to weewx-user
I don’t know what you’ve downloaded or where you’ve obtained WeeWX from, but it appears you are trying to install WeeWX v3.8 or so under python 3. Python 3 support was not included until WeeWX 4.0.0. If you really need to install the WeeWX version that you have then I suggest you follow the install instructions in the included documentation and install under python 2. If you need to install under python 3 then you will have to download and install WeeWX v4.0.0 or later (the latest version v4.5.1 is recommended).

Gary

Jens-Jørgen Kjærgaard

unread,
Oct 1, 2021, 8:43:05 AM10/1/21
to weewx-user
Thanks, your guesses were correct - trying to install 3.8.0 under python3.
Reply all
Reply to author
Forward
0 new messages