You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the project needs TensorFlow, but set_up.py does not contain the package. Although the requirements.txt contain the package, but when execute the command: pip install -e ., it will not install the package and occur no module error? Actually, is there any reason that not containing TensorFlow in set_up.py???
==================================== ERRORS ====================================
___ ERROR collecting tests/unit_test/processor_units/test_processor_units.py ___
ImportError while importing test module '/mnt/zejun/smp/data/python_star_2000repo/MatchZoo/tests/unit_test/processor_units/test_processor_units.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.7/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit_test/processor_units/test_processor_units.py:4: in
from matchzoo.preprocessors import units
matchzoo/init.py:20: in
from . import preprocessors
matchzoo/preprocessors/init.py:1: in
from . import units
matchzoo/preprocessors/units/init.py:13: in
from .tokenize import Tokenize
matchzoo/preprocessors/units/tokenize.py:2: in
from matchzoo.utils.bert_utils import is_chinese_char,
matchzoo/utils/init.py:4: in
from .make_keras_optimizer_picklable import make_keras_optimizer_picklable
matchzoo/utils/make_keras_optimizer_picklable.py:1: in
import keras
venv_test_7/lib/python3.7/site-packages/keras/init.py:21: in
from tensorflow.python import tf2
E ModuleNotFoundError: No module named 'tensorflow'
=========================== short test summary info ============================
ERROR tests/unit_test/processor_units/test_processor_units.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.91s ===============================
Describe your attempts
I checked the documentation and found no answer
I checked to make sure that this is not a duplicate issue
Context
Ubutun
The text was updated successfully, but these errors were encountered:
Describe the bug
the project needs TensorFlow, but set_up.py does not contain the package. Although the requirements.txt contain the package, but when execute the command: pip install -e ., it will not install the package and occur no module error? Actually, is there any reason that not containing TensorFlow in set_up.py???
To Reproduce
pip3 install -e .
python3 -m pytest -v tests/unit_test/processor_units/test_processor_units.py
============================= test session starts ==============================
platform linux -- Python 3.7.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /mnt/zejun/smp/data/python_star_2000repo/MatchZoo/venv_test_7/bin/python3.7
cachedir: .pytest_cache
rootdir: /mnt/zejun/smp/data/python_star_2000repo/MatchZoo
plugins: cov-3.0.0, mock-3.6.1
collecting ... collected 0 items / 1 error
==================================== ERRORS ====================================
___ ERROR collecting tests/unit_test/processor_units/test_processor_units.py ___
ImportError while importing test module '/mnt/zejun/smp/data/python_star_2000repo/MatchZoo/tests/unit_test/processor_units/test_processor_units.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.7/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit_test/processor_units/test_processor_units.py:4: in
from matchzoo.preprocessors import units
matchzoo/init.py:20: in
from . import preprocessors
matchzoo/preprocessors/init.py:1: in
from . import units
matchzoo/preprocessors/units/init.py:13: in
from .tokenize import Tokenize
matchzoo/preprocessors/units/tokenize.py:2: in
from matchzoo.utils.bert_utils import is_chinese_char,
matchzoo/utils/init.py:4: in
from .make_keras_optimizer_picklable import make_keras_optimizer_picklable
matchzoo/utils/make_keras_optimizer_picklable.py:1: in
import keras
venv_test_7/lib/python3.7/site-packages/keras/init.py:21: in
from tensorflow.python import tf2
E ModuleNotFoundError: No module named 'tensorflow'
=========================== short test summary info ============================
ERROR tests/unit_test/processor_units/test_processor_units.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.91s ===============================
Describe your attempts
Context
The text was updated successfully, but these errors were encountered: