CybOXProject / mixbox

A library of common code leveraged by python-cybox, python-maec, and python-stix
BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

weakrefmethod module incompatible with Python 3 #23

Closed bworrell closed 8 years ago

bworrell commented 8 years ago

The mixbox.signals module uses WeakMethod, which was introduced in Python 3.4. For earlier versions of Python, we import WeakMethod from the external weakrefmethod module.

The weakrefmethod module is not compatible with Python 3 due to a relative import of its internal _version module. As such, we get CI failures on Python 3.2 and Python 3.3.

One solution may be to copy the weakrefmethod module into the vendor package and alter our imports accordingly.

gtback commented 8 years ago

Fixed by #28