fix d11ec67 mathutils dependency regression

mathutils is a blender module, wrap imports in try/except
This commit is contained in:
Bruno Postle
2024-05-06 13:55:20 +01:00
parent 31d322a28c
commit 54a3730c20
2 changed files with 16 additions and 4 deletions
@@ -18,11 +18,17 @@
from .add_axis_representation import add_axis_representation
from .add_boolean import add_boolean
from .add_door_representation import add_door_representation
try:
from .add_door_representation import add_door_representation
except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: geometry.add_door_representation - {e}")
from .add_footprint_representation import add_footprint_representation
from .add_mesh_representation import add_mesh_representation
from .add_profile_representation import add_profile_representation
from .add_railing_representation import add_railing_representation
try:
from .add_railing_representation import add_railing_representation
except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: geometry.add_railing_representation - {e}")
try:
from .add_representation import add_representation
@@ -30,7 +36,10 @@ except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: geometry.add_representation - {e}")
from .add_slab_representation import add_slab_representation
from .add_wall_representation import add_wall_representation
from .add_window_representation import add_window_representation
try:
from .add_window_representation import add_window_representation
except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: geometry.add_window_representation - {e}")
from .assign_representation import assign_representation
from .connect_element import connect_element
from .connect_path import connect_path
@@ -16,6 +16,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from .create_axis_curve import create_axis_curve
try:
from .create_axis_curve import create_axis_curve
except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: grid.create_axis_curve - {e}")
from .create_grid_axis import create_grid_axis
from .remove_grid_axis import remove_grid_axis