Recently, I encountered the following errors when installing fairseq running experiment in machine translation related tasks:
AttributeError: module 'sacrebleu' has no attribute 'compute_bleu'
After consulting, it is a problem with sacrableu
version 2.0. Only the following operations are required:
pip uninstall sacrebleu
pip install sacrebleu==1.5.1
Problem solved!
Read More:
- AttributeError: module ‘sacrebleu‘ has no attribute ‘compute_bleu‘
- [error] attributeerror: module ‘SIP’ has no attribute ‘setapi‘
- AttributeError: module ‘torch’ has no attribute’_six’ [The problem is solved after restart]
- Attributeerror: ‘module’ object has no attribute ‘handlers’ — Python sub module import problem
- Solving attributeerror: module ‘Matplotlib’ has no attribute ‘artist’
- AttributeError:module“seaborn” has no attribute “lineplot”
- AttributeError: module ‘scipy.misc’ has no attribute ‘imread’
- Attribute Error: ‘XXX‘ object has no attribute ‘module‘
- AttAttributeError: module ‘typing‘ has no attribute ‘NoReturn‘
- Module ‘Seaborn’ has no attribute ‘scatterplot’ solution
- AttributeError: module ‘os’ has no attribute ‘mknod’
- AttributeError:module ‘seaborn‘ has no attribute ‘tsplot‘
- Attributeerror: module “Seaborn” has no attribute “lineplot”
- Solving attributeerror: module ‘urllib’ has no attribute ‘request’
- AttributeError: module ‘onnxruntime‘ has no attribute ‘InferenceSession‘
- module ‘os’ has no attribute ‘mknod’
- Tensorflow error: attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ (‘pack ‘)
- AttributeError: module ‘cv2.cv2‘ has no attribute ‘face‘
- module ‘tensorflow‘ has no attribute ‘placeholder‘
- Error reporting: attributeerror: module ‘******* has no attribute’ ******* and other problems are solved