Issue #13 resolved

using hachoir-metadata in windows xp

sydius
created an issue

Hey everyone, i've been looking for a way to get metada from music files through python and i think hechoir-metada it's what i need, i've downloaded hachoir-core, parser and metadata, since i'm on windows i used the python setup.py install command and it worked fine fot core and parser, but when i do this for the metadata i get the following:

C:\Documents and Settings\user X\My Documents\Dls\hachoir metadata-1.3.1\hachoir-metadata-1.3.1>python setup.py install Traceback (most recent call last): File "setup.py", line 89, in <module> main() File "setup.py", line 57, in main exitcode = call(command) File "C:\Python26\lib\subprocess.py", line 470, in call return Popen(popenargs, .*.kwargs).wait() File "C:\Python26\lib\subprocess.py", line 621, in init errread, errwrite) File "C:\Python26\lib\subprocess.py", line 830, in _execute_child startupinfo) WindowsError: [Error 2] The System cannot find the specified file

I have my OS in spanish so I dont know if the WindowsError its well-translated

also, i cant use the python hachoir-metadata file command, because i get an [err!] Unable to parse the file: "file".

I would really appreciate any help, or even if somebody could point me in the right direction

Best regards

Comments (2)

  1. Victor Stinner repo owner

    I think that the first error comes from the pyuic4 program. If you don't care about hachoir-metadata-qt (Qt frontend), use ./setup.py --disable-qt.

    ...\hachoir-metadata-1.3.1>python setup.py install
    Traceback (most recent call last):
    ...
    File "C:\Python26\lib\subprocess.py", line 830, in _execute_child startupinfo)
    WindowsError: [Error 2] The System cannot find the specified file
    

    I just released hachoir-metadata 1.3.2 which includes a precompiled version of the .ui file (hachoir-metadata/qt/dialog_ui.py). But setup.py catchs OSError, not WindowsError: the setup.py have to be fixed.

    About the second error : << also, i cant use the python hachoir-metadata file command, because i get an [err!] Unable to parse the file: "file". >>. You have to specify the full path of your file name. Eg.

    C:\Python26\python.exe hachoir-metadata C:\Python26\python.exe
    

    To extract metadata from the python.exe program.

  2. Victor Stinner repo owner

    hachoir-metadata 1.3.2 (released one month ago) should fix the PyQt issue: pyuic4 is no more needed to install hachoir-medata, only PyQt. Use ./setup.py --disable-qt to completly disable (Py)Qt.

  3. Log in to comment