Install pyephem

98 views
Skip to first unread message

Kevin Davis

unread,
Dec 19, 2020, 12:25:22 PM12/19/20
to weewx...@googlegroups.com
I'm having some problems getting pyephem apparently.  I'm still seeing the "Install pyephem for detailed celestial timings." text.

I did a sudo pip install pyephem and restarted weewx.  I don't see a lot of documentation on this install, so I'm not sure where to start troubleshooting.

This is a brand new install weewx that I'm building for an in-law for Christmas.  Running in simulator mode currently.

Thanks for any help.

Kevin Davis

unread,
Dec 19, 2020, 12:30:31 PM12/19/20
to weewx...@googlegroups.com
pi@smith:/var/www/html/weewx $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import emphem
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named emphem
>>> exit()


pi@smith:/var/www/html/weewx $ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ephem
>>>


Oh, maybe I needed to do a pip3 install instead?

p q

unread,
Dec 19, 2020, 12:44:34 PM12/19/20
to weewx...@googlegroups.com
I recently built a new system. I had trouble getting pyephem installed also. I think I ended up doing a apt install pyephm to get it to work. I unfortunately don't take good notes while troubleshooting.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAHiQ_B3qaTMNC%2Bi1-cCxYyQedojTUKRor%2BuZgzV8q5vjKyDt_g%40mail.gmail.com.


--
Peter Quinn
(415)794-2264

John Kline

unread,
Dec 19, 2020, 1:21:31 PM12/19/20
to weewx...@googlegroups.com
It looks like you are running python3.  Try:
apt install python3-ephem


On Dec 19, 2020, at 9:30 AM, Kevin Davis <blu...@gmail.com> wrote:


--

Kevin Davis

unread,
Dec 19, 2020, 2:26:03 PM12/19/20
to weewx...@googlegroups.com
That did the trick; thank you very much!

vince

unread,
Dec 19, 2020, 5:13:09 PM12/19/20
to weewx-user
http://www.weewx.com/docs/ has the installation instructions.

Pick setup.py or an os-specific package from the links.  Each page has the right instructions for your os+version combination.

If you run the packaged installer, the packages do the right thing almost always.   If you run the setup.py variant you have to install the prerequisites properly to match your os+version's needs.

Also, for future folks asking these kinds of questions, please always tell us your os+version and whether you're using the pre-packaged weewx or whether you installed via setup.py so we can try to help without a lot of back+forth.

(only reason I mention it here is for future folks finding this thread via a seach, as this is a very much Frequently asked question)

Kevin Davis

unread,
Dec 19, 2020, 5:40:56 PM12/19/20
to weewx...@googlegroups.com
This was the only reference to Pyephem that I found.  Sorry if I missed it elsewhere.


--
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+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages