question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[KED-2667] Pycharm Kedro Catalog Schema error.

See original GitHub issue

Schema validation: Incompatible types. Required: object. Actual: string.

Context

I’m in the first steps after finish the configuration of the Schema for the Kedro Catalog in Pycharm 2021.1.1.

Steps to Reproduce

  1. having a valid file in the ./conf/local/credentials.yml
  2. having a catalog.yml with code like:

addresses: type: pandas.SQLTableDataSet table_name: addresses credentials: rdsEnjoy layer: raw ```

Expected Result

the rdsEnjoy should not be picked as an incompatible type

Actual Result

the rdsEnjoy resalts as an error with Schema validation: Incompatible types. Required: object. Actual: string.

-- If you received an error, place it here.
-- Separate them if you have more than one.

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Kedro version used (pip show kedro or kedro -V):
  • Python version used (python -V):
  • Operating system and version:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mzjp2commented, May 31, 2021

Yes, I believe this is because I auto-generate the schema from the dataset class signatures, which defines the credentials as a dictionary, but in the YAML itself, it should be a string that Kedro then looks up in credentials.yml and turns into a dictionary. I’ll tweak the schema-generation script and push a fix when I have some time. Feel free to assign this to me!

0reactions
stale[bot]commented, Dec 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[KED-2667] Pycharm Kedro Catalog Schema error. · Issue #771
Schema validation: Incompatible types. Required: object. Actual: string. Context I'm in the first steps after finish the configuration of ...
Read more >
Set up PyCharm — Kedro 0.18.4 documentation
You can enable the Kedro catalog validation schema in your PyCharm IDE to enable real-time validation, autocompletion and see information about the different ......
Read more >
How to setup PyCharm with Kedro - Writing Data ... - YouTube
Data Engineering is a tough job, and it can be made tougher by complex, difficult to understand data pipelines. In this series, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found