Conversation
|
Power-cycled the PR to pick up the new version of |
|
@tacaswell, we're trying to update the CI at PDF and we came across this error: [E 2021-03-09 16:18:44,840.840 nslsii.ipython logutils:56] could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/home/vsts/.config/acq/glbl.yml", line 15, column 13
Traceback (most recent call last):
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code
return self.construct_document(node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 60, in construct_document
for dummy in generator:
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 413, in construct_yaml_map
value = self.construct_mapping(node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 218, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 143, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 100, in construct_object
data = constructor(self, node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 429, in construct_undefined
node.start_mark)
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/home/vsts/.config/acq/glbl.yml", line 15, column 13We were able to reproduce the error locally by copying the from xpdacq.xpdacq_conf import (glbl_dict, configure_device,
_reload_glbl, _set_glbl,
_load_beamline_config)from https://github.com/NSLS-II-PDF/profile_collection/blob/mnt_prep_for_demo/startup/94-load.py#L19-L21 ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/Users/abigailgiles/.config/acq/glbl.yml", line 15, column 13 cc @st3107 |
|
I will look into this.
…On Tue, Mar 9, 2021 at 11:50 AM AbbyGi ***@***.***> wrote:
@tacaswell <https://github.com/tacaswell>, we're trying to update the CI
at PDF and we came across this error:
[E 2021-03-09 16:18:44,840.840 nslsii.ipython logutils:56] could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/home/vsts/.config/acq/glbl.yml", line 15, column 13Traceback (most recent call last):
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code
return self.construct_document(node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 60, in construct_document
for dummy in generator:
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 413, in construct_yaml_map
value = self.construct_mapping(node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 218, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 143, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 100, in construct_object
data = constructor(self, node)
File "/home/vsts/miniconda/envs/collection-2021-1.0/lib/python3.7/site-packages/yaml/constructor.py", line 429, in construct_undefined
node.start_mark)yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/home/vsts/.config/acq/glbl.yml", line 15, column 13
We were able to reproduce the error locally by copying the pdf.yml and
glbl.yml files from your comment (#23 (comment)
<#23 (comment)>)
and then importing
from xpdacq.xpdacq_conf import (glbl_dict, configure_device,
_reload_glbl, _set_glbl,
_load_beamline_config)
from
https://github.com/NSLS-II-PDF/profile_collection/blob/mnt_prep_for_demo/startup/94-load.py#L19-L21
ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:numpy.core.multiarray.scalar'
in "/Users/abigailgiles/.config/acq/glbl.yml", line 15, column 13
cc @st3107 <https://github.com/st3107>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI27NDZUUCS4ITSA6LIGGFTTCY7UVANCNFSM4YPJHUFA>
.
--
[image: photo]
*Songsheng Tao*
Ph. D. student, Columbia University
347-749-7947
Create your own email signature
<https://www.wisestamp.com/create-own-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=>
|
|
TODO next: [E 2021-03-09 17:12:57,318.318 nslsii.ipython logutils:56] [Errno 2] No such file or directory: '/mnt/data/bnl/xpdacq_special/data/xpdConfig/xpd_beamline_config.yml' |
|
I just figured out the xpdAcq configuration system. In total, the configuration requires two files: (a) a basic configuration yaml file for the software (b) a xpd_beamline_config.yaml for the metadata of the beamline. How the configuration are loaded:
~/.config/acq If it finds one, load it to dictionary, else use default simulation configuration dictionary. Then, it will process the data in the dictionary and generate more key value pairs (detail in
|
|
Thus, the solution to the error is that we can add a command in CI to create a yaml file with the content shown below at the location glbl[ARCHIVE_ROOT_DIR]/glbl[BLCONFIG_DIR_NAME]/glbl[BLCONFIG_NAME]. Or we can add the command in ipython startup to create this file. |
|
Sorry for the typos. It should be like this: Also, the path to xpd_beamline_config.yaml should be glbl[BASE_DIR]/glbl[BLCONFIG_DIR_NAME]/glbl[BLCONFIG_NAME]. I corrected them in my last comment. |
This was a syntax error that never got exercised.
|
Thanks, @tacaswell. |
Updating to test latest environment