did you run bin/weewxd as root, to have needed permissions for creating /var/log/weewx.log?
as an aside, you are thinking of moving weewx from mac to rpi. do it. macos continues to diverge from its linux roots into strange lands opaque to mere mortals e.g. i found daemons via launchd becoming impossible through successive macos releases without arcane knowledge, and abandoned macos 6 months ago. my mac mini now runs ubuntu in a DMZ and weewx runs wonderfully on an rpi 4B using raspian os. and i got a gw1000 to run as a service in parallel with my vp2 on same weewx instance (my macos laptops are still great - i just recommend against macos for server) > On 5 Feb 2021, at 9:16 pm, PAK <[email protected]> wrote: > > Hi all, > > I am very new and am struggling with a lot of this but hopefully this makes > sense. > > I have a Mac, with an Ecowitt HP2553. I am trying to get a handle on this > before I purchase the GW1000 and maybe a Raspberry Pi. > > The second time I tried to install Weewx it went really well until the last > command. Here's the log: - > pak@Peters-iMac weewx % python3 ./bin/weewxd weewx.conf > > Traceback (most recent call last): > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", > line 563, in configure > > handler = self.configure_handler(handlers[name]) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", > line 744, in configure_handler > > result = factory(**kwargs) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/handlers.py", > line 148, in __init__ > > BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/handlers.py", > line 55, in __init__ > > logging.FileHandler.__init__(self, filename, mode, encoding, delay) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/__init__.py", > line 1143, in __init__ > > StreamHandler.__init__(self, self._open()) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/__init__.py", > line 1172, in _open > > return open(self.baseFilename, self.mode, encoding=self.encoding) > > PermissionError: [Errno 13] Permission denied: '/var/log/weewx.log' > > > > The above exception was the direct cause of the following exception: > > > > Traceback (most recent call last): > > File "./bin/weewxd", line 264, in <module> > > main() > > File "./bin/weewxd", line 81, in main > > weeutil.logger.setup(options.log_label, {}) > > File "/Users/Shared/weewx/bin/weeutil/logger.py", line 187, in setup > > logging.config.dictConfig(log_dict) > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", > line 808, in dictConfig > > dictConfigClass(config).configure() > > File > "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", > line 570, in configure > > raise ValueError('Unable to configure handler ' > > ValueError: Unable to configure handler 'rotate' > > pak@Peters-iMac weewx % > > > I am wondering if the driver is the problem. I think I need to install an > interceptor somehow? It might all be too much for me and could be easier to > go back to Davis hehe. All I really want are daily, weekly and yearly reports > like I'm used to with WeatherLink. > > Thanks for any help, > Peter. > > -- > 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/62969bcb-fadf-4d05-8671-b164a0ed9390n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/62969bcb-fadf-4d05-8671-b164a0ed9390n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/AA7A84C6-917C-4869-B4DC-9627616EA228%40gmail.com.
