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
Describe the bug
A problem with from simpletransformers import ClassificationModel. This is using code that I have been running almost daily for more than a month, including last Friday. Obviously a new version of something somewhere is causing the bug.
since last week in response to the bug discussed here: #1539. This new bug occurs with and without the version of transformers being specified.)
Given how tqdm features in the error message my gut tells me this is something to do with the simpletransformers progress bars, but that might be totally wrong. Any help is appreciated.
Expected behavior
Code to import properly.
Desktop (please complete the following information):
Running on AWS sagemaker GPU optimized (ml.g4dn.xlarge)
Additional context
AttributeError Traceback (most recent call last)
in
1 import simpletransformers
----> 2 from simpletransformers.classification import ClassificationModel
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/init.py in
----> 1 from simpletransformers.classification.classification_model import ClassificationModel
2 from simpletransformers.classification.multi_label_classification_model import (
3 MultiLabelClassificationModel,
4 )
5 from simpletransformers.classification.multi_modal_classification_model import (
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/classification_model.py in
119 from transformers.convert_graph_to_onnx import convert, quantize
120
--> 121 from simpletransformers.classification.classification_utils import (
122 InputExample,
123 LazyClassificationDataset,
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/classification_utils.py in
38
39 from torch.utils.data import Dataset
---> 40 from datasets import load_dataset
41 from datasets import Dataset as HFDataset
42 from tqdm.auto import tqdm
/opt/conda/lib/python3.8/site-packages/datasets/init.py in
20 version = "2.14.0"
21
---> 22 from .arrow_dataset import Dataset
23 from .arrow_reader import ReadInstruction
24 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in
64
65 from . import config
---> 66 from .arrow_reader import ArrowReader
67 from .arrow_writer import ArrowWriter, OptimizedTypedSequence
68 from .data_files import sanitize_patterns
/opt/conda/lib/python3.8/site-packages/datasets/arrow_reader.py in
32 from .table import InMemoryTable, MemoryMappedTable, Table, concat_tables
33 from .utils import logging
---> 34 from .utils.file_utils import cached_path
35
36
/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py in
336
337
--> 338 class TqdmCallback(fsspec.callbacks.TqdmCallback):
339 def init(self, tqdm_kwargs=None, *args, **kwargs):
340 super().init(tqdm_kwargs, *args, **kwargs)
AttributeError: module 'fsspec.callbacks' has no attribute 'TqdmCallback'
The text was updated successfully, but these errors were encountered:
I have the same error! A few months ago my code was working but now I am getting the AttributeError: module 'fsspec.callbacks' has no attribute 'TqdmCallback' error in Jupyter Notebook.
My issue was solved by upgrading all the libraries that I was using, especially the fsspec library via the command "!pip install --upgrade fsspec". Most probably fsspec is updated recently.
My issue was solved by upgrading all the libraries that I was using, especially the fsspec library via the command "!pip install --upgrade fsspec". Most probably fsspec is updated recently.
Describe the bug
A problem with from simpletransformers import ClassificationModel. This is using code that I have been running almost daily for more than a month, including last Friday. Obviously a new version of something somewhere is causing the bug.
To Reproduce
Steps to reproduce the behavior:
!pip install torch
!pip install simpletransformers
import simpletransformers
from simpletransformers.classification import ClassificationModel
(note that I have been using
!pip install simpletransformers "transformers==4.30.2"
since last week in response to the bug discussed here: #1539. This new bug occurs with and without the version of transformers being specified.)
Given how tqdm features in the error message my gut tells me this is something to do with the simpletransformers progress bars, but that might be totally wrong. Any help is appreciated.
Expected behavior
Code to import properly.
Desktop (please complete the following information):
Additional context
AttributeError Traceback (most recent call last)
in
1 import simpletransformers
----> 2 from simpletransformers.classification import ClassificationModel
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/init.py in
----> 1 from simpletransformers.classification.classification_model import ClassificationModel
2 from simpletransformers.classification.multi_label_classification_model import (
3 MultiLabelClassificationModel,
4 )
5 from simpletransformers.classification.multi_modal_classification_model import (
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/classification_model.py in
119 from transformers.convert_graph_to_onnx import convert, quantize
120
--> 121 from simpletransformers.classification.classification_utils import (
122 InputExample,
123 LazyClassificationDataset,
/opt/conda/lib/python3.8/site-packages/simpletransformers/classification/classification_utils.py in
38
39 from torch.utils.data import Dataset
---> 40 from datasets import load_dataset
41 from datasets import Dataset as HFDataset
42 from tqdm.auto import tqdm
/opt/conda/lib/python3.8/site-packages/datasets/init.py in
20 version = "2.14.0"
21
---> 22 from .arrow_dataset import Dataset
23 from .arrow_reader import ReadInstruction
24 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in
64
65 from . import config
---> 66 from .arrow_reader import ArrowReader
67 from .arrow_writer import ArrowWriter, OptimizedTypedSequence
68 from .data_files import sanitize_patterns
/opt/conda/lib/python3.8/site-packages/datasets/arrow_reader.py in
32 from .table import InMemoryTable, MemoryMappedTable, Table, concat_tables
33 from .utils import logging
---> 34 from .utils.file_utils import cached_path
35
36
/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py in
336
337
--> 338 class TqdmCallback(fsspec.callbacks.TqdmCallback):
339 def init(self, tqdm_kwargs=None, *args, **kwargs):
340 super().init(tqdm_kwargs, *args, **kwargs)
AttributeError: module 'fsspec.callbacks' has no attribute 'TqdmCallback'
The text was updated successfully, but these errors were encountered: