-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
I recently moved to python 3.11.5 and something has gone wonky on my end. Simulated cameras dont return any data and produce the error.
2023-09-12 17:56:48,402:TestCamera (microscope.abc):ERROR:PID 16353: in _fetch_loop:
Traceback (most recent call last):
File "/Users/ID/src/microscope/microscope/abc.py", line 726, in _fetch_loop
data = self._fetch_data()
^^^^^^^^^^^^^^^^^^
File "/Users/ID/src/microscope/microscope/simulators/__init__.py", line 251, in _fetch_data
image = self._image_generator.get_image(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ID/src/microscope/microscope/simulators/__init__.py", line 108, in get_image
size = tuple(d + 2 for d in self._font.getsize(text))
^^^^^^^^^^^^^^^^^^
AttributeError: 'ImageFont' object has no attribute 'getsize'
I assume I have a wrong package version or the API has changed recently and I have a newer than expected version.
Metadata
Metadata
Assignees
Labels
No labels