Open aarchiba opened 1 year ago
I have a conda environment with astropy installed but I still get the message "Warning: cannot find astropy, units support will not be available."
conda list yields:
conda list
# packages in environment at /home/peridot/software/miniconda3/envs/enterprise-development: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge arviz 0.14.0 pyhd8ed1ab_0 conda-forge astropy 5.2.1 py310h0a54255_0 conda-forge asttokens 2.2.1 pyhd8ed1ab_0 conda-forge attrs 22.2.0 pyh71513ae_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 pyhd8ed1ab_3 conda-forge backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge black 22.12.0 py310hff52083_0 conda-forge brotli 1.0.9 h166bdaf_8 conda-forge brotli-bin 1.0.9 h166bdaf_8 conda-forge brotlipy 0.7.0 py310h5764c6d_1005 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2022.12.7 ha878542_0 conda-forge certifi 2022.12.7 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py310h255011f_3 conda-forge cfitsio 4.2.0 hd9d235c_0 conda-forge cftime 1.6.2 py310hde88566_1 conda-forge charset-normalizer 2.1.1 pyhd8ed1ab_0 conda-forge click 8.1.3 unix_pyhd8ed1ab_2 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.1.2 pyhd8ed1ab_0 conda-forge contourpy 1.0.7 py310hdf3cbec_0 conda-forge corner 2.2.1 pyhd8ed1ab_0 conda-forge cryptography 39.0.0 py310h34c0648_0 conda-forge curl 7.87.0 hdc1c0ab_0 conda-forge cycler 0.11.0 pyhd8ed1ab_0 conda-forge debugpy 1.6.6 py310heca2aa9_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge emcee 3.1.4 pyhd8ed1ab_0 conda-forge enterprise-pulsar 3.3.4.dev2+g1ca6d38 pypi_0 pypi entrypoints 0.4 pyhd8ed1ab_0 conda-forge ephem 4.1.4 py310h1fa729e_0 conda-forge exceptiongroup 1.1.0 pyhd8ed1ab_0 conda-forge executing 1.2.0 pyhd8ed1ab_0 conda-forge fftw 3.3.10 nompi_hf0379b8_106 conda-forge flake8 6.0.0 pyhd8ed1ab_0 conda-forge fonttools 4.38.0 py310h5764c6d_1 conda-forge freetype 2.12.1 hca18f0e_1 conda-forge future 0.18.3 pyhd8ed1ab_0 conda-forge gmp 6.2.1 h58526e2_0 conda-forge gsl 2.7 he838d99_0 conda-forge hdf4 4.2.15 h9772cbc_5 conda-forge hdf5 1.12.2 nompi_h4df4325_101 conda-forge healpy 1.16.2 py310h63f94f6_0 conda-forge icu 70.1 h27087fc_0 conda-forge idna 3.4 pyhd8ed1ab_0 conda-forge importlib-metadata 6.0.0 pyha770c72_0 conda-forge importlib_metadata 6.0.0 hd8ed1ab_0 conda-forge iniconfig 2.0.0 pyhd8ed1ab_0 conda-forge ipykernel 6.21.0 pyh210e3f2_0 conda-forge ipython 8.9.0 pyh41d4057_0 conda-forge jedi 0.18.2 pyhd8ed1ab_0 conda-forge jpeg 9e h166bdaf_2 conda-forge jplephem 2.18 pyh78acc04_0 conda-forge jupyter_client 8.0.2 pyhd8ed1ab_0 conda-forge jupyter_core 5.2.0 py310hff52083_0 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge kiwisolver 1.4.4 py310hbf28c38_1 conda-forge krb5 1.20.1 h81ceb04_0 conda-forge lcms2 2.14 hfd0df8a_1 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge lerc 4.0.0 h27087fc_0 conda-forge libaec 1.0.6 hcb278e6_1 conda-forge libblas 3.9.0 16_linux64_openblas conda-forge libbrotlicommon 1.0.9 h166bdaf_8 conda-forge libbrotlidec 1.0.9 h166bdaf_8 conda-forge libbrotlienc 1.0.9 h166bdaf_8 conda-forge libcblas 3.9.0 16_linux64_openblas conda-forge libcurl 7.87.0 hdc1c0ab_0 conda-forge libdeflate 1.17 h0b41bf4_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-ng 12.2.0 h65d4601_19 conda-forge libgfortran-ng 12.2.0 h69a702a_19 conda-forge libgfortran5 12.2.0 h337968e_19 conda-forge libgomp 12.2.0 h65d4601_19 conda-forge libhwloc 2.8.0 h32351e8_1 conda-forge libiconv 1.17 h166bdaf_0 conda-forge libjpeg-turbo 2.1.4 h166bdaf_0 conda-forge liblapack 3.9.0 16_linux64_openblas conda-forge libnetcdf 4.8.1 nompi_h261ec11_106 conda-forge libnghttp2 1.51.0 hff17c54_0 conda-forge libnsl 2.0.0 h7f98852_0 conda-forge libopenblas 0.3.21 pthreads_h78a6416_3 conda-forge libpng 1.6.39 h753d276_0 conda-forge libsodium 1.0.18 h36c2ea0_1 conda-forge libsqlite 3.40.0 h753d276_0 conda-forge libssh2 1.10.0 hf14f497_3 conda-forge libstdcxx-ng 12.2.0 h46fd767_19 conda-forge libstempo 2.4.5 py310h769672d_1 conda-forge libtiff 4.5.0 h6adf6a1_2 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libwebp-base 1.2.4 h166bdaf_0 conda-forge libxcb 1.13 h7f98852_1004 conda-forge libxml2 2.10.3 h7463322_0 conda-forge libzip 1.9.2 hc929e4a_1 conda-forge libzlib 1.2.13 h166bdaf_4 conda-forge loguru 0.6.0 py310hff52083_2 conda-forge matplotlib-base 3.6.3 py310he60537e_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mccabe 0.7.0 pyhd8ed1ab_0 conda-forge metis 5.1.0 h58526e2_1006 conda-forge mpfr 4.1.0 h9202a9a_1 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mypy_extensions 0.4.3 py310hff52083_6 conda-forge ncurses 6.3 h27087fc_1 conda-forge nest-asyncio 1.5.6 pyhd8ed1ab_0 conda-forge nestle 0.2.0 py_0 conda-forge netcdf4 1.6.2 nompi_py310h55e1e36_100 conda-forge numpy 1.24.1 py310h8deb116_0 conda-forge openjpeg 2.5.0 hfec8fc6_2 conda-forge openssl 3.0.7 h0b41bf4_2 conda-forge packaging 23.0 pyhd8ed1ab_0 conda-forge pandas 1.5.3 py310h9b08913_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge pathspec 0.11.0 pyhd8ed1ab_0 conda-forge pexpect 4.8.0 pyh1a96a4e_2 conda-forge pgplot 5.2.2 h68245ad_1008 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 9.4.0 py310h4927cde_0 conda-forge pint-pulsar 0.9.3 py310hff52083_0 conda-forge pip 23.0 pyhd8ed1ab_0 conda-forge platformdirs 2.6.2 pyhd8ed1ab_0 conda-forge pluggy 1.0.0 pyhd8ed1ab_5 conda-forge pooch 1.6.0 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.36 pyha770c72_0 conda-forge psutil 5.9.4 py310h5764c6d_0 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge pycodestyle 2.10.0 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pyerfa 2.0.0.1 py310hde88566_3 conda-forge pyflakes 3.0.1 pyhd8ed1ab_0 conda-forge pygments 2.14.0 pyhd8ed1ab_0 conda-forge pyopenssl 23.0.0 pyhd8ed1ab_0 conda-forge pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyha2e5f31_6 conda-forge pytest 7.2.1 pyhd8ed1ab_0 conda-forge pytest-runner 6.0.0 pyhd8ed1ab_0 conda-forge python 3.10.8 h4a9ceb5_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python_abi 3.10 3_cp310 conda-forge pytz 2022.7.1 pyhd8ed1ab_0 conda-forge pyyaml 6.0 py310h5764c6d_5 conda-forge pyzmq 25.0.0 py310h059b190_0 conda-forge readline 8.1.2 h0f457ee_0 conda-forge requests 2.28.2 pyhd8ed1ab_0 conda-forge scikit-sparse 0.4.8 py310hedf46ba_1 conda-forge scipy 1.10.0 py310h8deb116_0 conda-forge setuptools 66.1.1 pyhd8ed1ab_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge suitesparse 5.10.1 h9e50725_1 conda-forge tbb 2021.7.0 h924138e_1 conda-forge tempo2 2022.05.1 h1c8e422_2 conda-forge tk 8.6.12 h27826a3_0 conda-forge tokenize-rt 5.0.0 pypi_0 pypi tomli 2.0.1 pyhd8ed1ab_0 conda-forge tornado 6.2 py310h5764c6d_1 conda-forge traitlets 5.9.0 pyhd8ed1ab_0 conda-forge typing-extensions 4.4.0 hd8ed1ab_0 conda-forge typing_extensions 4.4.0 pyha770c72_0 conda-forge tzdata 2022g h191b570_0 conda-forge uncertainties 3.1.7 pyhd8ed1ab_0 conda-forge unicodedata2 15.0.0 py310h5764c6d_0 conda-forge urllib3 1.26.14 pyhd8ed1ab_0 conda-forge wcwidth 0.2.6 pyhd8ed1ab_0 conda-forge wheel 0.38.4 pyhd8ed1ab_0 conda-forge xarray 2023.1.0 pyhd8ed1ab_0 conda-forge xarray-einstats 0.5.1 pyhd8ed1ab_0 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libx11 1.7.2 h7f98852_0 conda-forge xorg-libxau 1.0.9 h7f98852_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.6 h166bdaf_0 conda-forge yaml 0.2.5 h7f98852_2 conda-forge zeromq 4.3.4 h9c3ff4c_1 conda-forge zipp 3.12.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 h166bdaf_4 conda-forge zstd 1.5.2 h3eb15da_6 conda-forge
Have you found a solution? I also have this question.
The problem seems to be in libstempo. See https://github.com/vallis/libstempo/issues/51.
I have a conda environment with astropy installed but I still get the message "Warning: cannot find astropy, units support will not be available."
conda list
yields: