Skip to content

dependency_injector.wiring.Provide object at 0x... #589

Open
@acscott

Description

@acscott

Version 4.39.1
Instead of providing the configuration value it returns
<dependency_injector.wiring.Provide object at 0x...>

config is setup as shown
config = providers.Configuration( yaml_files="default.yaml") and default.yaml does exist.

and a call that relies on the dependency looks as below

@inject
def get_consistency_level( consistency_level: str = Provide["config.external.cassandra.parameters.consistency_level"],)

But consistency_level is set to <dependency_injector.wiring.Provide object at 0x7f9b1f9d8d60
Or in other words the dependency injection is not working.

Any tips on fixing this or how to go about debugging this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions