# Error with tandoor image update

**URL:** <https://forum.yunohost.org/t/error-with-tandoor-image-update/30969>\
**Category:** Support apps\
**Tags:** tandoor, english\
**Created:** [September 1, 2024, 9:12am UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969 "2024-09-01T09:12:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mszinte](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mszinte](https://forum.yunohost.org/u/mszinte)\
**Post date:** [September 1, 2024, 9:12am UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/1 "2024-09-01T09:12:59Z")

</div>

### My YunoHost server

**Hardware:** VPS in Hertzner  
**YunoHost version:** 11.2.27  
**I have access to my server :** SSH and webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

Dear Community of Yunohost,

I set up years ago a Tandoor to keep track of my recipes, the App is superb and I love it but since the last update (version 1..5.19~ynh1) I can’t update anymore the images of my old and newly created recipes.  
I tried both the regular app interface and the admin interface.  
In the app, I receive a “erreur lors de la mise à jour d’une ressource !”.  
I look at the log and found this when the error pop up.

**Do you have any idea how to solve my issue ?**

```auto
Sep 01 11:00:58 gunicorn[461055]: /var/www/tandoor __2/venv/lib/python3.9/site-packages/django/db/models/fields/__ init__.py:1595: RuntimeWarning: DateTimeField MealPlan.to_date received a naive datetime (2024-09-01 00:00:00) while time zone support is active.
Sep 01 11:00:58 gunicorn[461055]: warnings.warn(
Sep 01 11:00:58 gunicorn[461055]: /var/www/tandoor__2/venv/lib/python3.9/site-packages/rest_framework/pagination.py:207: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'cookbook.models.CustomFilter'> QuerySet.
Sep 01 11:00:58 gunicorn[461055]: paginator = self.django_paginator_class(queryset, page_size)
Sep 01 11:01:11 gunicorn[424540]: [2024-09-01 11:01:11 +0200] [424540] [ERROR] Worker (pid:461055) was sent SIGSYS!
Sep 01 11:01:11 gunicorn[461914]: [2024-09-01 11:01:11 +0200] [461914] [INFO] Booting worker with pid: 461914
Sep 01 11:01:12 gunicorn[461914]: Traceback (most recent call last):
Sep 01 11:01:12 gunicorn[461914]: File "/var/www/tandoor__2/cookbook/apps.py", line 20, in ready
Sep 01 11:01:12 gunicorn[461914]: from cookbook.connectors.connector_manager import ConnectorManager # Needs to be here to prevent loading race condition of oauth2 modules in models.py
Sep 01 11:01:12 gunicorn[461914]: File "/var/www/tandoor__2/cookbook/connectors/connector_manager.py", line 145
Sep 01 11:01:12 gunicorn[461914]: match config.type:
Sep 01 11:01:12 gunicorn[461914]: ^
Sep 01 11:01:12 gunicorn[461914]: SyntaxError: invalid syntax

```

Thank you very much in advance !

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 1, 2024, 2:18pm UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/2 "2024-09-01T14:18:13Z")

</div>

Sounds like it’s using python syntax which is only available in more recent versions of Python …

---

<div class="post-metadata">

**Author:** ![mszinte](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mszinte](https://forum.yunohost.org/u/mszinte)\
**Post date:** [September 1, 2024, 6:32pm UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/3 "2024-09-01T18:32:50Z")

</div>

Yep, thanks for looking at it, any thought ?

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [September 1, 2024, 7:04pm UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/4 "2024-09-01T19:04:30Z")

</div>

`match` was introduced in Python 3.10 apparently, and Bullseye / Yunohost 11 only ships Python 3.9. But Bookworm does ship Python 3.11

---

<div class="post-metadata">

**Author:** ![mszinte](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@mszinte](https://forum.yunohost.org/u/mszinte)\
**Post date:** [September 2, 2024, 8:34am UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/5 "2024-09-02T08:34:01Z")

</div>

Ok, so I’ll wait the future release of Bookworm. Thanks !

---

<div class="post-metadata">

**Author:** ![seven\_of\_nein](https://forum.yunohost.org/user_avatar/forum.yunohost.org/seven_of_nein/32/9754_2.png) [@seven\_of\_nein](https://forum.yunohost.org/u/seven_of_nein)\
**Post date:** [September 19, 2024, 8:33pm UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/6 "2024-09-19T20:33:41Z")

</div>

Tandoor is now requiring Python 3.12. I’m surprised it runs at all with 3.9.

I tried manually replacing the match occurrences with something 3.9 compatible, but no luck. There is other stuff broken and I ran out of patience.

Unless we can update the package to use Python 3.12 it should be considered broken

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [October 19, 2024, 8:34pm UTC](https://forum.yunohost.org/t/error-with-tandoor-image-update/30969/7 "2024-10-19T20:34:02Z")

</div>

Closed on October 19, 2024, 8:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
