areski / django-audiofield

Django-Audiofield is a simple app that allows Audio files upload, management and conversion to different audio format (mp3, wav & ogg), which also makes it easy to play audio files into your Django application.
Other
174 stars 51 forks source link

Install error: error in anyjson setup command: use_2to3 is invalid. #45

Open TohidN opened 1 year ago

TohidN commented 1 year ago

Package is no longer working with latest version of setuptools(v 58 or higher). upgrading dependencies(or at least celery) may fix the issue.

Full error:

Collecting django-audiofield
  Using cached django-audiofield-0.10.1.tar.gz (185 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting celery>=3.1.7 (from django-audiofield)
  Using cached celery-5.3.1-py3-none-any.whl (420 kB)
Collecting django-celery>=3.1.1 (from django-audiofield)
  Using cached django_celery-3.3.1-py3-none-any.whl (63 kB)
Requirement already satisfied: six>=1.9 in c:\prj\learnlingu\venv\lib\site-packages (from django-audiofield) (1.16.0)
Collecting billiard<5.0,>=4.1.0 (from celery>=3.1.7->django-audiofield)
  Using cached billiard-4.1.0-py3-none-any.whl (86 kB)
Collecting click-didyoumean>=0.3.0 (from celery>=3.1.7->django-audiofield)
  Using cached click_didyoumean-0.3.0-py3-none-any.whl (2.7 kB)
Collecting click-plugins>=1.1.1 (from celery>=3.1.7->django-audiofield)
  Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting click-repl>=0.2.0 (from celery>=3.1.7->django-audiofield)
  Using cached click_repl-0.3.0-py3-none-any.whl (10 kB)
Collecting click<9.0,>=8.1.2 (from celery>=3.1.7->django-audiofield)
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting kombu<6.0,>=5.3.1 (from celery>=3.1.7->django-audiofield)
  Using cached kombu-5.3.1-py3-none-any.whl (198 kB)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\prj\learnlingu\venv\lib\site-packages (from celery>=3.1.7->django-audiofield) (2.8.2)
Requirement already satisfied: tzdata>=2022.7 in c:\prj\learnlingu\venv\lib\site-packages (from celery>=3.1.7->django-audiofield) (2023.3)
Collecting vine<6.0,>=5.0.0 (from celery>=3.1.7->django-audiofield)
  Using cached vine-5.0.0-py2.py3-none-any.whl (9.4 kB)
Collecting celery>=3.1.7 (from django-audiofield)
  Using cached celery-3.1.26.post2-py2.py3-none-any.whl (526 kB)
Requirement already satisfied: django>=1.8 in c:\prj\learnlingu\venv\lib\site-packages (from django-celery>=3.1.1->django-audiofield) (4.2.2)
Collecting pytz>dev (from celery>=3.1.7->django-audiofield)
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting billiard<3.4,>=3.3.0.23 (from celery>=3.1.7->django-audiofield)
  Using cached billiard-3.3.0.23.tar.gz (151 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting kombu<3.1,>=3.0.37 (from celery>=3.1.7->django-audiofield)
  Using cached kombu-3.0.37-py2.py3-none-any.whl (240 kB)
Requirement already satisfied: asgiref<4,>=3.6.0 in c:\prj\learnlingu\venv\lib\site-packages (from django>=1.8->django-celery>=3.1.1->django-audiofield) (3.7.2)
Requirement already satisfied: sqlparse>=0.3.1 in c:\prj\learnlingu\venv\lib\site-packages (from django>=1.8->django-celery>=3.1.1->django-audiofield) (0.4.4)
Collecting anyjson>=0.3.3 (from kombu<3.1,>=3.0.37->celery>=3.1.7->django-audiofield)
  Using cached anyjson-0.3.3.tar.gz (8.3 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel 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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
dickermoshe commented 1 year ago

+1

nojoven commented 10 months ago

+1

Saidalo1 commented 8 months ago

+1