You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Version 2.3.0 not working on Google Colab #655
Install Cornac 2.3.0 using !pip install cornac==2.3.0 and import any part of the library.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[<ipython-input-2-2713bf83a8d2>](https://localhost:8080/#) in <cell line: 1>()
----> 1 import cornac
6 frames
[/usr/local/lib/python3.10/dist-packages/cornac/models/bpr/__init__.py](https://localhost:8080/#) in <module>
14 # ============================================================================
15
---> 16 from .recom_bpr import BPR
17 from .recom_wbpr import WBPR
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/local/lib/python3.10/dist-packages/cornac/models/bpr/recom_bpr.cpython-310-x86_64-linux-gnu.so)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Expected behavior
The import should work normally
Other Comments
The following notebook shows the error : Notebook link
This is very tricky because some models of Cornac complied using gcc13 where Google Colab env doesn't have required libs installed. So, the solution is as follows:
Activity
qtuantruong commentedon Dec 28, 2024
This is very tricky because some models of Cornac complied using gcc13 where Google Colab env doesn't have required libs installed. So, the solution is as follows:
GLIBCXX_3.4.32in the output: