Hi Benoit: On Thu, 06 May 2010, Benoit Thiell wrote: > I was running the bibupload regression tests and came across an error in > the test "bibupload - simple FFT insert, check md5 through > BibRecDocs.str()". > > After some investigation, the cause of the error is that the python > module "magic" does not have a method open() (in > bibdocfile._get_magic_cookies).
On our SLC5 test box, all bibupload regression tests pass fine, and there is no Python magic library present. > The problem is that python-magic is not readily available on CentOS and > I had to install it from a package that I found here: > http://pypi.python.org/pypi/python-magic/0.1 That is not the one to use. Note that the INSTALL file mentions python-magic *Debian* package, so see <http://packages.debian.org/squeeze/python-magic>. It basically contains Python bindings to the magic library as compiled from the `file' source package <http://www.darwinsys.com/file/>. So, if you want to use it on CentOS, you probably have to recompile `file' SRPM with support for Python bindings. As mentioned above, we don't use Python magic bindings on SLC5 yet. So as a simple workaround you can try to remove any Python magic library you may have on your CentOS, and bibupload should work just fine. Best regards -- Tibor Simko
