[AstroPy] No Module Named Astropy.Timeseries
Eric Jensen
ejensen1 at swarthmore.edu
Sat Jan 8 20:34:24 EST 2022
Hi Bob,
Is it possible that you’re running a very old version of astropy? The timeseries module was introduced in astropy v3.2, released in June 2019.
Here are a couple of things to try:
import astropy # Make sure you can import astropy itself.
If that works (i.e. doesn’t report any errors), then check the version number:
print(astropy.__version__)
There are two underscores before and after ‘version’ there.
If your version is older than 3.2, you won’t have a timeseries module (or a lot of other things!) so an update would be good.
Hope this helps -
Eric
> On Jan 8, 2022, at 7:34 PM, Robert Carr <rspencercarr at gmail.com> wrote:
>
> Happy New Year. I hope that there is an easy solution to my issue.
>
> I wish to analyze variable objects and a run Lomb-Scargle periodogram within astropy.timeseries. This should be straightforward. However, when I attempt import astropy.timeseries I get the error message No module named 'astropy.timeseries'
>
> I pip installed and pip updated a number of packages. All went without a hitch. I believe that I have the dependencies installed... but expect that the error indicates that I am likely mistaken.
>
> I have attempted to test my installation of astropy. I find 3 errors, all having to do with exceptions relating to \site-packages\astropy\coordinates\earth.py I do not know whether these issues are related.
>
> Likely I am missing something simple. Your help in pointing my way forward will be very much appreciated. Thank you!
>
> Bob C
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/astropy/attachments/20220108/e36fb5c8/attachment.html>
More information about the AstroPy
mailing list