Kaggle / docker-rcran

A dockerfile to install all of CRAN
Apache License 2.0
19 stars 15 forks source link

Error when importing module. #63

Closed nipnipj closed 1 year ago

nipnipj commented 2 years ago

reticulate::import("sklearn.mixture") results in the following error.

Error in py_module_import(module, convert = convert): ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /root/.local/share/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-38-x86_64-linux-gnu.so)

Traceback:

1. import("sklearn.mixture")
2. py_module_import(module, convert = convert)
Philmod commented 2 years ago

Actually, this file exists, but it seems to be an issue with conda not finding it.

# ls -alh /usr/lib/x86_64-linux-gnu/libstdc++.so.6
lrwxrwxrwx 1 root root 19 May 29  2021 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.28
nipnipj commented 2 years ago

It was working fine 3 to 5 days back.

nipnipj commented 2 years ago

downgrading to the version used by python kernels is one solution.

nipnipj commented 2 years ago

Another error appears:

*** caught segfault *** 256 address 0x2a, cause 'memory not mapped'
Philmod commented 2 years ago

It was working fine 3 to 5 days back.

So you could use a previous version of the environment by forking an old notebook

downgrading to the version used by python kernels is one solution.

Downgrading the version of what?

nipnipj commented 2 years ago
scikit-learn==1.0.2
scipy==1.7.3