Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on colab #42

Open
Tizzzzy opened this issue Oct 17, 2023 · 2 comments
Open

Error on colab #42

Tizzzzy opened this issue Oct 17, 2023 · 2 comments

Comments

@Tizzzzy
Copy link

Tizzzzy commented Oct 17, 2023

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

@Timothyxxx
Copy link
Member

Hi, thanks for asking and sorry for the delay, I will have a look on it

@Timothyxxx
Copy link
Member

Yes, I can replicate this error, but it seems like an error from the transformers==4.9.2, we will try to find a solution later on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants