benfred / implicit

Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://benfred.github.io/implicit/
MIT License
3.57k stars 612 forks source link

function get_lastfm() error #707

Closed krafime closed 9 months ago

krafime commented 9 months ago

When I run artists, users, plays = get_lastfm(), it displays the following error:


OSError                                   Traceback (most recent call last)
[<ipython-input-12-20364fca4995>](https://localhost:8080/#) in <cell line: 3>()
      1 from implicit.datasets.lastfm import get_lastfm
      2 
----> 3 artists, users, plays = get_lastfm()
      4 plays = plays.T.tocsr()
      5 

2 frames
[/usr/local/lib/python3.10/dist-packages/h5py/_hl/files.py](https://localhost:8080/#) in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
    229         if swmr and swmr_support:
    230             flags |= h5f.ACC_SWMR_READ
--> 231         fid = h5f.open(name, flags, fapl=fapl)
    232     elif mode == 'r+':
    233         fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (truncated file: eof = 146137088, sblock->base_addr = 0, stored_eof = 184381856)```