Skip to content

Python built-in libraries can't be found when bundled python model and external environment have different versions #482

Description

@mincomp

Bug

Seeing

03/08/21 19:17:16.834300: D neuropod/internal/backend_registration.cc:223] [thread 76029, process 76029] Registering backend PythonBridge with type python and version 2.7.18
LoadNeuropod modelPath = ./example/string_python/neuropod failed: ImportError: No module named time

at pip_utils.py(20), when loading Neuropod Python model

To Reproduce

Steps to reproduce the behavior:

  1. Use Python 2.7.16
  2. Build Neuropod with Python 2.7 as Neuropod Python backend version
  3. Create and load a Neuropod Python model

Environment

  • Neuropod Version 0.3.0 rc1
  • OS (Linux, macOS): Debian
  • Language (Python, C++, Go bindings): Python
  • Python version: 2.7.16

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