Giter Club home page Giter Club logo

departure-board-servers-python's People

Contributors

spujadas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

woll78

departure-board-servers-python's Issues

TypeError: Descriptors cannot not be created directly

pi@raspberrypi:~ $ departure-server
Traceback (most recent call last):
File "/home/pi/.local/bin/departure-server", line 5, in
from departure.cli.server import entry_point
File "/home/pi/.local/lib/python3.9/site-packages/departure/cli/server.py", line 42, in
submodule = importlib.import_module(".cli", name)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/pi/.local/lib/python3.9/site-packages/departure/renderer/led_matrix/cli.py", line 10, in
import departure.board.board_updater as board_updater
File "/home/pi/.local/lib/python3.9/site-packages/departure/board/board_updater.py", line 5, in
import departure.board.departure_pb2 as departure_pb2
File "/home/pi/.local/lib/python3.9/site-packages/departure/board/departure_pb2.py", line 34, in
_descriptor.EnumValueDescriptor(
File "/home/pi/.local/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 796, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.