Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

celery 4.4.7 has a non-standard dependency specifier pytz>dev #2983

Open
jooola opened this issue Apr 13, 2024 · 2 comments
Open

celery 4.4.7 has a non-standard dependency specifier pytz>dev #2983

jooola opened this issue Apr 13, 2024 · 2 comments
Labels

Comments

@jooola
Copy link
Contributor

jooola commented Apr 13, 2024

Describe the bug

DEPRECATION: celery 4.4.7 has a non-standard dependency specifier pytz>dev. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of celery or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063

To reproduce

Install libretime using the installer script

Expected behavior

This is deprecation which might soon start to annoy us.

Relevant log output or error messages

No response

LibreTime version

4.0.0

Installation method and OS / Environment

Operating system: Debian 11
Method: Installer script

Installation details

No response

Client Environment

No response

Screenshots

No response

@jooola jooola added the is: bug label Apr 13, 2024
@marmotte32
Copy link

same issue.
fresh install of ubuntu 20.04 then upgrade all packages
install libretime 4.0.0 the guide: https://libretime.org/docs/admin-manual/install/install-using-the-installer/#run-the-installer

thus, the installer output for the worker step:

╔══════════════════════════════════════════════════════════════════════════════╗
║ Worker                                                                       ║
╚══════════════════════════════════════════════════════════════════════════════╝
info: installing python app from /root/libretime/worker
Processing ./worker
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting celery==4.4.7 (from libretime-worker==4.0.0)
  Downloading celery-4.4.7-py2.py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: kombu==4.6.11 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (4.6.11)
Requirement already satisfied: mutagen<1.48,>=1.45.1 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (1.47.0)
Requirement already satisfied: requests<2.32,>=2.31.0 in /opt/libretime/lib/python3.8/site-packages (from libretime-worker==4.0.0) (2.31.0)
Requirement already satisfied: pytz>dev in /opt/libretime/lib/python3.8/site-packages (from celery==4.4.7->libretime-worker==4.0.0) (2024.1)
Collecting billiard<4.0,>=3.6.3.0 (from celery==4.4.7->libretime-worker==4.0.0)
  Downloading billiard-3.6.4.0-py3-none-any.whl.metadata (4.5 kB)
Requirement already satisfied: vine==1.3.0 in /opt/libretime/lib/python3.8/site-packages (from celery==4.4.7->libretime-worker==4.0.0) (1.3.0)
Requirement already satisfied: amqp<2.7,>=2.6.0 in /opt/libretime/lib/python3.8/site-packages (from kombu==4.6.11->libretime-worker==4.0.0) (2.6.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /opt/libretime/lib/python3.8/site-packages (from requests<2.32,>=2.31.0->libretime-worker==4.0.0) (2024.2.2)
Downloading celery-4.4.7-py2.py3-none-any.whl (427 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.6/427.6 kB 1.4 MB/s eta 0:00:00
Downloading billiard-3.6.4.0-py3-none-any.whl (89 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 841.4 kB/s eta 0:00:00
Building wheels for collected packages: libretime-worker
  Building wheel for libretime-worker (pyproject.toml) ... done
  Created wheel for libretime-worker: filename=libretime_worker-4.0.0-py3-none-any.whl size=4010 sha256=a14683615edbcdaeef8b7a9722b481b3f4e6a2f43b047288106c0fefe531b6ad
  Stored in directory: /tmp/pip-ephem-wheel-cache-wsjg9egc/wheels/b8/d9/af/298d67444095ae9310e220bc310089c9a5c367ec7c7f04a32a
Successfully built libretime-worker
**DEPRECATION: celery 4.4.7 has a non-standard dependency specifier pytz>dev. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of celery or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063**
Installing collected packages: billiard, celery, libretime-worker
Successfully installed billiard-3.6.4.0 celery-4.4.7 libretime-worker-4.0.0
info: creating libretime-worker working directory
info: deploying libretime-worker.service service
Created symlink /etc/systemd/system/multi-user.target.wants/libretime-worker.service -> /usr/lib/systemd/system/libretime-worker.service.

@marmotte32
Copy link

marmotte32 commented May 2, 2024

Hi @jooola

I think that I found the issue thanks to "triangle-stream":
#1084 (comment)

Seems that the 4.0.0 is buggy with worker service (celeri) cause the worker.log file is not able to be created and the service script is wrong.

Here is the solution that worked for me:

touch /var/log/libretime/worker.log
chown libretime:libretime /var/log/libretime/worker.log
chmod 644 /var/log/libretime/worker.log

cp /usr/lib/systemd/system/libretime-worker.service /usr/lib/systemd/system/libretime-worker.service.ori
nano /usr/lib/systemd/system/libretime-worker.service

in the scrit under ExecStart, change :
/usr/bin/sh
with:
/bin/sh

save and quit nano

reboot

after the reboot you'll see that the /var/log/libretime/worker.log file exist now and the service worker is started :)

Hope this solved your issue too!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants