Title: Update flask version to fix error by xkwangcn · Pull Request #3 · devfile-samples/python-ex · GitHub
Open Graph Title: Update flask version to fix error by xkwangcn · Pull Request #3 · devfile-samples/python-ex
X Title: Update flask version to fix error by xkwangcn · Pull Request #3 · devfile-samples/python-ex
Description: I trying this on s390x, but seems not only the issue for s390x, so I create the PR. Maybe you need try it on x86 platform about this issue. With Flask=1.1.2, when do odo push, have the following error: [odo@a04931b0508f python]$ odo push -f ✓ Waiting for Kubernetes resources [114ms] ✓ Syncing files into the container [631ms] ✓ Building your application in container on cluster [2s] ✓ Executing the application [1s] ⚠ devfile command "run-app" exited with error status within 1 sec Last 20 lines of the component's log: time="2022-03-16T02:37:30Z" level=info msg="force to kill the program" program=debugrun time="2022-03-16T02:37:30Z" level=debug msg="no auth required" time="2022-03-16T02:37:30Z" level=debug msg="succeed to find process:devrun" time="2022-03-16T02:37:30Z" level=info msg="try to start program" program=devrun time="2022-03-16T02:37:30Z" level=info msg="success to start program" program=devrun ODO_COMMAND_RUN is python app.py Changing directory to ${PROJECT_SOURCE} Executing command cd ${PROJECT_SOURCE} && python app.py Traceback (most recent call last): File "app.py", line 1, in from flask import Flask File "/home/jboss/.local/lib/python3.8/site-packages/flask/init.py", line 19, in from . import json File "/home/jboss/.local/lib/python3.8/site-packages/flask/json/init.py", line 15, in from itsdangerous import json as _json ImportError: cannot import name 'json' from 'itsdangerous' (/home/jboss/.local/lib/python3.8/site-packages/itsdangerous/init.py) time="2022-03-16T02:37:31Z" level=debug msg="wait program exit" program=devrun time="2022-03-16T02:37:31Z" level=error msg="program stopped with error:exit status 1" program=devrun time="2022-03-16T02:37:31Z" level=info msg="Don't start the stopped program because its retry times 0 is greater than start retries 0" program=devrun To get the full log output, please run 'odo log' Pushing devfile component "my-python" ✓ Changes successfully pushed to component Then update it to Flask=2.0.3, do odo push again, it working fine. [odo@a04931b0508f python]$ odo push -f ✓ Waiting for Kubernetes resources [126ms] ✓ Syncing files into the container [604ms] ✓ Building your application in container on cluster [2s] ✓ Executing the application [1s] Pushing devfile component "my-python" ✓ Changes successfully pushed to component
Open Graph Description: I trying this on s390x, but seems not only the issue for s390x, so I create the PR. Maybe you need try it on x86 platform about this issue. With Flask=1.1.2, when do odo push, have the following er...
X Description: I trying this on s390x, but seems not only the issue for s390x, so I create the PR. Maybe you need try it on x86 platform about this issue. With Flask=1.1.2, when do odo push, have the following er...
Opengraph URL: https://github.com/devfile-samples/python-ex/pull/3
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:70456d21-dfb8-8406-82bb-bb97fee5e632 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AFB6:1201C:1608E85:1D50CE0:6B0134FF |
| html-safe-nonce | 8eb4085cd92eba1d8ba89a4b7223a8719f8c111b2be956f510ef108a238e484d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkI2OjEyMDFDOjE2MDhFODU6MUQ1MENFMDo2QjAxMzRGRiIsInZpc2l0b3JfaWQiOiI3MDMxMTE1MDU2MzczNTY3OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9603fabaf753f22f4a85457f23ac95e83bdb1e2f9d09f4cdea12f226542ca309 |
| hovercard-subject-tag | pull_request:884377515 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/devfile-samples/python-ex/pull/3/files |
| twitter:image | https://avatars.githubusercontent.com/u/29972855?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/29972855?s=400&v=4 |
| og:image:alt | I trying this on s390x, but seems not only the issue for s390x, so I create the PR. Maybe you need try it on x86 platform about this issue. With Flask=1.1.2, when do odo push, have the following er... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/devfile-samples/python-ex git https://github.com/devfile-samples/python-ex.git |
| octolytics-dimension-user_id | 87502576 |
| octolytics-dimension-user_login | devfile-samples |
| octolytics-dimension-repository_id | 464642406 |
| octolytics-dimension-repository_nwo | devfile-samples/python-ex |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 288961266 |
| octolytics-dimension-repository_parent_nwo | odo-devfiles/python-ex |
| octolytics-dimension-repository_network_root_id | 288961266 |
| octolytics-dimension-repository_network_root_nwo | odo-devfiles/python-ex |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width