Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Cannot find librosie in local directory or system installation #83

Open
kenaitian opened this issue May 19, 2020 · 0 comments

Comments

@kenaitian
Copy link

kenaitian commented May 19, 2020

When below Code is reproduced on both Jupyter Notebook and IBM Watson Notebook:

!pip install pixiedust_rosie

import pixiedust_rosie

url = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv"

pixiedust_rosie.wrangle_data(url)

Downloading 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv' from https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv Downloaded 108163 bytes Creating pandas DataFrame for 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv'. Please wait... Successfully created pandas DataFrame for 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv'

OSError Traceback (most recent call last) /opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in load(path, quiet) 143 try: --> 144 _load_from('//') # local 145 except OSError:

/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in _load_from(path_string) 180 libpath = os.path.join(path_string, _librosie_name) --> 181 _lib = ffi.dlopen(libpath, ffi.RTLD_LAZY | ffi.RTLD_GLOBAL) 182 _librosie_path = libpath

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in dlopen(self, name, flags) 140 with self._lock: --> 141 lib, function_cache = _make_ffi_library(self, name, flags) 142 self._function_caches.append(function_cache)

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in _make_ffi_library(ffi, libname, flags) 801 backend = ffi._backend --> 802 backendlib = _load_backend_lib(backend, libname, flags) 803 #

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in _load_backend_lib(backend, name, flags) 796 msg = "%s. Additionally, %s" % (first_error, msg) --> 797 raise OSError(msg) 798 return backend.load_library(path, flags)

OSError: cannot load library '/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/librosie.so': /opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/librosie.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called '/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/librosie.so'

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last) /opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in load(path, quiet) 146 try: --> 147 _load_from('') # system 148 except OSError:

/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in _load_from(path_string) 180 libpath = os.path.join(path_string, _librosie_name) --> 181 _lib = ffi.dlopen(libpath, ffi.RTLD_LAZY | ffi.RTLD_GLOBAL) 182 _librosie_path = libpath

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in dlopen(self, name, flags) 140 with self._lock: --> 141 lib, function_cache = _make_ffi_library(self, name, flags) 142 self._function_caches.append(function_cache)

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in _make_ffi_library(ffi, libname, flags) 801 backend = ffi._backend --> 802 backendlib = _load_backend_lib(backend, libname, flags) 803 #

/opt/conda/envs/Python36/lib/python3.6/site-packages/cffi/api.py in _load_backend_lib(backend, name, flags) 796 msg = "%s. Additionally, %s" % (first_error, msg) --> 797 raise OSError(msg) 798 return backend.load_library(path, flags)

OSError: cannot load library 'librosie.so': librosie.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'librosie.so'

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last) in 1 url = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv" ----> 2 pixiedust_rosie.wrangle_data(url)

/opt/conda/envs/Python36/lib/python3.6/site-packages/pixiedust_rosie/init.py in wrangle_data(url) 38 "displayName": url, 39 "url": url ---> 40 }, True).download( data_loader )

~/.local/lib/python3.6/site-packages/pixiedust/utils/sampleData.py in download(self, dataLoader) 272 print("Creating {1} DataFrame for '{0}'. Please wait...".
273 format(displayName, 'pySpark' if Environment.hasSpark and not self.forcePandas else 'pandas')) --> 274 return dataLoader(path, self.dataDef.get("schema", None)) 275 finally: 276 print("Successfully created {1} DataFrame for '{0}'".\

/opt/conda/envs/Python36/lib/python3.6/site-packages/pixiedust_rosie/init.py in data_loader(path, schema) 30 def data_loader(path, schema): 31 """Invoke the PixieRosieApp with the path to the local file""" ---> 32 PixieRosieApp().run(path) 33 34 if str(url) in dataDefs:

~/.local/lib/python3.6/site-packages/pixiedust/display/app/pixieapp.py in run(self, entity, **kwargs) 440 441 if not hasattr(self, "pd_initialized"): --> 442 run_method_with_super_classes(cls, self, "setup") 443 self.nostore_params = True 444 self.pd_initialized = True

~/.local/lib/python3.6/site-packages/pixiedust/display/app/pixieapp.py in run_method_with_super_classes(cls, instance, method_name) 401 if f not in fctSet and callable(f): 402 fctSet.add(f) --> 403 f(instance) 404 405 def run(self, entity=None, **kwargs):

/opt/conda/envs/Python36/lib/python3.6/site-packages/pixiedust_rosie/pixie_rosie_UI.py in setup(self) 25 def setup(self): 26 self.schema = cd.Schema(self.pixieapp_entity, 50) ---> 27 self.schema.load_and_process() 28 29 @route()

/opt/conda/envs/Python36/lib/python3.6/site-packages/pixiedust_rosie/classify/classify_data.py in load_and_process(self) 154 # 155 def load_and_process(self): --> 156 self.matcher = rm.Matcher() 157 ok, err = self.load_sample_data() 158 if not ok:

/opt/conda/envs/Python36/lib/python3.6/site-packages/pixiedust_rosie/classify/rosie_matcher.py in init(self) 56 rosie_home = os.getenv('ROSIE_HOME') 57 if rosie_home: rosie.load(os.path.join(rosie_home, 'src/librosie/local')) ---> 58 self.engine = rosie.engine() 59 self.engine.import_pkg(b'all') 60 self.engine.import_pkg(b'csv')

/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/rosie.py in init(self) 67 68 def init(self): ---> 69 self._engine = internal.engine() 70 71 # -----------------------------------------------------------------------------

/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in init(self) 192 def init(self): 193 global _lib --> 194 if not _lib: load() 195 Cerrs = _new_cstr() 196 self.engine = _lib.rosie_new(Cerrs)

/opt/conda/envs/Python36/lib/python3.6/site-packages/rosie/internal.py in load(path, quiet) 147 _load_from('') # system 148 except OSError: --> 149 raise RuntimeError('Cannot find librosie in local directory or system installation') 150 elif path == librosie_system: 151 try:

RuntimeError: Cannot find librosie in local directory or system installation

@kenaitian kenaitian changed the title error when using librosie and you can reproduce this error on both Jupyter Notebook and IBM Watson Notebook: RuntimeError: Cannot find librosie in local directory or system installation May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant