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

Python 3 support #5

Closed troygrosfield closed 10 years ago

troygrosfield commented 10 years ago

Currently, the install for python 3.3.3. django 1.6.1 doesn't work. There are quite a few dependencies for this lib, one of which is breaking the install (see switch2bill-common):

(py33_django16)➜  $ pip install django-audiofield
Downloading/unpacking django-audiofield
  Downloading django-audiofield-0.5.8.tar.gz (1.2MB): 1.2MB downloaded
  Running setup.py (path:/.virtualenvs/py33_django16/build/django-audiofield/setup.py) egg_info for package django-audiofield

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking django-uuidfield (from django-audiofield)
  Downloading django-uuidfield-0.4.0.tar.gz
  Running setup.py (path:/.virtualenvs/py33_django16/build/django-uuidfield/setup.py) egg_info for package django-uuidfield

    warning: no previously-included files matching '*~' found anywhere in distribution
Downloading/unpacking switch2bill-common (from django-audiofield)
  Downloading switch2bill-common-2.8.5.tar.gz
  Running setup.py (path:/.virtualenvs/py33_django16/build/switch2bill-common/setup.py) egg_info for package switch2bill-common

Downloading/unpacking celery (from django-audiofield)
  Downloading celery-3.1.8.tar.gz (1.3MB): 1.3MB downloaded
  Running setup.py (path:/.virtualenvs/py33_django16/build/celery/setup.py) egg_info for package celery
    - Trying to upgrade 'task' in 'celery.app'
    - upgrade task: no old version found.

    no previously-included directories found matching '*.pyc'
    no previously-included directories found matching '*.sw*'
Downloading/unpacking django-celery (from django-audiofield)
  Downloading django-celery-3.1.1.tar.gz (75kB): 75kB downloaded
  Running setup.py (path:/.virtualenvs/py33_django16/build/django-celery/setup.py) egg_info for package django-celery

    warning: no files found matching '*' under directory 'bin'
    no previously-included directories found matching 'bin/*.pyc'
    no previously-included directories found matching 'tests/*.pyc'
    no previously-included directories found matching 'docs/*.pyc'
    no previously-included directories found matching 'extra/*.pyc'
    no previously-included directories found matching 'djcelery/*.pyc'
    no previously-included directories found matching 'docs/.build'
    no previously-included directories found matching 'examples/*.pyc'
Requirement already satisfied (use --upgrade to upgrade): django in /.virtualenvs/py33_django16/lib/python3.3/site-packages (from django-uuidfield->django-audiofield)
Downloading/unpacking django-reusableapps==0.1.1 (from switch2bill-common->django-audiofield)
  Downloading django-reusableapps-0.1.1.tar.gz
  Running setup.py (path:/.virtualenvs/py33_django16/build/django-reusableapps/setup.py) egg_info for package django-reusableapps
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/.virtualenvs/py33_django16/build/django-reusableapps/setup.py", line 2, in <module>
        from ez_setup import use_setuptools
      File "./ez_setup.py", line 97
        except pkg_resources.VersionConflict, e:
                                            ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/.virtualenvs/py33_django16/build/django-reusableapps/setup.py", line 2, in <module>
    from ez_setup import use_setuptools
  File "./ez_setup.py", line 97
    except pkg_resources.VersionConflict, e:
                                        ^
SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /.virtualenvs/py33_django16/build/django-reusableapps
Storing debug log for failure in /.pip/pip.log
areski commented 10 years ago

it's an interesting timing cause yesterday release removed the dependencies for switch2bill-common. I just run a test now, and found similar issue with old django-uuidfield, which is in the requirements file and was actually not used :/

Anyway I think django-audiofield==0.6.0 will solve the problem, give a try