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

Cannot import V1alpha1Api in python 3.7 #4

Closed
zymergen-luke opened this issue Oct 30, 2019 · 5 comments
Closed

Cannot import V1alpha1Api in python 3.7 #4

zymergen-luke opened this issue Oct 30, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@zymergen-luke
Copy link

I assume it's failing in python 3.5+ when they added the async keyword.

from argo.workflows.client import V1alpha1Api
Traceback (most recent call last):
  File "<redacted>/lib/python3.7/site-packages/argo/workflows/__init__.py", line 3, in <module>
    from argo.workflows import client

  File "<redacted>/lib/python3.7/site-packages/argo/workflows/client/__init__.py", line 19, in <module>
    from argo.workflows.client.api.v1alpha1_api import V1alpha1Api

  File "<redacted>/lib/python3.7/site-packages/argo/workflows/client/api/__init__.py", line 6, in <module>
    from argo.workflows.client.api.v1alpha1_api import V1alpha1Api

  File "<redacted>/lib/python3.7/site-packages/argo/workflows/client/api/v1alpha1_api.py", line 134
    async=params.get('async'),
        ^
SyntaxError: invalid syntax
@CermakM
Copy link
Owner

CermakM commented Oct 30, 2019

Hello! Thanks for the report... Correct, Python 3.6 is fine, but it does fail in 3.7 :/

@CermakM CermakM added the bug Something isn't working label Oct 30, 2019
@CermakM
Copy link
Owner

CermakM commented Oct 30, 2019

Weirdly enough, this should have been fixed in swagger-api/swagger-codegen#8401, so perhaps a version of swagger which does not include this fix has been used to generate the code. Will look into it.

@CermakM CermakM self-assigned this Oct 30, 2019
@zymergen-luke
Copy link
Author

Thanks! This project looks promising!

I've been experimenting with using the Kubeflow Pipelines SDK to generate the pipeline yaml programmatically, but I don't believe the kubeflow pipeline sdk will communicate with a raw Argo installation (I could be wrong about that). I've been falling back to the argo command line to kick off the jobs generated by the sdk. I'm hoping something like this client will allow us to keep all the logic in code.

@rosscdh
Copy link

rosscdh commented Apr 4, 2020

Having the same issue;
I had to manually move the workflows/dsl into the argo/workflows folder (issue with the dist for some weird reasons)

@CermakM
Copy link
Owner

CermakM commented Jul 13, 2022

Closed. No longer maintained.

@CermakM CermakM closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants