open-feature / python-sdk-contrib

Community contributions for hooks and reference providers in python
https://openfeature.dev
10 stars 11 forks source link

ModuleNotFoundError when importing flagd provider #44

Closed austinlparker closed 6 months ago

austinlparker commented 6 months ago

Hi -- I'm getting the following error when initializing the FlagdProvider.

2024-02-22 13:17:41 ModuleNotFoundError: No module named 'openfeature.contrib.provider.flagd.proto'
2024-02-22 13:18:32 Traceback (most recent call last):
2024-02-22 13:18:32   File "/usr/src/app/recommendation_server.py", line 24, in <module>
2024-02-22 13:18:32     from openfeature.contrib.provider.flagd import FlagdProvider
2024-02-22 13:18:32   File "/usr/local/lib/python3.12/site-packages/openfeature/contrib/provider/flagd/__init__.py", line 1, in <module>
2024-02-22 13:18:32     from .provider import FlagdProvider
2024-02-22 13:18:32   File "/usr/local/lib/python3.12/site-packages/openfeature/contrib/provider/flagd/provider.py", line 43, in <module>
2024-02-22 13:18:32     from .proto.schema.v1 import schema_pb2, schema_pb2_grpc
2024-02-22 13:18:32 ModuleNotFoundError: No module named 'openfeature.contrib.provider.flagd.proto'
gruebel commented 6 months ago

hey @austinlparker thanks for the quick feedback. I think we have to adjust the build process a bit, I'll take a look how we can achieve this with hatch