Skip to content

[BUG] Version 2.3.0 not working on Google Colab #655

@aymenkhs

Description

@aymenkhs

Description

Import fails in Colab in latest version

In which platform does it happen?

Google Colab

How do we replicate the issue?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions