Comments (8)
Thanks for your report!
I have a little bit trouble to reproduce it, since I am not able to run mealie at the moment :). But it should be possible to only compare against the list of recipes from kptncook. I think we add a kptncook
tag for each recipe added by kptncook sync.
I'll look into this on the weekend, probably.
from kptncook.
Sounds good, if you need help in any way, just let me know :)
from kptncook.
Your issue seems to be caused by the pydantic2 upgrade from last month. In pydantic 1 foo: str | None
ment that the foo attribute is optional. In pydantic 2 it now means that it could be None, but is not optional. So I had replace those lines with foo: str | None = None
which means foo is optional in pydantic 2, too.
I also now skip recipes failing validation. I'm not really sure whether this is the right approach because now kptncook recipes might become re-added when they cannot be validated as mealie recipes. But just crashing is maybe also not the best approach.
Anyway - the issue from above should be fixed in 0.0.13
from kptncook.
Thanks a lot for your hard work 😊
from kptncook.
Thanks for your tool 👍
In order for me to sync to Mealie today, I still need to put in a fix:
diff mealie.py.0.0.13 mealie.py
134c134
< file_name: str | None
---
> file_name: str | None = None
class RecipeAsset(BaseModel):
name: str
icon: str
file_name: str | None = None
from kptncook.
I forgot to add the error:
ValidationError: 2 validation errors for Recipe
recipe_yield
Field required [type=missing, input_value={'id': 'f1219ce4-7521-443...4326', 'lastMade': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
nutrition
Field required [type=missing, input_value={'id': 'f1219ce4-7521-443...4326', 'lastMade': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
from kptncook.
The problem with my broken mealie instance is that the nuxt server process does not seem to forward requests to the fastapi python process. A request to my mealie instances api docs returns a 404 for example and I don't know why. Maybe some issue with the nuxt config, dunno.
Managed to work around this issue by forwarding the fastapi port to my local machine using ssh so I was still able to run kptncook sync
against it and immediately could reproduce your issue 😅.
from kptncook.
Seems I forgot some lines 😅. Should be fixed in 0.0.14
from kptncook.
Related Issues (20)
- Remove explicit dependency on click < 8.1
- Additional information on kptncook API HOT 5
- Get username / password from password manager
- Rename confusing http command
- Mealie Read Timeout
- TypeError on every CLI call HOT 2
- Mealie API version not clear HOT 1
- handling non-parsable recipes HOT 5
- PydanticImportError HOT 2
- Error retrieving kptncook access token HOT 7
- Fetch recipes based on different api endpoints
- TemplateNotFound: paprika.jinja2.json HOT 3
- several errors HOT 7
- sync-with-mealie: no Step-Images since Mealie V1.0.0-RC2 HOT 10
- Validation error for recipes HOT 2
- No Step-Images after "sync-with-mealie" version 1.2.0 HOT 1
- Error on mealie sync HOT 5
- Docker Container
- Ingredients list enhancements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kptncook.