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

Python 3.7 - sys.executable is empty #49

Closed
mkpurcell opened this issue Feb 14, 2019 · 0 comments · Fixed by #50
Closed

Python 3.7 - sys.executable is empty #49

mkpurcell opened this issue Feb 14, 2019 · 0 comments · Fixed by #50

Comments

@mkpurcell
Copy link

Environment details:

import sys

def main(args):
return { "exe" : sys.executable, "path": sys.path }

Steps to reproduce the issue:

  1. Code as above
  2. Zip the source into eg. test-bug.zip
  3. bx wsk action create --kind python:3.7 TEST37 test-bug.zip
  4. bx wsk action invoke TEST37 --result

Provide the expected results and outputs:

{
    "exe": "SHOULD NOT BE EMPTY",
    "path": [
        "/action/1/src",
        "/usr/local/lib/python37.zip",
        "/usr/local/lib/python3.7",
        "/usr/local/lib/python3.7/lib-dynload",
        "/usr/local/lib/python3.7/site-packages"
    ]
}

Provide the actual results and outputs:

{
    "exe": "",
    "path": [
        "/action/1/src",
        "/usr/local/lib/python37.zip",
        "/usr/local/lib/python3.7",
        "/usr/local/lib/python3.7/lib-dynload",
        "/usr/local/lib/python3.7/site-packages"
    ]
}

Additional information you deem important:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant