Closed cjhjhj closed 3 years ago
Hi all,
I can confirm this problem and ran into the same exception on my Windows 10 machine using Python 3.9.6. The problem seems to arise from the fact, that libopentims_support is not build as an Extension on Windows machines, however the functionality of the libopentims_support library should be included in opentimspycpp. As a quick fix to the problem, I made the following changes to the \_init__.py file in the opentimspy folder.
try:
import libopentims_support
import opentimspy_cpp
except (ImportError, ModuleNotFoundError):
import ctypes
import pkgutil
support_lib = pkgutil.get_loader("libopentims_support")
if support_lib is not None:
ctypes.CDLL(support_lib.get_filename(), ctypes.RTLD_GLOBAL)
cpp_lib = pkgutil.get_loader("libopentims_cpp")
ctypes.CDLL(cpp_lib.get_filename(), ctypes.RTLD_GLOBAL)
import opentimspy_cpp
I use opentims in conjunction with timspy and data loading worked fine for me after the changes. However, the extent of the canges should be checked by the opentims team.
Hi,
Just letting you know I'm working on it, I'm just not a Windows guy, so it might take a while while I stumble around ;)
The fix will probably be something along this lines, I just have to make sure it doesn't break everything on other platforms...
Hi,
I've released a new version, hopefully fixing this issue. (v1.0.10)
OK, closing. Feel free to reopen if you still have the same issue with v1.0.10.
Hello there,
I installed OpenTIMS using "pip install opentimspy", and "pip install opentims_bruker_bridge" in a Windows computer. The installation went well without problems. However, when I tried to use the package, I came across errors as follows,
Visual studio 2019 and python 3.8 were used. Please let me know what the problem is. Thanks