Skip to content

Error while trying the sample #27

Open

Description

@sschuetz2bit

while follwing the sample from your readme i get:

TypeError: init() missing 1 required keyword-only argument: 'type'

Activity

  1. danielvdende commented on Apr 12, 2023

    @danielvdende
    Owner

    Hi @sschuetz2bit. Firstly: thanks for raising this issue.

    Could you give me a bit more information about what sample you tried to run, exactly? Also would be great to know what version of adfpy you were using that gave you this error.

    Thanks!

  2. sschuetz2bit commented on Apr 14, 2023

    @sschuetz2bit
    Author

    Hi @danielvdende

    I saw that the references need the mandatory paramater type.

    as example:
    PipelineReference(*, type: str | _models.PipelineReferenceType, reference_name: str, name: str | None = None, **kwargs: Any)

    Pipeline reference type. Required. "PipelineReference"

    these are missing (maybe it was a change in the SDK interface)

    locally it worked after adding a type to all references

  3. danielvdende commented on May 1, 2023

    @danielvdende
    Owner

    Thanks for the info, and sorry for the slow response on this.

    Would you be able to provide the versions of the packages installed? It does sound like an SDK interface change that wasn't properly taken into account here.

  4. danielvdende commented on May 5, 2023

    @danielvdende
    Owner

    I think it indeed was caused by a SDK interface change. This showed up initially in this commit but I didn't create a new release following that patch... Sorry about that. I've just released version 0.2.0 that does include this cap on the SDK version. I've also added an issue #28 to upgrade the SDK version (which should include any additional required parameters to avoid this kind of error)

  5. sschuetz2bit commented on May 5, 2023

    @sschuetz2bit
    Author

    Hi Daniel, thank you. i will test it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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