[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Python-modules-team] Bug#806334: kombu: FTBFS: ImportError: cannot import name '_uuid_generate_random'



Brian May <bam@debian.org> writes:

> Don't think we can complain at Python though, looks like a private
> symbol.

Looks like this is a work around for a bug that was in Python 2.5.
http://bugs.python.org/issue4607:

>From kombu code:

def uuid4():
    # Workaround for http://bugs.python.org/issue4607
    if ctypes and _uuid_generate_random:  # pragma: no cover
        buffer = ctypes.create_string_buffer(16)
        _uuid_generate_random(buffer)
        return UUID(bytes=buffer.raw)
    return _uuid4()
-- 
Brian May <bam@debian.org>


Reply to: