NSLS-II-PDF / profile_collection

Collection profile
0 stars 4 forks source link

Deployment 2021-1 #22

Open gwbischof opened 3 years ago

gwbischof commented 3 years ago

Previsit

Housekeeping

Test deployment

gwbischof commented 3 years ago

During the testing phase of the deployment, we noticed that documents were not published to ZMQ as expected. We saw that it works correctly for older environments.

The cause of this was that this line fails in the newest environment, which prevents the remaining startup scripts from loading. https://github.com/NSLS-II-PDF/profile_collection/blob/master/startup/94-load.py#L79

We are seeing this error when the previous line executes: image

Which appears to be caused by this: image

danielballan commented 3 years ago

A fix has been applied upstream in xpdacq and released in xpdacq 0.12.0. It needs to be verified at PDF.

The relevant commit is https://github.com/xpdAcq/xpdAcq/pull/580/commits/d0070ec45ee4f064d5d65744410c02944552036f. It removes use of pyFAI.gui.cli_calibration (which evidently imports PyQt5) and uses pyFAI.calibrant instead.

I propose to source-install xpdacq 0.12.0 to verify and then go through the process of making a new, fixed conda environment if it works.

tacaswell commented 3 years ago

This is what the preload logic in bsui does, but I think the logic is too restrictive (only looking for 2020-2.0* in the name).