Skip to content

Python 3.7 - sys.executable is empty #49

@mkpurcell

Description

@mkpurcell

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions