Open Elizavetapet opened 6 months ago
I have exactly the same issue too. It has something to do with the tzlocal and tzutils functions, the get_localzone_name() function seems to not be present anymore, whereas get_localzone() does work.
So my pragmatic solution was to navigate to my local ~AppData\Local\anaconda3\Lib\site-packages\clickhouse_connect\driver\tzutil.py path, open tzutil.py, and delete the "_name" inside the normalize_timezone function definition at line 29 so it becomes: local_name = tzlocal.get_localzone().
Now it works for me :-)
@MTraun that worked for me as well
Checklist
Impacted product
What happened?
can't connect to Clickhouse database.
import clickhouse_connect client = clickhouse_connect.get_client(host='myhost.ru', port=myport, username='myname', password='mypassword')
AttributeError: module 'tzlocal' has no attribute 'get_localzone_name'
Expected behavior or outcome
I want to connect to Clickhouse, like it was with previous version of Anaconda
Conda info
Conda config
Conda list
Additional information
No response