Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix circular imports in serializers #388

Open
karolina-siemieniuk-morawska opened this issue Sep 20, 2023 · 0 comments
Open

Fix circular imports in serializers #388

karolina-siemieniuk-morawska opened this issue Sep 20, 2023 · 0 comments
Labels
type: bug Something isn't working

Comments

@karolina-siemieniuk-morawska
Copy link
Collaborator


...:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-82a7ec573853> in <module>
----> 1 from inspirehep.records.marshmallow.literature.common import PublicationInfoItemSchemaV1

~/src/inspirehep/backend/inspirehep/records/marshmallow/literature/__init__.py in <module>
      7 # flake8: noqa
      8
----> 9 from .authors import LiteratureAuthorsSchema
     10 from .base import (
     11     LiteratureAdminSchema,

~/src/inspirehep/backend/inspirehep/records/marshmallow/literature/authors.py in <module>
     10
     11 from ..fields import NestedWithoutEmptyObjects
---> 12 from .common import AuthorSchemaV1
     13 from .common.author import SupervisorSchema
     14

~/src/inspirehep/backend/inspirehep/records/marshmallow/literature/common/__init__.py in <module>
     11 from .collaboration import CollaborationSchemaV1
     12 from .collaboration_with_suffix import CollaborationWithSuffixSchemaV1
---> 13 from .conference_info_item import ConferenceInfoItemSchemaV1
     14 from .doi import DOISchemaV1
     15 from .external_system_identifier import ExternalSystemIdentifierSchemaV1

~/src/inspirehep/backend/inspirehep/records/marshmallow/literature/common/conference_info_item.py in <module>
      9
     10 from inspirehep.pidstore.api import PidStoreBase
---> 11 from inspirehep.records.api import InspireRecord
     12
     13

~/src/inspirehep/backend/inspirehep/records/api/__init__.py in <module>
     12 from .authors import AuthorsRecord  # noqa: F401
     13 from .base import InspireRecord  # noqa: F401
---> 14 from .conferences import ConferencesRecord  # noqa: F401
     15 from .data import DataRecord  # noqa: F401
     16 from .experiments import ExperimentsRecord  # noqa: F401

~/src/inspirehep/backend/inspirehep/records/api/conferences.py in <module>
      8 from inspirehep.pidstore.api.conferences import PidStoreConferences
      9 from inspirehep.records.api.base import InspireRecord
---> 10 from inspirehep.records.marshmallow.conferences import ConferencesElasticSearchSchema
     11 from inspirehep.records.models import (
     12     ConferenceLiterature,

~/src/inspirehep/backend/inspirehep/records/marshmallow/conferences/__init__.py in <module>
      7 # flake8: noqa
      8
----> 9 from .base import (
     10     ConferencesAdminSchema,
     11     ConferencesPublicListSchema,

~/src/inspirehep/backend/inspirehep/records/marshmallow/conferences/base.py in <module>
     11 from inspirehep.records.marshmallow.base import RecordBaseSchema
     12 from inspirehep.records.marshmallow.common import ContactDetailsItemWithoutEmail
---> 13 from inspirehep.records.marshmallow.conferences.common.proceeding_info_item import (
     14     ProceedingInfoItemSchemaV1,
     15 )

~/src/inspirehep/backend/inspirehep/records/marshmallow/conferences/common/proceeding_info_item.py in <module>
      7 from marshmallow import Schema, fields
      8
----> 9 from inspirehep.records.marshmallow.literature.common import PublicationInfoItemSchemaV1
     10
     11

ImportError: cannot import name 'PublicationInfoItemSchemaV1'

Moved from: inspirehep/inspirehep#1648

@karolina-siemieniuk-morawska karolina-siemieniuk-morawska added the type: bug Something isn't working label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant