Installing eyed3 in windows

7.3k views Asked by At

trying to install eyed3 under python 2.7.5

I have done a google search and have been following what I found to install eyed3. The instructions were as follows

  1. extract the zip file to a temp folder (filename eyeD3-0.7.3.zip) I did using a temp folder on my desktop.
  2. In the eyeD3 folder (under src) rename the init.py.in to setup.py. I did not find _init++.py.in in the eyed3 folder, but init_.py was,so I assumed this latest version used that file.
  3. In the main folder (I assume eyeD3-0.7.3) run python setup.py.in install. setup.py.in didnot exist, but I ran it anyway and got the expected file not found message, however, setup.py did exist so I executed python setup.py install and got the following Traceback

    Traceback (most recent call last): File "C:\Users\Me\Desktop\New   
    folder\eyeD3-0.7.3\setup.py", line 10, in <module>
    paver.tasks.main()   File "paver-minilib.zip\paver\tasks.py", line
    883, in main File    "paver-minilib.zip\paver\tasks.py", line 851,
    in _launch_pavement  File "pavement.py", line 28, in <module>
    import setuptools    ImportError: No module named setuptools
    

a cmd line search of the python 2.7.5 dir and sub-directories did not find setuptools.py, however I did find the following two files

setuptools_build_ext.py and setuptools_extension.py.

Do I need to rename one of these files or do you know what I am doing wrong or what the fix would be?

Thank you

1

There are 1 answers

3
abarnert On

Depending on where you got your Python from, it may not have come with setuptools. In particular, it does not come in the standard Windows installers from Python.org.

Some packages' setup.py scripts have special code that tries to download and install setuptools (or distribute) if it's missing, or that bundles in just enough of setuptools into the package itself. But not all of them do.

The answer is to install setuptools yourself.

While you're at it, you probably want to also install pip, and then you can just pip install . from within the directory, or pip install eyeD3-0.7.3.zip without unzipping, or even just pip install eyeD3 without even downloading. (Among other things, it will also download and install any dependencies that eyeD3 might need.)

In fact, the eyeD3 installation docs explicitly say "Stable releases of eyeD3 are best installed via pip…".