Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_and_wait deprecated in ophyd 1.7.0 #12

Open
mrakitin opened this issue Oct 13, 2022 · 0 comments
Open

set_and_wait deprecated in ophyd 1.7.0 #12

mrakitin opened this issue Oct 13, 2022 · 0 comments

Comments

@mrakitin
Copy link
Member

https://blueskyproject.io/ophyd/user_v1/reference/release_notes.html#id1

That causes issues when loading startup files with that version of ophyd:

[E 2022-10-13 21:26:58,905.905 nslsii.ipython  logutils:56] cannot import name 'set_and_wait' from 'ophyd' (/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/ophyd/__init__.py)
Traceback (most recent call last):
  File "/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3398, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-1-19fca0ca65e8>", line 13, in <cell line: 9>
    ip.parent._exec_file(f)
  File "/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/IPython/core/shellapp.py", line 360, in _exec_file
    self.shell.safe_execfile(full_filename,
  File "/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 2738, in safe_execfile
    py3compat.execfile(
  File "/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/IPython/utils/py3compat.py", line 55, in execfile
    exec(compiler(f.read(), fname, "exec"), glob, loc)
  File "/home/vsts/work/1/s/startup/05-aux_ophyd_classes.py", line 1, in <module>
    from ophyd import (EpicsMotor, Device, Kind, Component as Cpt,
ImportError: cannot import name 'set_and_wait' from 'ophyd' (/home/vsts/miniconda/envs/2022-3.1-py39/lib/python3.9/site-packages/ophyd/__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant