[AstroPy] Back to Python. Precession and PhysConst code.

Wayne Watson sierra_mtnview at sbcglobal.net
Wed Jan 25 07:50:49 EST 2012


Traceback (most recent call last):
   File 
"C:\Users\Wayne\Download_Programs\Python\astro-math_RO-2.3.0\RO-2.3.0\python\RO\Astro\llv\prec.py", 
line 8, in <module>
     import RO.PhysConst
ImportError: No module named RO.PhysConst

I tried removing the RO, but then couldn't save the file.

Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit 
(AMD64)] on win32

On 1/24/2012 8:35 PM, Alexander Wagner wrote:
> I am not familiar with any of the code, but just to make sure, does 
> your python path contain the path to the RO module?
>
> If you post the error message and backtrace others may be able to help 
> further.
>
> Best wishes,
> Alex
>
> On 25/01/12 1:29 PM, Wayne Watson wrote:
>> It's been quite awhile since I used python, but I was digging around on
>> PC for something on precession, and discovered some code for it,
>> prec.py.   Here are the first few lines.
>>
>> #!/usr/bin/env python
>> """
>> History:
>> P.T.Wallace   Starlink   10 July 1994
>> 2002-07-08 ROwen    Converted to Python.
>> 2007-04-24 ROwen    Converted from Numeric to numpy (in test code).
>> """
>> import RO.PhysConst
>> from euler import *
>> ...
>> ...
>>
>> It dies on RO.PhysConst when I run it.  Probably a further difficulty is
>> the euler reference.
>> I have the code for RO.PhysConst.py
>>
>> What needs to be done to successfully execute prec.py?
>>
>
>

-- 
            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                      In 2904 there will be 5 solar eclipses.
                      On July 16, 2185 the longest solar
                      eclipse inf 5k years will occur, 7 min.

                     Web Page:<www.speckledwithstars.net/>





More information about the AstroPy mailing list