Skip to content

Error on installation? #3

@ghost

Description

I follow your guide to install paddle on Pi 4 (https://qengineering.eu/install-paddlepaddle-on-raspberry-pi-4.html)
After the installation, you say in order to check if everything is ok, to launch

python3
import paddle.fluid as pd

At this point a get this error

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/paddle/__init__.py", line 25, in <module>
from .framework import monkey_patch_variable
File "/usr/local/lib/python3.9/dist-packages/paddle/framework/__init__.py", line 17, in <module>
from . import random # noqa: F401
File "/usr/local/lib/python3.9/dist-packages/paddle/framework/random.py", line 16, in <module>
import paddle.fluid as fluid
File "/usr/local/lib/python3.9/dist-packages/paddle/fluid/__init__.py", line 36, in <module>
from . import framework
File "/usr/local/lib/python3.9/dist-packages/paddle/fluid/framework.py", line 35, in <module>
from .proto import framework_pb2
File "/usr/local/lib/python3.9/dist-packages/paddle/fluid/proto/framework_pb2.py", line 33, in <module>
_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

Is the installation successfull or not? How can I fix it?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions