Title
#tech-support
Mayara Marinho

Mayara Marinho

10/12/2022, 6:08 PM
Hello, everyone, I’m part of Allan’s team, at Dadosfera, and recently I’ve had some difficulties using the platform: - I’ve tried to configure and use Pyplan as a service, but when I try to access it on the browser, a blue screen appears.- I also tried to use Fast API as a service and it worked, however, the documentation that was supposed to be generated automatically could not be accessed by the browser. The following error appears: “Unable to render this definition. The provided definition does not specify a valid version field. Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).” Do you have an example using Pyplan/Fast API as services or some advice in these cases?
juanlu

juanlu

10/13/2022, 7:27 AM
hello @Mayara Marinho, sorry you're having a bad experience! I'll try to reproduce your issues and craft some examples
7:29 AM
could you share more details on how are you configuring Pyplan as a service? I tried locating a public Docker image for it https://hub.docker.com/search?q=pyplan but can't find anything
11:24 AM
by using a custom image, I confirm I can reproduce your FastAPI issue 👍🏼
11:31 AM
about Pyplan, if you can provide more details, I'll try to reproduce it as well
Rick Lamers

Rick Lamers

10/13/2022, 11:45 AM
@Mayara Marinho the FastAPI issue probably requires a bit of configuration as described in my response in the GitHub issue @juanlu created. We'll create a TODO to add FastAPI as an example template due to its popularity.
Mayara Marinho

Mayara Marinho

10/13/2022, 12:57 PM
@juanlu @Rick Lamers Thank you! I'll try here About Pyplan, I've created an environment Python with
orchest/base-kernel-py
base image and installed Pyplan
pip install pyplan-ide
before build. The service settings were: • Entrypoint: bash • Command: -c 'umask 002 && pwd && ls && pyplan' • Project directory: /project_dir • Data directory: /data • Ports: 9740 • Preserve base path • Authentication required • Interactive sessions • Job sessions
3:30 PM
@juanlu I had tried the solution to Fast API, but it seems to had caused another problem: the service configurations are not being saved anymore, just keep loading. I'm using Orchest version v2021.12.0.
juanlu

juanlu

10/13/2022, 3:58 PM
@Mayara Marinho to clarify: you are not able to save the service configuration, and it keeps resetting to the old values? if you could send a screencast with Loom.com, Tella.tv, or any other tool of your choice, that would help us understand what's going on. in the meantime, I'll try the Pyplan service you were using and get back to you
Mayara Marinho

Mayara Marinho

10/13/2022, 4:36 PM
@juanlu The save button just keep loading and it does not save: https://www.loom.com/share/0add2cc36e2644d9b36b83be76f9e508
juanlu

juanlu

10/14/2022, 7:10 AM
I see. that Orchest version is very old, so I'll see if some of my colleagues can help @Yannick
Yannick

Yannick

10/14/2022, 8:09 AM
I'm using Orchest version v2021.12.0
That is indeed rather old 👀. I would recommend to upgrade to the latest available version. I do understand that this can be a bit hard given the change of architecture (we now run on k8s cluster) so the alternative is to update to the latest available Docker version (you can just update from within the Orchest UI), which should get you something like
v2022.03.6
. Could have been a bug that was fixed in a later version. Let us know in case that is not an option for you or doesn't fix the issue.
juanlu

juanlu

10/17/2022, 10:53 AM
hi @Mayara Marinho, I'm coming back to your Pyplan example - I see from your earlier comment that you installed
pyplan-ide
with
pip
in the environment. however, I'm missing what image are you using for the service? (see screenshot for an example)
Mayara Marinho

Mayara Marinho

10/17/2022, 3:48 PM
@Yannick Ok! We'll try to update to the latest version then, thank you!!
3:52 PM
@juanlu I'm using the environment as the image
juanlu

juanlu

10/17/2022, 5:43 PM
oh, I see! thanks 👍🏼 looking into it