Repo with files trying to generate one virtual Python environment that can import every PyHC package.
pyhc-requirements.txt
: All the package versions that the PyHC packages requirepyhc-packages-requirements.txt
: The PyHC packagesimport-test.py
: A script that runs import statements for the PyHC packages before printing a success message
pip install -r pyhc-requirements.txt
pip install -r pyhc-packages-requirements.txt
python3 import-test.py
It's failing on trying to get SpacePy to load the CDF C library
Install CDF C library (see: https://spacepy.github.io/pycdf.html / https://spacepy.github.io/install_mac.html#install-mac-cdf)
- Download Mac binaries "CDF3_9_0-binary-signed.pkg" (from: https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/latest-release/macosx/)
- Install via the installer
- Uncomment
import ocbpy
inimport-test.py
because it now works!
"FileNotFoundError: CMake not available"
Install CMake?
brew install cmake
- ??? (Still failed after running that command; giving up)
- 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)
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.