ValueError: got_ver is None
HiI was working good with Transformers and BERT models for sometime. But today I tried uninstall and reinstall numpy module to clear some warning in the Jupyter notebook. After performing this through Anaconda prompt, lot of modules missing reported. Fixed one by one but the error “ValueError: got_ver is None” is haunting me like anything when importing transformers. Mine is 4.18.0 version installed. Multiple reinstallations attempted but again issues reportingI am losing my time to fix this. Can anybody help me in this case ?
2022-08-15T22:33:32Z
I got the same thing after bumping numpy from 1.23.1 to 1.23.2image860×268 7.79 KBI am using transformers v4.21.1 and this code below is what is throwing the error and what I read before reproducing in the REPL above.github.comhuggingface/transformers/blob/v4.21.1/src/transformers/utils/versions.py# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Utilities for working with package versions
"""

import operator
import re
import sysThis file has been truncated.show original