Webscoket V3 error when subscribing for data

Getting below error when runnning websocket v3 code.

from google.protobuf import runtime_version as _runtime_version

ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’

I have downgraded protobuf multiple times upto 3 versions.
Can anyone tell me which versions of protobuf, tensorflow or any other packages that I need to have ? I have python 3.8 and 3.12 using 3.8 for this code.
protobuf using 3.20.3 and 3.19.5 versions but nothing is helping.