Skip to content

Cannot load secrets from notebooks #164

@shackmann

Description

@shackmann

The main configuration file config.yaml is automatically detected. There we don't cd into the project root folder anymore. However, secrets are not detected any pydantic complain about missing API keys when not working from project root. The same automatic detection should be used for secrets. A simple temporary fix is

try:
    from syftr.configuration import cfg
except:
    import os
    os.chdir('./../')

when working from the examples or notebooks folder.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions