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 built-in libraries can't be found when bundled python model and external environment have different versions #482

Open
mincomp opened this issue Mar 9, 2021 · 1 comment

Comments

@mincomp
Copy link

mincomp commented Mar 9, 2021

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
@mincomp
Copy link
Author

mincomp commented Mar 9, 2021

  1. Matching local environment with Python 2.7.18 fixes this problem.
  2. Use Python isolated environment fixes this problem

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

No branches or pull requests

1 participant