UnifiedSKG icon indicating copy to clipboard operation
UnifiedSKG copied to clipboard

Error on colab

Open Tizzzzy opened this issue 8 months ago • 2 comments

Hi, On the colab import essential package section, I got this error:

AttributeError Traceback (most recent call last) in <cell line: 4>() 2 import time 3 import torch ----> 4 import datasets 5 from transformers import ( 6 HfArgumentParser,

6 frames /usr/lib/python3.10/functools.py in update_wrapper(wrapper, wrapped, assigned, updated) 59 # Issue #17482: set wrapped last so we don't inadvertently copy it 60 # from the wrapped function when updating dict ---> 61 wrapper.wrapped = wrapped 62 # Return the wrapper so this can be used as a decorator via partial() 63 return wrapper

AttributeError: readonly attribute

Is this because I got this error when I do pip install? Building wheels for collected packages: tokenizers, sacremoses error: subprocess-exited-with-error

× Building wheel for tokenizers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for tokenizers (pyproject.toml) ... error ERROR: Failed building wheel for tokenizers Building wheel for sacremoses (setup.py) ... done Created wheel for sacremoses: filename=sacremoses-0.0.53-py3-none-any.whl size=895241 sha256=da4bd6abf554d38d1aef9a04f43337bfe477ff8dc20ca937e3b0820ca1903c6e Stored in directory: /root/.cache/pip/wheels/00/24/97/a2ea5324f36bc626e1ea0267f33db6aa80d157ee977e9e42fb Successfully built sacremoses Failed to build tokenizers ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

Tizzzzy avatar Oct 17 '23 16:10 Tizzzzy