ModuleNotFoundError: No module named 'xml.sax'; 'xml' is not a package
Author: telnasser
Pull request: no
Labels: name: wontfix

I'm running this example:
`from transformers import pipeline

nlp = pipeline("sentiment-analysis")

print(nlp("I hate you"))
print(nlp("I love you"))`

I get this error:

`
Traceback (most recent call last):
  File "ttt.py", line 1, in <module>
    from transformers import pipeline as ppp
  File "/usr/local/lib/python3.8/site-packages/transformers/__init__.py", line 99, in <module>
    from .pipelines import (
  File "/usr/local/lib/python3.8/site-packages/transformers/pipelines.py", line 36, in <module>
    from .tokenization_auto import AutoTokenizer
  File "/usr/local/lib/python3.8/site-packages/transformers/tokenization_auto.py", line 52, in <module>
    from .tokenization_flaubert import FlaubertTokenizer
  File "/usr/local/lib/python3.8/site-packages/transformers/tokenization_flaubert.py", line 23, in <module>
    from .tokenization_xlm import XLMTokenizer
  File "/usr/local/lib/python3.8/site-packages/transformers/tokenization_xlm.py", line 26, in <module>
    import sacremoses as sm
  File "/usr/local/lib/python3.8/site-packages/sacremoses/__init__.py", line 2, in <module>
    from sacremoses.tokenize import *
  File "/usr/local/lib/python3.8/site-packages/sacremoses/tokenize.py", line 10, in <module>
    from sacremoses.util import is_cjk
  File "/usr/local/lib/python3.8/site-packages/sacremoses/util.py", line 9, in <module>
    from xml.sax.saxutils import escape, unescape
ModuleNotFoundError: No module named 'xml.sax'; 'xml' is not a package
`

Comments:
Hello! Is `sacremoses` installed in your environment? Do you mind pasting the result of `pip list` in your environment?

Here you go:

`Package                Version    
---------------------- -----------
absl-py                0.9.0      
astunparse             1.6.3      
beautifulsoup4         4.9.1      
bs4                    0.0.1      
cachetools             4.1.0      
certifi                2020.4.5.1 
chardet                3.0.4      
click                  7.1.2      
filelock               3.0.12     
future                 0.18.2     
gast                   0.3.3      
google-auth            1.16.1     
google-auth-oauthlib   0.4.1      
google-pasta           0.2.0      
grpcio                 1.29.0     
h5py                   2.10.0     
idna                   2.9        
joblib                 0.15.1     
Keras-Preprocessing    1.1.2      
Markdown               3.2.2      
numpy                  1.18.5     
oauthlib               3.1.0      
opt-einsum             3.2.1      
packaging              20.4       
Pillow                 7.1.2      
pip                    20.0.2     
protobuf               3.12.2     
pyasn1                 0.4.8      
pyasn1-modules         0.2.8      
pyparsing              2.4.7      
regex                  2020.6.8   
requests               2.23.0     
requests-oauthlib      1.3.0      
rsa                    4.0        
sacremoses             0.0.43     
scipy                  1.4.1      
sentencepiece          0.1.91     
setuptools             46.0.0     
six                    1.15.0     
soupsieve              2.0.1      
tensorboard            2.2.2      
tensorboard-plugin-wit 1.6.0.post3
tensorflow             2.2.0      
tensorflow-estimator   2.2.0      
termcolor              1.1.0      
tokenizers             0.7.0      
torch                  1.5.0      
torchvision            0.6.0      
tqdm                   4.46.1     
transformers           2.11.0     
urllib3                1.25.9     
Werkzeug               1.0.1      
wheel                  0.34.2     
wrapt                  1.12.1  `

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.