diff --git a/examples/motion_viewer.py b/examples/motion_viewer.py index 71021c6025..47d23c3e7b 100644 --- a/examples/motion_viewer.py +++ b/examples/motion_viewer.py @@ -2,10 +2,15 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +import ctypes import random +import sys import time from typing import Any, Callable, Dict, Optional, Tuple +flags = sys.getdlopenflags() +sys.setdlopenflags(flags | ctypes.RTLD_GLOBAL) + import magnum as mn from magnum.platform.glfw import Application from viewer import HabitatSimInteractiveViewer, MouseMode, Timer diff --git a/examples/viewer.py b/examples/viewer.py index e9d0f711dd..78df8231ba 100644 --- a/examples/viewer.py +++ b/examples/viewer.py @@ -2,13 +2,18 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +import ctypes import math import os import string +import sys import time from enum import Enum from typing import Any, Callable, Dict, List, Optional, Tuple +flags = sys.getdlopenflags() +sys.setdlopenflags(flags | ctypes.RTLD_GLOBAL) + import magnum as mn import numpy as np from magnum import shaders, text diff --git a/src_python/habitat_sim/__init__.py b/src_python/habitat_sim/__init__.py index 023ade395f..142260c84d 100755 --- a/src_python/habitat_sim/__init__.py +++ b/src_python/habitat_sim/__init__.py @@ -6,12 +6,6 @@ import builtins -# Important platform-specific setup steps to do before using bindings. -try: - import magnum -except ImportError: - pass - __version__ = "0.3.1" if not getattr(builtins, "__HSIM_SETUP__", False):