You answered my question indirectly, thanks. *python -V returns* *Python 2.7.17*
*python -c "import ephem" returns nothing* *python3 -c "import ephem" returns* *Traceback (most recent call last):* * File "<string>", line 1, in <module>* *ModuleNotFoundError: No module named 'ephem'* Regards, Jason On Thursday, March 5, 2020 at 4:37:10 AM UTC+13, Thomas Keffer wrote: > > Not sure I understand your question. > > You are using WeeWX V3.9.2, which will run only under Python 2 so, unless > you installed pyephem under Python 3, it should not be a factor. Try this > to see where pyephem ended up: > > This will tell us what version of Python is the default: > *python -V* > > This will test whether pyephem was installed for the default version: > *python -c "import ephem"* > > This will test whether pyephem was accidentally installed for Python 3: > *python3 -c "import ephem"* > > -tk > > On Tue, Mar 3, 2020 at 10:55 PM Jason Gill <jason...@gmail.com > <javascript:>> wrote: > >> Thanks for this. >> >> You were correct - when I run with the explicit python I get the same >> result on both. >> >> I have python 2.7.17 and python 3.6.9 from what I can see. Do you mean >> multiple versions of 2.x.x (or 3.x.x) or would having 2 and 3 versions >> installed cause this problem? >> >> Regards, >> Jason. >> >> On Tuesday, March 3, 2020 at 3:27:47 AM UTC+13, Thomas Keffer wrote: >>> >>> Do you have several versions of Python on your machine? It's possible >>> pyephem was installed using one version, but you're trying to run weewxd >>> under another. >>> >>> Try invoking python explicitly when you run wee_reports and weewxd. This >>> will guarantee that they are using the same version of Python: >>> >>> *sudo python /usr/share/weewx/weewxd /etc/weewx/weewx.conf* >>> *sudo python /usr/share/weewx/wee_reports /etc/weewx/weewx.conf* >>> >>> See if those give the same results. >>> >>> -tk >>> >>> On Sun, Mar 1, 2020 at 11:55 PM Jason Gill <jason...@gmail.com> wrote: >>> >>>> Hello, >>>> >>>> I added pyephem to show extra almanac info on my main page. When I >>>> moved weewx between servers this stopped working although the setup seems >>>> the same. >>>> >>>> Version Info: >>>> pyephem version is 3.7.7.0 >>>> weewx version is v3.9.2 >>>> >>>> When I run "sudo wee_reports /etc/weewx/weewx.conf" (seen in another >>>> post) the main page reports the following extended almanac info after >>>> wee_reports completes >>>> >>>> Sun >>>> Start civil twilight: 06:40:25 AM >>>> Sunrise: 07:07:13 AM >>>> Transit: 01:33:21 PM >>>> Sunset: 07:58:52 PM >>>> End civil twilight: 08:25:36 PM >>>> Equinox: 03/20/2020 04:49:32 PM >>>> Solstice: 06/21/2020 09:43:46 AM >>>> >>>> Moon >>>> Rise: 01:41:29 PM >>>> Transit: 06:55:13 PM >>>> Set: 12:04:19 AM >>>> Full moon: 03/10/2020 06:47:42 AM >>>> New moon: 03/24/2020 10:28:11 PM >>>> Phase: First quarter (45% full) >>>> >>>> When the next periods data arrives the almanac returns to this: >>>> >>>> Sunrise: 07:07:36 >>>> Sunset: 19:59:08 >>>> Moon Phase: First quarter (50% full) >>>> >>>> The same config file is used for both wee_reports and when I restart >>>> weewx. Any ideas - I must have missed something? >>>> >>>> Regards, >>>> Jason. >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> 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 weewx...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/c2f7ae08-3eb7-403d-a68e-0a2439f9e4e5%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/c2f7ae08-3eb7-403d-a68e-0a2439f9e4e5%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 weewx...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/44f9ef1e-8082-416d-bcbc-4fc3f749d179%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/44f9ef1e-8082-416d-bcbc-4fc3f749d179%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fa6e7b8f-dc7b-4d48-89d8-5976dd0c3f4a%40googlegroups.com.