Skip to content

Commit

Permalink
version-update done
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Feb 19, 2025
1 parent 3fbf9c1 commit be15edb
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@
author="Yoti",
author_email="[email protected]",
install_requires=[
"deprecated==1.2.13",
"deprecated>=1.2.13",
"cryptography>=2.2.1",
"protobuf==3.13.0",
"protobuf>=3.13.0",

This comment has been minimized.

Copy link
@benedikt-bartscher

benedikt-bartscher Feb 25, 2025

src/.../face_capture/_face_capture.py:26: in <module>
    from yoti_python_sdk.http import (
/venv/lib/python3.13/site-packages/yoti_python_sdk/__init__.py:5: in <module>
    from yoti_python_sdk.client import Client
/venv/lib/python3.13/site-packages/yoti_python_sdk/client.py:9: in <module>
    from yoti_python_sdk.activity_details import ActivityDetails
/venv/lib/python3.13/site-packages/yoti_python_sdk/activity_details.py:8: in <module>
    from yoti_python_sdk import attribute_parser, config
/venv/lib/python3.13/site-packages/yoti_python_sdk/attribute_parser.py:8: in <module>
    from yoti_python_sdk import multivalue
/venv/lib/python3.13/site-packages/yoti_python_sdk/multivalue.py:2: in <module>
    from yoti_python_sdk.protobuf import protobuf
/venv/lib/python3.13/site-packages/yoti_python_sdk/protobuf/protobuf.py:5: in <module>
    from yoti_python_sdk.protobuf.attribute_public_api import Attribute_pb2, List_pb2
/venv/lib/python3.13/site-packages/yoti_python_sdk/protobuf/attribute_public_api/Attribute_pb2.py:15: in <module>
    import ContentType_pb2 as ContentType__pb2
/venv/lib/python3.13/site-packages/yoti_python_sdk/protobuf/attribute_public_api/ContentType_pb2.py:32: in <module>
    _descriptor.EnumValueDescriptor(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'google.protobuf.descriptor.EnumValueDescriptor'>, name = 'UNDEFINED', index = 0, number = 0, type = None, options = None, serialized_options = None
create_key = None

    def __new__(cls, name, index, number,
                type=None,  # pylint: disable=redefined-builtin
                options=None, serialized_options=None, create_key=None):
>     _message.Message._CheckCalledFromGeneratedFile()
E     TypeError: Descriptors cannot be created directly.
E     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.
E     If you cannot immediately regenerate your protos, some other possible workarounds are:
E      1. Downgrade the protobuf package to 3.20.x or lower.
E      2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
E
E     More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

/venv/lib/python3.13/site-packages/google/protobuf/descriptor.py:920: TypeError

Seems like you need to update your proto generated code or add a version constraint for the protobuf dependency to lock it below 3.20.

"requests>=2.11.1",
"future>=0.18.2",
"asn1==2.2.0",
"asn1>=2.2.0",
"pyopenssl>=18.0.0",
"iso8601==1.0.2",
"wheel==0.37.1",
"pytz==2022.1",
"iso8601>=1.0.2",
"wheel>=0.37.1",
"pytz>=2022.1",
],
extras_require={
"examples": [
"Django>=3.0.7",
"Flask>=1.0.4",
"python-dotenv>=0.7.1",
"django-sslserver>=0.22.0",
"Werkzeug==2.1.2",
"Werkzeug>=2.1.2",
],
"dev": [
"pre-commit==2.16.0",
"pre-commit>=2.16.0",
"pytest>=4.6.11",
"pytest-cov>=2.7.1",
"pylint==1.9.4",
"pylint>=1.9.4",
"pylint-exit>=1.1.0",
"python-coveralls==2.9.3",
"coverage==4.5.4",
"mock==2.0.0",
"virtualenv==20.15.1",
"flake8==4.0.1",
"pip-tools==6.6.2",
"python-coveralls>=2.9.3",
"coverage>=4.5.4",
"mock>=2.0.0",
"virtualenv>=20.15.1",
"flake8>=4.0.1",
"pip-tools>=6.6.2",
],
},
classifiers=[
Expand Down

0 comments on commit be15edb

Please sign in to comment.