Skip to content

Files for a unified Python virtual environment containing all published PyHC packages

Notifications You must be signed in to change notification settings

sapols/pyhc-environment-files

Repository files navigation

pyhc-environment-files

Repo with files trying to generate one virtual Python environment that can import every PyHC package.

Files:

  1. pyhc-requirements.txt: All the package versions that the PyHC packages require
  2. pyhc-packages-requirements.txt: The PyHC packages
  3. import-test.py: A script that runs import statements for the PyHC packages before printing a success message

Steps:

  1. pip install -r pyhc-requirements.txt
  2. pip install -r pyhc-packages-requirements.txt
  3. python3 import-test.py

Fixing ocbpy import (currently commented-out):

Problem:

It's failing on trying to get SpacePy to load the CDF C library

Solution:

Install CDF C library (see: https://spacepy.github.io/pycdf.html / https://spacepy.github.io/install_mac.html#install-mac-cdf)

Shawn's steps:

Fixing wmm2015 & wmm2020 imports (currently commented-out):

Problem:

"FileNotFoundError: CMake not available"

Solution:

Install CMake?

Shawn's steps:
  • brew install cmake
  • ??? (Still failed after running that command; giving up)

Notes:

  • Shawn's environment is macOS 11.7.4 (Intel i7 processor) running Python v3.8.8
  • Very recently added PyHC packages not included here:
    • CCSDSPy (requirements already satisfied)
    • space-packet-parser (would install bitstring==4.0.2)
    • regularizePSF project (would install sep==1.2.1)
    • lofarSun (would install python-casacore==3.5.2; requires casacore and Python Boost to be installed on the system)
    • PyGS (would install ai.cdas==1.2.3)

Ideas:

Similar to how Kamodo-CCMC has a few test lines to verify the installation:

from kamodo import Kamodo
k = Kamodo()  
import kamodo_ccmc.flythrough.model_wrapper as MW  
MW.Model_Variables('OpenGGCM_GM')

We should make a test file that has similar lines for ALL packages.

About

Files for a unified Python virtual environment containing all published PyHC packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published