Skip to content

Protobuf issue - Lutris Battle.net source unavailable

Description:

When running lutris it gives the following error:

❯ lutris --version
2024-09-24 15:10:29,351: The Battle.net source is unavailable because Google protobuf could not be loaded: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
lutris-0.5.17

This is because Arch uses the latest version of protobuf which is not compatible with Lutris. This has been fixed in the lutris-git AUR repo by regenerating from the original proto, which unfortunately isn't in the main Lutris repo.

https://aur.archlinux.org/packages/lutris-git

Additional info:

Steps to reproduce:

  1. Run lutris from the command line.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information