Nice to have a Mac expert around! Perhaps in a quiet moment you can tell me how to get the system logger to work on High Sierra.
The biggest problem you are going to have is device drivers. In particular, if your hardware appears as anything other than a simple serial device, you may have problems getting it to work. From your first email, it looks like you have a Davis Vantage, which is a good thing, because it uses a serial interface. Hopefully, the Mac will recognize it as such. Get the prerequisites installed, as per the MacOS instructions <http://weewx.com/docs/macos.htm>. I know the instructions say to use easy_install (we should change that), but pip usually works better. If you're already installed everything using easy_install, don't worry about it. If you have a Vantage, you do not need to install pyusb Judging from your 2nd email, it looks like you tried installing weewx in /Users/Shared/weewx/... So try deleting everything in that directory. Then it's pretty much following the directions in the MacOS instructions, making sure to let the installer run to completion. An easy to overlook step is editing the file setup.cfg to reflect your nonstandard install location (normally, weewx is installed into /home/weewx, but /home is reserved on the Mac). */Users/Shared/weewx/weewx-3.8.0/setup.cfg:* # Configuration file for weewx installer. The syntax is from module # ConfigParser. See http://docs.python.org/library/configparser.html [install] # Set the following to the root directory where weewx should be installed home = /Users/Shared/weewx # Given the value of 'home' above, the following are reasonable values prefix = exec-prefix = install_lib = %(home)s/bin install_scripts = %(home)s/bin -tk On Sat, Mar 3, 2018 at 2:12 PM, kdbarto <[email protected]> wrote: > > On Mar 3, 2018, at 2:00 PM, Thomas Keffer <[email protected]> wrote: > > The Mac is an "unsupported platform," but I'm sure we can get it working. > > First, see if you already have a copy of PIL or Pillow. From the command > line: > > python -c "import PIL” > > Had no output. I’ll assume that is good. > > > If that gives you an import error, try this > > python -c "import Image" > > > If either of these work, then you are probably OK, and do not need to > install Pillow. I say "probably," because it's possible your previous > attempt to install using "install" resulted in a corrupted copy being left > behind. We'll see. > > If neither of these two command lines work, then you will need to install > Pillow. Use pip to do so. Your system probably already has pip, but if it > doesn't see the pip website <https://pip.pypa.io/en/stable/installing/> > for instructions on how to install it. > > With pip in hand, install Pillow: > > pip install pillow > > > As for your second error, "KeyError", that looks like it may be caused by > an incomplete install. Did you use setup.py to install? Normally, the weewx > configuration file comes with a station type of "unspecified". That is then > replaced by setup.py with your actual hardware type. This second step > somehow did not get completed. > > Try deleting everything and trying again, this time making sure you let > the setup.py install run to completion. > > > Deleting everything. I’m good with that. Where is this everything you > refer to? 8^) > I’m well versed in all things Unix and programming, so being technical is > OK with me. (My name appears in every iPhone shipped, for instance). > > David > > > Hope this gets you started. > > -tk > > On Sat, Mar 3, 2018 at 1:42 PM, David <[email protected]> wrote: > >> I’m just following the instructions from the weewx website. At this point >> it fails to launch. >> >> What I read on the Wview mailing list was that this was a good >> replacement and was actively developed and maintained, unlike wview. >> >> I guess I just need to know what to do ‘next’. Is there an un-install I >> can try to reset, and then try again? >> >> David >> >> On Mar 3, 2018, at 11:46 AM, Thomas Keffer <[email protected]> wrote: >> >> This seems to be a problem with the Pillow install, and not with WeeWX. >> >> First, are you sure you need to install Pillow? Most Python installations >> come with a version of PIL or Pillow. >> >> Second, I have generally had better luck installing things with pip, >> rather than BSD install or easy_install. >> >> -tk >> >> >> On Sat, Mar 3, 2018 at 10:38 AM, David Barto <[email protected]> wrote: >> >>> wviewd_vpro is consuming 75% of the cpu. So I thought I’d give weewx a >>> shot. >>> >>> Installing from their instructions shows the following problem, and >>> since I don’t know Python that well I though I’d ask if this is ‘OK’. >>> After doing this, trying it again shows that it is installed according >>> to the installer program. >>> >>> Anyone here have any answers about these problems? >>> >>> David >>> >>> >>> MacOS 10.11.6 >>> >>> marvin:Desktop$ python -V >>> Python 2.7.10 >>> >>> sudo install Pillow >>> >>> Adding Pillow 5.0.0 to easy-install.pth file >>> >>> Installed /Library/Python/2.7/site-packages/Pillow-5.0.0-py2.7-macosx- >>> 10.11-intel.egg >>> Processing dependencies for Pillow >>> Finished processing dependencies for Pillow >>> Exception in thread Thread-1: >>> Traceback (most recent call last): >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", >>> line 810, in __bootstrap_inner >>> self.run() >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", >>> line 763, in run >>> self.__target(*self.__args, **self.__kwargs) >>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/li >>> b/python2.7/multiprocessing/pool.py", line 330, in _handle_workers >>> debug('worker handler exiting') >>> TypeError: 'NoneType' object is not callable >>> >>> Exception TypeError: TypeError("'NoneType' object does not support item >>> deletion",) in <Finalize object, dead> ignored >>> Exception in thread Thread-2: >>> Traceback (most recent call last): >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", >>> line 810, in __bootstrap_inner >>> self.run() >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", >>> line 763, in run >>> self.__target(*self.__args, **self.__kwargs) >>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/li >>> b/python2.7/multiprocessing/pool.py", line 366, in _handle_tasks >>> debug('task handler got sentinel') >>> TypeError: 'NoneType' object is not callable >>> >>> >> >> > >
