OCI Functions Deployment scenarios with 'Invalid Function Configuration' scenarios When Using Python Dependency
I'm maintaining legacy code that I tried several approaches but none seem to work. I'm wondering if anyone has experience with I've looked through the documentation and I'm still confused about I'm sure I'm missing something obvious here, but I'm trying to deploy an OCI Function using the `Fn Project` CLI, and I'm working with an 'Invalid Function Configuration' behavior during deployment, specifically when including my Python dependencies... The function is defined in a simple `func.py` file that looks like this: ```python def handler(ctx, data: str = None): return 'Hello from OCI Functions!' ``` I've structured my directory as follows: ``` my_function/ âââ func.py âââ requirements.txt âââ func.yaml ``` In my `requirements.txt`, I have a couple of dependencies, including `requests`. My `func.yaml` is as follows: ```yaml version: 0.0.1 runtime: python:3.8 description: My OCI Function # This specifies the dependencies to be installed dependencies: - requests ``` When I run the following command to deploy: ``` fn deploy --app my_app --all ``` I get the following behavior message: ``` F0329 12:34:56.789012 1 deploy.go:123] Invalid function configuration: dependency not found ``` I've confirmed that `requests` is installed locally and included in my `requirements.txt`, but I'm unsure if there's a specific way to structure the `func.yaml` or if there's an scenario with how I'm defining the dependencies. I've also tried specifying the full path in `requirements.txt`, but the behavior continues. Any insights on how to resolve this scenario would be much appreciated! For context: I'm using Python on Ubuntu. Any ideas what could be causing this? I'm working on a API that needs to handle this. I'm working with Python in a Docker container on Linux. Am I approaching this the right way? This issue appeared after updating to Python stable. Am I approaching this the right way? Any help would be greatly appreciated!