Closed qzhang234 closed 2 years ago
What version of apstools? This import is new in the latest version. You might need to update.
We installed a new bluesky_2022_3
conda environment (with latest apstools 1.6.2) and made this setting (export BLUESKY_CONDA_ENV=bluesky_2022_3
) in ~/.bashrc
file.
@prjemian The new lambda2M definition from branch 150-lambda is encountering errors when starting Bluesky. The error message is atttached.
Error message from terminal
``` kouga% bluesky8IDI Python 3.9.12 (main, Apr 5 2022, 06:56:58) Type 'copyright', 'credits' or 'license' for more information IPython 8.3.0 -- An enhanced Interactive Python. Type '?' for help. IPython profile: bluesky Activating auto-logging. Current session state plus future input saved. Filename : /home/beams10/8IDIUSER/bluesky_data/2022/2022-2/.logs/ipython_console.log Mode : rotate Output logging : True Raw input log : False Timestamping : True State : active I Tue-00:50:30 - ############################################################ startup I Tue-00:50:30 - logging started I Tue-00:50:30 - logging level = 10 I Tue-00:50:30 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/collection.py I Tue-00:50:30 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/mpl/console.py I Tue-00:50:32 - bluesky framework I Tue-00:50:32 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/check_python.py I Tue-00:50:32 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/check_bluesky.py I Tue-00:50:34 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/initialize.py I Tue-00:50:37 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/eiger_handler.py I Tue-00:50:37 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/user_dir.py I Tue-00:50:37 - User code directory: /home/beams10/8IDIUSER/.ipython-bluesky/user I Tue-00:50:37 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/metadata.py I Tue-00:50:37 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/framework/callbacks.py I Tue-00:50:38 - writing to SPEC file: /home/beams10/8IDIUSER/bluesky_data/2022/2022-2/20220719-005038.dat I Tue-00:50:38 - >>>> Using default SPEC file name <<<< I Tue-00:50:38 - file will be created when bluesky ends its next scan I Tue-00:50:38 - to change SPEC file, use command: newSpecFile('title') I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/aps_source.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/pss.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/foe.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/monochromator.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/be_window.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/actuators.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/attenuators.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/crl.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/detector_stages.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/epid.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/fly.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/lakeshore.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/motors.py I Tue-00:50:38 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/preamps.py I Tue-00:50:39 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/util_components.py I Tue-00:50:39 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/sample_stage.py I Tue-00:50:39 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/data_management.py I Tue-00:50:40 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/scaler.py I Tue-00:50:42 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/slits.py I Tue-00:50:42 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/soft_glue_fpga.py I Tue-00:50:42 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/tables.py I Tue-00:50:42 - /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/instrument/devices/ad_eiger.py [TerminalIPythonApp] WARNING | Unknown error in handling startup files: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) File ~/.conda/envs/bluesky_2022_2/lib/python3.9/site-packages/IPython/core/shellapp.py:360, in InteractiveShellApp._exec_file(self, fname, shell_futures) 356 self.shell.safe_execfile_ipy(full_filename, 357 shell_futures=shell_futures) 358 else: 359 # default to python, even without extension --> 360 self.shell.safe_execfile(full_filename, 361 self.shell.user_ns, 362 shell_futures=shell_futures, 363 raise_exceptions=True) 364 finally: 365 sys.argv = save_argv File ~/.conda/envs/bluesky_2022_2/lib/python3.9/site-packages/IPython/core/interactiveshell.py:2737, in InteractiveShell.safe_execfile(self, fname, exit_ignore, raise_exceptions, shell_futures, *where) 2735 try: 2736 glob, loc = (where + (None, ))[:2] -> 2737 py3compat.execfile( 2738 fname, glob, loc, 2739 self.compile if shell_futures else None) 2740 except SystemExit as status: 2741 # If the call was made with 0 or None exit status (sys.exit(0) 2742 # or sys.exit() ), don't bother showing a traceback, as both of (...) 2748 # For other exit status, we show the exception unless 2749 # explicitly silenced, but only in short form. 2750 if status.code: File ~/.conda/envs/bluesky_2022_2/lib/python3.9/site-packages/IPython/utils/py3compat.py:55, in execfile(fname, glob, loc, compiler) 53 with open(fname, "rb") as f: 54 compiler = compiler or compile ---> 55 exec(compiler(f.read(), fname, "exec"), glob, loc) File /home/beams10/8IDIUSER/.ipython-bluesky/profile_bluesky/startup/00-instrument.py:6, in