martinling/numpy_quaternion — Issue #2: Issue with ufunc loop registration?
Author: vladu
Created: 2011-12-16 19:48:53+00:00
State: open

Hello,

I attempted to follow along with the README, and the package built and installed nicely. However, when running the example code, I run into the following issue:

```python
>>> import numpy as np
>>> import quaternion
>>> np.quaternion(1,0,0,0)
quaternion(1, 0, 0, 0)
>>> q1 = np.quaternion(1,2,3,4)
>>> q2 = np.quaternion(5,6,7,8)
>>> q1 * q2
TypeError Traceback (most recent call last)
[... ...]
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
```

Any ideas what might be causing this? I'm using numpy version 1.6.0, if that matters.