ModuleNotFoundError: No module named 'ezdxf.math.vector'

Issue #480 duplicate
Hans Boot created an issue

As of the ezdxf Version 0.15 - 2020-12-30, we have the following message:

ModuleNotFoundError: No module named 'ezdxf.math.vector'

This is due to:

  • CHANGE: renamed ezdxf.math.Vector to Vec3, but Vector remains as synonym

The code says

from ezdxf.math.vector import Vector as ezdxf_vector

But this way, the synonym does not work.

The code should probably be changed to:

from ezdxf.math import Vector as ezdxf_vector

That has the advantage of being also compatible with older versions of the lib.

Comments (6)

  1. Log in to comment