BCDA-APS / use_bluesky

Tools to help APS use the Bluesky Framework (https://blueskyproject.io/)
8 stars 3 forks source link

APS `dm` package cannot be found #113

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

While trying to create the aps object from the bluesky_training instrument at APS 6-ID-B, received a package not found exception for the aps-dm-api package.

The error comes from the conda package selection process, which has chosen to install python 3.9 (see the readme_renderer package in the list below, for example) but also installed the aps-dm-api package for python 3.7. This is clearly an error that resulted in the package not found.

(base) bash-4.2$ conda env list
# conda environments:
#
base                  *  /APSshare/miniconda/x86_64
bluesky_2022_1           /home/beams/USER6IDB/.conda/envs/bluesky_2022_1
                         /home/beams/USER6IDB/anaconda3
                         /home/beams/USER6IDB/anaconda3/envs/Anaconda2.7
                         /home/beams/USER6IDB/anaconda3/envs/Anaconda2.7.2
                         /home/beams/USER6IDB/anaconda3/envs/bluesky_2021_2
                         /home/beams/USER6IDB/anaconda3/envs/py38

(base) bash-4.2$ conda activate bluesky_2022_1
(bluesky_2022_1) bash-4.2$ conda list dm
# packages in environment at /home/beams/USER6IDB/.conda/envs/bluesky_2022_1:
#
# Name                    Version                   Build  Channel
adl2pydm                  0+unknown                pypi_0    pypi
aps-dm-api                5.0.3                    py37_1    aps-anl-tag
pydm                      1.11.1             pyhd8ed1ab_0    conda-forge
readme_renderer           24.0             py39h06a4308_0  
tqdm                      4.62.3             pyhd3eb1b0_1  
prjemian commented 2 years ago

Another installation chose python 3.8 and aps-dm-api using this same version of python. Can install for 6-ID-B using an explicit environment .yml file built from the python 3.8 installation.

Question remains what went wrong?

prjemian commented 2 years ago

With the installation that "failed", the two relevant specifications are: https://github.com/BCDA-APS/use_bluesky/blob/83e80ac9f3fd41b46c061a5dd79262e35c176daa/install/environment_2022_1.yml#L14 https://github.com/BCDA-APS/use_bluesky/blob/83e80ac9f3fd41b46c061a5dd79262e35c176daa/install/environment_2022_1.yml#L30

prjemian commented 2 years ago

Received note by private message the conda package of aps-dm-api is not ready to run on py3.9+.

prjemian commented 2 years ago

Need to restrict further to py3.7

prjemian commented 2 years ago

Also note that aps-dm-api has an osx-64 version conda package.