You're not giving a lot of information, but it's possible that pip installed pyephem a different version of python that the version you are using to run weewxd. Try this:
*pip show pyephem* It will show you where pip installed pyephem. Then try this: *python -c "import sys; print(sys.path)"* There must be a match between them. Also, how are you running weewxd? We need to know what version of Python it is using. Try this: *head /usr/bin/weewxd* or *head /home/weewx/bin/weewxd* depending on how you installed WeeWX. Finally, what is your PATH? *env echo $PATH* -tk On Fri, Mar 27, 2020 at 7:04 AM Astrid <[email protected]> wrote: > Hello! > > I have weewx 3.9.2 installed. > PyEphem is installed via pip. > > pip list | grep ephem > ephem 3.7.7.0 > pyephem 3.7.7.0 > > I put > import ephem > to local weewx-installation into > extensions.py > > but if I restart weewx, it said that it > ephem not found > > If I ommit this line in extensions.py and > and restart weewx and > print $almanac.hasExtra to a report, it > said: false. > > I want to add moonrise and moonset to my > almanach. > > How I can get ephem for this getting work? > > Regards, Astrid > > -- > 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/cc3e7973-99cd-4bfd-b7d1-e58c6463873f%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/cc3e7973-99cd-4bfd-b7d1-e58c6463873f%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/CAPq0zEAn6288C2nAom2DAjKLimi%2BN65E_M%3Df2REwCJ8AwQya%3Dw%40mail.gmail.com.
