Hi, I try to use transformers ‘4.57.0.dev0’, but when I import evaluate':
File “”, line 241, in _call_with_frames_removed
File “/home/–/dev_env/lib/python3.10/site-packages/evaluate/init.py”, line 29, in
from .evaluation_suite import EvaluationSuite
File “/home/–/dev_env/lib/python3.10/site-packages/evaluate/evaluation_suite/init.py”, line 10, in
from ..evaluator import evaluator
File “/home/–/dev_env/lib/python3.10/site-packages/evaluate/evaluator/init.py”, line 17, in
from transformers.pipelines import SUPPORTED_TASKS as SUPPORTED_PIPELINE_TASKS
File “/home/–/transformers/src/transformers/pipelines/init.py”, line 63, in
from .document_question_answering import DocumentQuestionAnsweringPipeline
File “/home/–/transformers/src/transformers/pipelines/document_question_answering.py”, line 30, in
from .question_answering import select_starts_ends
File “/home/–/transformers/src/transformers/pipelines/question_answering.py”, line 9, in
from ..data import SquadExample, SquadFeatures, squad_convert_examples_to_features
Unless you’re contributing to Hugging Face core dev, avoid the dev0 builds — they’re unstable and will break like this. Stick with the latest PyPI release.