Protobuf UserWarning messages

View as MarkdownOpen in Claude

After resolving the reference errors, using the TWSAPI may print a UserWarning upon connection. These warnings are predominantly cosmetic and can be ignored. These issues are caused by the Pypi release of protobuf running version 6.30.1 and above, while the TWS API is built with 5.29.3. The warning is simply notifying users that their version is 1 major version different. However, given protobuf is currently backgwards compatible, this should not present any issues with the implementation. Developers uncomfortable with the warning messages have a few options:

  1. Recompile Protobuf against their Github 5.29.3 version to maintain parity with the TWS API implementations.
  2. Users can also modify the code source, linked by the protobuf warning, and simply remove lines 94 and on from the runtime_version.py file.