Repository navigation
Closed
Description
foo@bar:~/foo/bar/pytorch-pretrained-BERT$ pytest -sv ./tests/
===================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.6.6, pytest-3.9.1, py-1.7.0, pluggy-0.8.0 -- /home/foo/.pyenv/versions/anaconda3-5.1.0/bin/python
cachedir: .pytest_cache
rootdir: /data1/users/foo/bar/pytorch-pretrained-BERT, inifile:
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, cov-2.6.0, arraydiff-0.2, flaky-3.4.0
collected 0 items / 3 errors
=========================================================================================================================== ERRORS ============================================================================================================================
___________________________________________________________________________________________________________ ERROR collecting tests/modeling_test.py ___________________________________________________________________________________________________________
ImportError while importing test module '/data1/users/foo/bar/pytorch-pretrained-BERT/tests/modeling_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/modeling_test.py:25: in <module>
import modeling
E ModuleNotFoundError: No module named 'modeling'
_________________________________________________________________________________________________________ ERROR collecting tests/optimization_test.py _________________________________________________________________________________________________________
ImportError while importing test module '/data1/users/foo/bar/pytorch-pretrained-BERT/tests/optimization_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/optimization_test.py:23: in <module>
import optimization
E ModuleNotFoundError: No module named 'optimization'
_________________________________________________________________________________________________________ ERROR collecting tests/tokenization_test.py _________________________________________________________________________________________________________
ImportError while importing test module '/data1/users/foo/bar/pytorch-pretrained-BERT/tests/tokenization_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/tokenization_test.py:22: in <module>
import tokenization
E ModuleNotFoundError: No module named 'tokenization'
===Flaky Test Report===
===End Flaky Test Report===
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================================================================== 3 error in 0.60 seconds ==================================================================================================================
In python 3, python -m pytest -sv tests/ works fine.
Reacted by drachenbach, Andrea Ferretti and Mathis Chenuet
Reacted by Mohd Aasim Ansari
Metadata
Metadata
Assignees
Labels
No labels
Activity
thomwolf commentedon Nov 7, 2018
Thanks, I update the readme.
Add `run_glue_tpu.py` that trains models on TPUs (#3702)
Merge pull request huggingface#6 from microsoft/raviskolli/ort
Merge pull request huggingface#6 from ROCmSoftwarePlatform/gpt2-tf2
Merge pull request #6 from intel-sandbox/btmodel.fea_extract_tests
Merge pull request huggingface#6 from jamesthesnake/pop
Update default summarization model (huggingface#6)
Pr fixes (#6)
Cohere Model Release (#29622)
Merge pull request #6 from pcuenca/add_palma_shift_mask
9 remaining items
Merge pull request huggingface#6 from huggingface/cijose/hf_sat493
HunYuan opensource (#39606)
HunYuan opensource (#39606)
HunYuan opensource (huggingface#39606)
sync main & ruff format (huggingface#9)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
Gemma 3n (huggingface#39059)
fix: updates for v5 standards (huggingface#6)
Fix typos (#45574)
Fix typos (#45574)