celery / django-celery

Old Celery integration project for Django

Home Page:http://celery.github.com/django-celery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`pip install django-celery` gives error

PeithonKing opened this issue · comments

Collecting django-celery
  Using cached django_celery-3.3.1-py3-none-any.whl (63 kB)
Requirement already satisfied: django>=1.8 in c:\users\my_name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from django-celery) (4.1.4)
Collecting celery<4.0,>=3.1.15
  Using cached celery-3.1.26.post2-py2.py3-none-any.whl (526 kB)
Collecting kombu<3.1,>=3.0.37
  Using cached kombu-3.0.37-py2.py3-none-any.whl (240 kB)
Collecting billiard<3.4,>=3.3.0.23
  Using cached billiard-3.3.0.23.tar.gz (151 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pytz>dev in c:\users\my_name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from celery<4.0,>=3.1.15->django-celery) (2022.7)
Requirement already satisfied: asgiref<4,>=3.5.2 in c:\users\my_name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from django>=1.8->django-celery) (3.5.2)
Requirement already satisfied: tzdata in c:\users\my_name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from django>=1.8->django-celery) (2022.7)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\my_name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from django>=1.8->django-celery) (0.4.3)
Collecting amqp<2.0,>=1.4.9
  Using cached amqp-1.4.9-py2.py3-none-any.whl (51 kB)
Collecting anyjson>=0.3.3
  Using cached anyjson-0.3.3.tar.gz (8.3 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in anyjson setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Getting this error while installing with pip.

I have a Windows 11 system. pip install django-celery did not work there. I have also tried this in multiple computers (all Windows, didn't try on any native Linux system) I have also tried this on WSL in my windows. Everywhere I had the same error.

Please can you help me solve this issue!

I am getting the same error...the exact same error.

I have a deployed solution on Python 3.11 and Django 4.1.6. I am installing through the PyCharm terminal.

So far, researching the error has surfaced a few suggestions on Stack Overflow that did not work.

why you use this package? this is not for celery 4.x+ versions

Because I have not used Celery before, am learning how this all works and eventually realized this has been deprecated.

@auvipy sorry for not pointing this out; people are getting confused by my raised issue.
I had solved this issue within a couple of days of raising it.

I'll make it clear to people who are having the same issue...

You are not supposed to use this for recent Django projects. You can straightaway use the normal pip install celery