Hi! I created an ontology SDK in my Developer Console, and I’ve tried importing it into my projection_functions code repo through many different ways (installing as a library, manually importing it in meta.yaml, etc.). None of those seem to work, and it repeatedly results in a discoverPythonFunctions error:
“The error indicates that the task :python-functions:discoverPythonFunctions failed, which typically occurs when there is an issue with the Python environment or the definitions of your Python functions. One likely cause could be a package conflict or an issue with dependency compatibility specified in your meta.yaml.”
I’ve tried adjusting the version constraints in meta.yaml to satisfy it, but nothing seems to work. I’m guessing there might be some internal configuration error regarding compatibility or version conflicts. I attached my meta.yaml code below.
Would appreciate any help on how I can resolve this configuration issues and import my SDK into my repo!
package:
name: python-example
version: "{{ PACKAGE_VERSION }}"
source:
path: ../python
requirements:
build:
- python
- setuptools
run:
- python
- functions-python-api >=0.2.0, <1
build:
noarch: python
script: |
python -m pip install --upgrade pip
python -m pip install --extra-index-url "${foundry.pip_index_url}" projectionssdk_sdk==0.1.0
python setup.py install --single-version-externally-managed --record=record.txt