NSLS-II / docs

Standards Documentation for NSLS-II DAQ and Analysis
https://nsls-ii.github.io
BSD 2-Clause "Simplified" License
2 stars 13 forks source link

Bluesky documentation API update #72

Closed jrmlhermitte closed 2 years ago

jrmlhermitte commented 6 years ago

@danielballan from https://github.com/NSLS-II/NSLS-II.github.io/pull/7

Update of some of the bluesky documentation using the new API.

jrmlhermitte commented 6 years ago

I'm not sure why errors fail. Locally, failure happens on from ophyd.sim import motor, det. However, in my same environment, this command works. Log:

TypeError: expected string or bytes-like object ``` WARNING: /home/julienl/research/projects/nsls2-docs/source/_cookbook/adaptive-steps.py failed to execute correctly: Traceback (most recent call last): File "/home/julienl/research/projects/nsls2-docs/source/_cookbook/adaptive-steps.py", line 31, in from ophyd.sim import motor, det File "/home/julienl/research/projects/ophyd/ophyd/sim.py", line 866, in globals().update(hw().__dict__) File "/home/julienl/research/projects/ophyd/ophyd/sim.py", line 780, in hw motor = SynAxis(name='motor') File "/home/julienl/research/projects/ophyd/ophyd/sim.py", line 269, in __init__ super().__init__(name=name, parent=parent) File "/home/julienl/research/projects/ophyd/ophyd/device.py", line 739, in __init__ [getattr(self, attr) for attr, cpt in self._sig_attrs.items() File "/home/julienl/research/projects/ophyd/ophyd/device.py", line 740, in if not cpt.lazy] File "/home/julienl/research/projects/ophyd/ophyd/device.py", line 176, in __get__ instance._signals[self.attr] = self.create_component(instance) File "/home/julienl/research/projects/ophyd/ophyd/device.py", line 131, in create_component cpt_inst = self.cls(parent=instance, **kwargs) File "/home/julienl/research/projects/ophyd/ophyd/signal.py", line 56, in __init__ from . import control_layer as cl File "/home/julienl/research/projects/ophyd/ophyd/control_layer.py", line 13, in from ._pyepics_shim import setup, caput, caget, get_pv, pv_form, thread_class File "/home/julienl/research/projects/ophyd/ophyd/_pyepics_shim.py", line 223, in pv_form = get_pv_form(epics.__version__) File "/home/julienl/research/projects/ophyd/ophyd/_pyepics_shim.py", line 207, in get_pv_form version = parse_version(_fix_git_versioning(version)) File "/home/julienl/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 211, in parse_version return SetuptoolsVersion(v) File "/home/julienl/anaconda3/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/version.py", line 200, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object ```
danielballan commented 6 years ago

Hmm. 10 minutes of digging did not make the problem clear. I'll try to dig deeper shortly.

jrmlhermitte commented 6 years ago

same (hence the big delay here :-/) will also try to dig in later

tacaswell commented 6 years ago

what version of pyepics is being used?