Open tmatsuzawa opened 3 months ago
Hi I have installed pyJHTDB on my Mac. For the first-time uesrs, README suggests running the following lines.
from pyJHTDB import test_plain test_plain()
However, this raises an error as it cannot instantiate pyJHTDB.libJHTDB(). What is causing this behavior?
To reproduce, run
import numpy as np import pyJHTDB from pyJHTDB import libJHTDB lTDB = pyJHTDB.libJHTDB()
Error message:
OSError Traceback (most recent call last) <ipython-input-5-16a1b3452a7b> in <module> 1 from pyJHTDB import test_plain ----> 2 test_plain() ~/Documents/git/takumi/pyJHTDB/pyJHTDB/test.py in test_plain(N) 65 66 # load shared library ---> 67 lTDB = pyJHTDB.libJHTDB() 68 #initialize webservices 69 lTDB.initialize() ~/Documents/git/pyJHTDB/pyJHTDB/libJHTDB.py in __init__(self, auth_token) 45 self.lib = np.ctypeslib.load_library( 46 self.libname, ---> 47 os.path.abspath(os.path.join(lib_location, os.path.pardir))) 48 self.authToken = ctypes.c_char_p(auth_token.encode('ascii')) 49 self.connection_on = False ~/anaconda3/lib/python3.7/site-packages/numpy/ctypeslib.py in load_library(libname, loader_path) 152 raise 153 ## if no successful return in the libname_ext loop: --> 154 raise OSError("no file with expected extension") 155 156 OSError: no file with expected extension
Hi I have installed pyJHTDB on my Mac. For the first-time uesrs, README suggests running the following lines.
However, this raises an error as it cannot instantiate pyJHTDB.libJHTDB(). What is causing this behavior?
To reproduce, run
Error message: