ROOT::Math linking in PyROOT for vector operations

I am trying to Rotate a Vector around another in a python file using root 6.26.06

I get weird linking error:

IncrementalExecutor::executeFunction: symbol '_ZN4ROOT4Math9gv_detail47ERROR_This_Rotation_Conversion_is_NOT_SupportedC1Ev' unresolved while linking symbol '__cf_11'!
You are probably missing the definition of ROOT::Math::gv_detail::ERROR_This_Rotation_Conversion_is_NOT_Supported::ERROR_This_Rotation_Conversion_is_NOT_Supported()
Maybe you need to load the corresponding shared library?

Reproducer:

import ROOT

v1 = ROOT.Math.XYZVector(1,1,1)
v2 = ROOT.Math.XYZVector(2,3,4)

rot = ROOT.Math.Rotation3D(ROOT.Math.AxisAngle(v2, 0.2))

v3 = rot*v1

I guess @moneta can help you.

Hi,
It is very strange that this does not work in Python (it works in C++). I will open an issue.
As a workaround you can do:

v3 = rot(v1)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.