The weewx docs are a little unclear on the longterm story if you look at https://www.weewx.com/docs/5.2/custom/cheetah-generator/?h=ephem#almanac <https://www.weewx.com/docs/5.2/custom/cheetah-generator/?h=ephem#almanac> which talks about both. I guess some clarification from Tom on which way is recommended might help on this one.
I use ephem 4.2 via pip which is still available from pypi and in debian for pi as well, FWIW. Sources for the packaged weewx variants do expect python3-ephem for debian-like os. That one doesn't seem to be available in a package for redhat-ish os from a quick look at the weewx packagers sources. A pip3 install of skyfield does seem to pull in what it needs.... $ pip3 install skyfield Collecting skyfield Downloading skyfield-1.53-py3-none-any.whl.metadata (2.4 kB) Collecting certifi>=2017.4.17 (from skyfield) Downloading certifi-2026.1.4-py3-none-any.whl.metadata (2.5 kB) Collecting jplephem>=2.13 (from skyfield) Downloading jplephem-2.23-py3-none-any.whl.metadata (23 kB) Collecting numpy (from skyfield) Downloading numpy-2.4.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB) Collecting sgp4>=2.13 (from skyfield) Downloading sgp4-2.25-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB) Downloading skyfield-1.53-py3-none-any.whl (366 kB) Downloading certifi-2026.1.4-py3-none-any.whl (152 kB) Downloading jplephem-2.23-py3-none-any.whl (49 kB) Downloading sgp4-2.25-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (235 kB) Downloading numpy-2.4.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.4/16.4 MB 50.4 MB/s eta 0:00:00 Installing collected packages: sgp4, numpy, certifi, jplephem, skyfield Successfully installed certifi-2026.1.4 jplephem-2.23 numpy-2.4.1 sgp4-2.25 skyfield-1.53 On Monday, January 12, 2026 at 6:07:09 PM UTC-8 DR wrote: > If I want the various functions that produce more astronomical tables in > 5.2, do I need to install pyephem as was necessary in earlier versions of > WeeWx? Or does the new python have the ability to do those calculations? > > I see from looking for sources to download pyephem that it is no longer > being supported and a new astronomy package is replacing it. Perhaps I > should install that instead? Does 5.2 make calls to the pyephem, or tests > to see if this newer group of routines is available? > > I did this: > > *python3 -m pip list -v* > > *within the weewx-venv gives me:* > > ephem 4.2 /home/dale/weewx-venv/lib/python3.13/site-packages > pip > > I assume since I'm only going to use this with WeeWx that I install > whichever one (if needed) into the Weewx-venv if "ephem 4.2" isn't what I > need (not pyephem)? > > Dale > > > -- 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 visit https://groups.google.com/d/msgid/weewx-user/87f28a7d-3a57-49d9-a3c4-47edfbe33ad6n%40googlegroups.com.
