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

databroker v2.0 causes TypeError #336

Open
prjemian opened this issue May 23, 2024 · 3 comments
Open

databroker v2.0 causes TypeError #336

prjemian opened this issue May 23, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@prjemian
Copy link
Contributor

prjemian commented May 23, 2024

This code:

@pytest.fixture
def cat():
return databroker.temp().v2

triggers this exception in Py3.11 CI:

2024-05-23T17:36:41.4183877Z descriptor = <slot wrapper '__call__' of 'type' objects>
2024-05-23T17:36:41.4184587Z obj = <property object at 0x7f6832ff93f0>
2024-05-23T17:36:41.4184989Z 
2024-05-23T17:36:41.4185183Z     def _descriptor_get(descriptor, obj):
2024-05-23T17:36:41.4185749Z         if isclass(descriptor):
2024-05-23T17:36:41.4186242Z             return descriptor
2024-05-23T17:36:41.4186914Z         get = getattr(type(descriptor), '__get__', _sentinel)
2024-05-23T17:36:41.4187643Z         if get is _sentinel:
2024-05-23T17:36:41.4188104Z             return descriptor
2024-05-23T17:36:41.4188630Z >       return get(descriptor, obj, type(obj))
2024-05-23T17:36:41.4189711Z E       TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
2024-05-23T17:36:41.4190472Z 
2024-05-23T17:36:41.4191067Z ../../../micromamba/envs/hklpy-test-py-3.11/lib/python3.11/inspect.py:2432: TypeError
2024-05-23T17:36:41.4192165Z ______________ ERROR at setup of test_fourc_run_orientation_info _______________
@prjemian prjemian added the bug label May 23, 2024
@prjemian prjemian added this to the v1.1.1 milestone May 23, 2024
@prjemian prjemian self-assigned this May 23, 2024
@prjemian
Copy link
Contributor Author

Root cause is installation of databroker 2.0.0b40 in the workflow.

Project dependencies:

hklpy/pyproject.toml

Lines 50 to 59 in 782b8ae

dependencies = [
"apischema",
"databroker",
"numpy",
"ophyd",
"pint",
"pygobject",
"pyRestTable",
"tqdm",
]

Workflow installs Python with these additional dependencies:

create-args: >-
coveralls
pytest
pytest-cov
python=${{ matrix.python-version }}

Could pin databroker=1.2 in the workflow.

@prjemian
Copy link
Contributor Author

@prjemian
Copy link
Contributor Author

More a problem about what code is used to subscribe to the RE documents.

@prjemian prjemian modified the milestones: v1.1.1, v1.1.2 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant