You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrade python to 3.11 we started get exceptions:
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/streams/native.py", line 74, in read
column = read_column(self.context, column_type, n_rows,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/columns/service.py", line 144, in read_column
return col.read_data(n_items, buf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/columns/base.py", line 102, in read_data
return self._read_data(n_items, buf, nulls_map=nulls_map)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/columns/base.py", line 108, in _read_data
return self.after_read_items(items, nulls_map)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/columns/enumcolumn.py", line 48, in after_read_items
return tuple(enum_cls(item).name for item in items)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/clickhouse_driver/columns/enumcolumn.py", line 48, in <genexpr>
return tuple(enum_cls(item).name for item in items)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 211, in __get__
return self.fget(instance)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 1247, in name
return self._name_
AttributeError: 'Enum8' object has no attribute '_name_'
After this error every query to the server finished with the exception. Restart python process helps. I don't know this is a issue clickhouse_driver or aioch
I make new connection for every query.
To Reproduce
My colleges and I couldn't make this one.
Expected behavior
A clear and concise description of what you expected to happen.
Versions
clickhouse_driver 0.2.6
aioch 0.2
Python 3.11.5
The text was updated successfully, but these errors were encountered:
No, I cannot and I didn't try. Because my code depends on asyncio.
Well, maybe a problem is in the dynamic enum ganarated... But I couldn't find proofs.
Describe the bug
After upgrade python to 3.11 we started get exceptions:
After this error every query to the server finished with the exception. Restart python process helps. I don't know this is a issue
clickhouse_driver
oraioch
I make new connection for every query.
To Reproduce
My colleges and I couldn't make this one.
Expected behavior
A clear and concise description of what you expected to happen.
Versions
The text was updated successfully, but these errors were encountered: