Skip to content

CalledProcessError: Command  #4

Description

@sevenstarknight

I'm working in Windows, and through a Jupyter Notebook (anaconda).
I have the following bit of code, note I've blocked off three "cells" here

====================================================

import sys
!{sys.executable} -m pip install wmm2015

from abc import ABC, abstractmethod
from datetime import datetime

====================================================

class LLA:
    def __init__(self, lat_deg : float, lon_deg : float, altitude_m : float):
        self.lat_deg = lat_deg
        self.lon_deg = lon_deg
        self.altitude_m = altitude_m

class RayState:
    def __init__(self, exitElevation_deg : float, exitAzimuth_deg : float, lla : LLA, nIndex : complex):
        self.exitElevation_deg = exitElevation_deg
        self.exitAzimuth_deg = exitAzimuth_deg
        self.lla = lla
        self.nIndex = nIndex

    def generateList(self):
        return([self.exitElevation_deg,self.exitAzimuth_deg, self.lla.lat_deg, self.lla.lon_deg, self.lla.altitude_m, self.nIndex])

    def generateColumnNames(self):
        return(["Exit Elevation", "Exit Azimuth", "Latitude", "Longitude", "Altitude", "n"])

    def isNone(self):
        #attrs = vars(self)
        #print(', '.join("%s: %s" % item for item in attrs.items()))

        filledUp = self.exitElevation_deg is None
        filledUp = filledUp & self.exitAzimuth_deg is None
        filledUp = filledUp & self.lla.lat_deg is None
        filledUp = filledUp & self.lla.lon_deg is None
        filledUp = filledUp & self.lla.altitude_m is None
        filledUp = filledUp & self.nIndex is None

        return(filledUp)

class IonosphereState():
    def __init__(self, f107:float, f107a:float, ap:list):
        self.f107 = f107
        self.f107a = f107a
        self.ap = ap

class AbstractSpacePhysicsModel(ABC):

    def __init__(self, frequency_hz : float, ionosphereState: IonosphereState):
        self.frequency_hz = frequency_hz
        self.ionosphereState = ionosphereState
        super().__init__()

    @abstractmethod
    def generateOutput(self, currentDateTime: datetime, currentState : RayState) ->complex:
        pass

====================================================

import wmm2015

class WMM_Model(AbstractSpacePhysicsModel):
    def generateOutput(self, currentDateTime: datetime, currentState : RayState) ->complex:
        bNED_T = wmm2015.wmm_point(currentState.lla.lat_deg, currentState.lla.lon_deg, currentState.lla.altitude_m/1000, currentDateTime.year)
        return(bNED_T)

====================================================

in just trying to build the class, what I get is


CalledProcessError Traceback (most recent call last)
in
----> 1 import wmm2015
2
3
4 class WMM_Model(AbstractSpacePhysicsModel):
5 def generateOutput(self, currentDateTime: datetime, currentState : RayState) ->complex:

~\Anaconda3\lib\site-packages\wmm2015_init_.py in
----> 1 from .base import wmm

~\Anaconda3\lib\site-packages\wmm2015\base.py in
13 dllfn = get_libpath(BDIR, "wmm15")
14 if not dllfn.is_file():
---> 15 build()
16 dllfn = get_libpath(BDIR, "wmm15")
17 if not dllfn.is_file():

~\Anaconda3\lib\site-packages\wmm2015\build.py in build()
21
22 with importlib.resources.path(package, "setup.cmake") as file:
---> 23 subprocess.check_call([exe, "-S", str(file), "-VV"])
24
25

~\Anaconda3\lib\subprocess.py in check_call(*popenargs, **kwargs)
362 if cmd is None:
363 cmd = popenargs[0]
--> 364 raise CalledProcessError(retcode, cmd)
365 return 0
366

CalledProcessError: Command '['C:\msys64\usr\bin\ctest.EXE', '-S', 'C:\Users\618938\Anaconda3\lib\site-packages\wmm2015\setup.cmake', '-VV']' returned non-zero exit status 255.

any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions