As a side note: The original source code you referenced had a clear copyright/license message. In all fairness and completeness your code should have that copyright.

]]> “””

Create matrix vector rotation [ cos(theta) -sin(theta)

sin(theta) cos(theta) ]

from vector_rot to vector_base

“””

vector_rot = vector_rot / np.linalg.norm(vector_rot)

vector_base = vector_base / np.linalg.norm(vector_base)

# Calculate radian angle

theta = np.arctan2(vector_base[1], vector_base[0]) – np.arctan2(vector_rot[1] , vector_rot[0])

# Calculate matrix

c, s = np.cos(theta), np.sin(theta)

matrix = np.array(((c, -s), (s, c)))

return matrix

]]>Lood..

after investigating so much time about this topic, your input about the flag “–implicit-namespaces” and Chawdicks “adding the init.py into the subfolders” made it.

Thank you so much guys..

]]>