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

[feature] Support STDOUT/STDERR stream redirection in Python SDK #53

Open
gaocegege opened this issue Jun 15, 2020 · 0 comments
Open

[feature] Support STDOUT/STDERR stream redirection in Python SDK #53

gaocegege opened this issue Jun 15, 2020 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@gaocegege
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST?:

/kind feature

What happened:

Now we will not output the STDOUT/STDERR of ormb when we use Python SDK in Jupyter:

Screenshot from 2020-06-15 11-37-46

It will output in jupyter server's log:

[I 11:32:18.356 LabApp] Saving file at /examples/SavedModel-fashion/training-serving.ipynb
Using config file: /home/gaocegege/.ormb/config.json
Using /home/gaocegege/.ormb as the root path
Error: open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Usage:
  ormb save [flags]

Flags:
  -h, --help   help for save

Global Flags:
      --config string   config file (default is $HOME/.ormb/config.yaml)

open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Using config file: /home/gaocegege/.ormb/config.json
Using /home/gaocegege/.ormb as the root path
Error: open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Usage:
  ormb save [flags]

Flags:
  -h, --help   help for save

Global Flags:
      --config string   config file (default is $HOME/.ormb/config.yaml)

open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Using config file: /home/gaocegege/.ormb/config.json
Using /home/gaocegege/.ormb as the root path
Error: open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Usage:
  ormb save [flags]

Flags:
  -h, --help   help for save

Global Flags:
      --config string   config file (default is $HOME/.ormb/config.yaml)

open /tmp/ormb_73pss1e/1/ormbfile.yaml: no such file or directory
Using config file: /home/gaocegege/.ormb/config.json
Using /home/gaocegege/.ormb as the root path
The push refers to repository [demo.goharbor.io/tensorflow/fashion_model]
ref:       demo.goharbor.io/tensorflow/fashion_model:v1
digest:    13eb538942a70c699637cfa1bb9c7d72cd8430af50a992055b7bfd3220042e94
size:      162.1 KiB
format:    SavedModel
Error: unexpected response: 401 Unauthorized
Usage:
  ormb push [flags]

Flags:
  -h, --help         help for push
      --plain-http   use plain http and not https

Global Flags:
      --config string   config file (default is $HOME/.ormb/config.yaml)

unexpected response: 401 Unauthorized
[I 11:34:18.493 LabApp] Saving file at /examples/SavedModel-fashion/training-serving.ipynb

What you expected to happen:

We expect that the STDOUT/STDERR of ormb should be redirected to the cell output.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

@caicloud-bot caicloud-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants