Open singhsegv opened 4 months ago
Are you sure you're using the same python version in your venv as the action's runtime?
Yep the python versions were same.
The problem turned out that I was adding a venv folder with the main.py and not requirements.txt and after digging a little deeper into the openwhisk-runtime-python source code here, I am guessing it is something related to def virtualenv(tgt_dir):
function implemention.
I am not 100% sure though as I haven't setup a debugger to figure out the code flow. Will update this thread as soon as I get some free time.
I am trying to deploy a basic python action with an included virtualenv. I followed this official tutorial of using
openwhisk/python3action
container to create avirtualenv
and zipping it with main .py file. But i still get anmodule not found
error while actually running that action.Environment details:
Steps to reproduce the issue:
Packaging Python actions with a virtual environment in zip files
step from this official tutorial https://github.com/apache/openwhisk/blob/master/docs/actions-python.md#packaging-python-actions-with-a-virtual-environment-in-zip-filesnetworkx
or any other non standard module.Provide the expected results and outputs:
Provide the actual results and outputs:
Additional information you deem important: