Failing to import photo_client/models/v1_beta1_photo_identifier_summary.py
👓 What did you see?
Tried to run the following import:
>>> from identitylib.photo_client.models import v1_beta1_photo_identifier_summary
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/__init__.py", line 21, in <module>
from identitylib.photo_client.api.api_versions_api import APIVersionsApi
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/api/__init__.py", line 4, in <module>
from identitylib.photo_client.api.api_versions_api import APIVersionsApi
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/api/api_versions_api.py", line 20, in <module>
from identitylib.photo_client.models.api_versions import APIVersions
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/models/__init__.py", line 24, in <module>
from identitylib.photo_client.models.paginated_v1_beta1_photo_identifier_summary_list import PaginatedV1Beta1PhotoIdentifierSummaryList
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/models/paginated_v1_beta1_photo_identifier_summary_list.py", line 23, in <module>
from identitylib.photo_client.models.v1_beta1_photo_identifier_summary import V1Beta1PhotoIdentifierSummary
File "/Users/bw509/work/iam/identity-lib/ucam_identitylib-3.3.0/identitylib/photo_client/models/v1_beta1_photo_identifier_summary.py", line 32
scheme: SchemeEnum = Field(description="The identifier's scheme
^
SyntaxError: unterminated string literal (detected at line 32)
Originally from Robin:
Appears that in the generated
photo_client/models/v1_beta1_photo_identifier_summary.py
classV1Beta1PhotoIdentifierSummary
hasn't coped with the multiline description.Seems like they was the same issue reported for java generator, cannot spot python one.
✅ What did you expect to see?
Import should pass (failure to import means that the JIT compilation at module level fails)
💻 Where does this happen?
Local environment.
🔬 How do I recreate this?
From repo root:
poetry run poe build-local`
tar -xvf dist/ucam_identitylib-3.3.0.tar.gz
cd ucam_identitylib-3.3.0
python -c "from identitylib.photo_client.models import v1_beta1_photo_identifier_summary"
📚 Any additional information?
Edited by Benjamin Woods