Unable to commit change |
||
Issue description
I'm trying to commit a change of a lab-tool but getting below errors.
Please advice.
Errors in PROJECT *chromeos/chromeos-admin*!
COMMIT c5a4053a:
Description:
>Replace deprecated DNS server
>
>Due to deprecation of chromeos-ddns1.mtv, replace this Ganati to
>chromeos-ddns3.cbf
>
>BUG=none
>TEST= Zone checking passed.
>dig +norecurse +aaonly +short -t ns @chromeos-ddns3.cbf cros.corp.google.com.
>chrome-ns3.ams.corp.google.com.
>chromeos-ddns3.cbf.corp.google.com.
>chrome-ns2.hot.corp.google.com.
>
>Change-Id: Iebf78c45d1822527a32b696ef35fd4daa110477b
>
>
Errors:
* Changelist description needs TEST field (after first line)
* Hook script "./bin/test_venv_packages" failed with code 1:
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 7, in <module>
from virtualenv import main
ImportError: No module named virtualenv
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/scripts/create_venv.py", line 46, in <module>
main()
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/scripts/create_venv.py", line 35, in main
print(venv.ensure())
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/venvlib.py", line 100, in ensure
self._check_or_create()
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/venvlib.py", line 108, in _check_or_create
self._create()
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/venvlib.py", line 117, in _create
logfile=logfile)
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/venvlib.py", line 213, in _create_venv
_log_check_call(command, logfile=logfile, env=env)
File "/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/venv/cros_venv/venvlib.py", line 258, in wrapped_command
call_func(args, stdout=logfile, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'virtualenv', u'/usr/local/google/home/haoweiw/.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc', u'-p', u'/usr/bin/python2.7', u'--extra-search-dir', u'/usr/local/google/home/haoweiw/chromiumos/infra_virtualenv/pip_packages', u'--setuptools', u'--clear']' returned non-zero exit status 1
ERROR: Failed to set up a virtualenv.
* Hook script "cros_sdk -- bash -c 'cd ../../chromeos-admin/puppet && make -j -O check GEM=gem19'" failed with code 2:
locale | awk -F = '$1 == "LANG" {print $2}' | grep UTF-8 >/dev/null || \
{ echo "System encoding is not UTF-8; tests would fail"; exit 1; }
GEM=gem19 /mnt/host/source/chromeos-admin/puppet/bin/gem_env bin/ensure_gem_deps
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: GEM=gem19
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: GEM_HOME set; installing there
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: line 24: gem19: command not found
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: line 28: gem19: command not found
Failed to install hiera-eyaml
make: *** [Makefile:24: ensure_gem_deps] Error 1
Your project chromiumos/third_party/autotest doesn't track any remote repo.
Errors in PROJECT *chromiumos/third_party/autotest*!
* Need to be on a tracking branch
,
Feb 15 2018
You haven't created a local work branch, or you created it incorrectly. git log && copy off the sha1 of your CL. repo start <new-branch-name> git cherry-pick <saved sha1> repo upload . Also, you probably need to: "sudo apt get install python-virtualenv"
,
Feb 15 2018
I'm currently at my working bench.
$ git branch
901a2611
* develop
master
After install python-virtualenv, here is the error info I got.
Errors in PROJECT *chromeos/chromeos-admin*!
COMMIT c6353de6:
Description:
>nsupdate_file_generator: Replace deprecated DNS server
>
>Due to deprecation of chromeos-ddns1.mtv, replace this Ganati to
>chromeos-ddns3.cbf
>
>BUG=none
>TEST=Zone checking passed.
>dig +norecurse +aaonly +short -t ns @chromeos-ddns3.cbf cros.corp.google.com.
>chrome-ns3.ams.corp.google.com.
>chromeos-ddns3.cbf.corp.google.com.
>chrome-ns2.hot.corp.google.com.
>
>Change-Id: Iebf78c45d1822527a32b696ef35fd4daa110477b
>
>
Errors:
* Hook script "./bin/test_venv_packages" failed with code 2:
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv, inifile: pytest.ini
plugins: cov-2.5.1
collected 0 items / 14 errors
Coverage.py warning: Module gtest was never imported. (module-not-imported)
---------- coverage: platform linux2, python 2.7.13-final-0 ----------
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------------------------------------------
admin/constants_unittest.py 19 19 0 0 0% 1-29
admin/hiera.py 9 1 0 0 89% 22
admin/hiera_unittest.py 7 7 0 0 0% 1-11
admin/initlib.py 4 2 0 0 50% 17-18
admin/initlib_test.py 6 1 0 0 83% 12
admin/scripts/ansible_dynamic_inventory.py 50 31 10 0 32% 27-43, 47-56, 60-71, 76, 83-85
admin/scripts/ansible_dynamic_inventory_unittest.py 8 8 0 0 0% 3-23
admin/scripts/ensure_devserver_config.py 74 49 22 0 26% 30-40, 44-49, 53, 61-65, 71-80, 89-95, 104-115, 119-120, 124-125, 129-132
admin/scripts/ensure_devserver_config_unittest.py 36 36 0 0 0% 1-82
admin/serverdb.py 33 20 6 0 33% 29-41, 53-56, 61-63, 68-70, 78, 91
admin/serverdb_unittest.py 9 9 0 0 0% 1-13
-------------------------------------------------------------------------------------------------
TOTAL 266 183 38 0 27%
3 files skipped due to complete coverage.
==================================== ERRORS ====================================
_________________ ERROR collecting admin/constants_unittest.py _________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.constants_unittest', '/mnt/host/source/chromeos-admin/venv/admin/constants_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/constants_unittest.py'))
_________________ ERROR collecting admin/constants_unittest.py _________________
import file mismatch:
imported module 'admin.constants_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/constants_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/constants_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________ ERROR collecting admin/hiera_unittest.py ___________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.hiera_unittest', '/mnt/host/source/chromeos-admin/venv/admin/hiera_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/hiera_unittest.py'))
___________________ ERROR collecting admin/hiera_unittest.py ___________________
import file mismatch:
imported module 'admin.hiera_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/hiera_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/hiera_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________ ERROR collecting admin/serverdb_unittest.py __________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.serverdb_unittest', '/mnt/host/source/chromeos-admin/venv/admin/serverdb_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/serverdb_unittest.py'))
_________________ ERROR collecting admin/serverdb_unittest.py __________________
import file mismatch:
imported module 'admin.serverdb_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/serverdb_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/serverdb_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____ ERROR collecting admin/scripts/ansible_dynamic_inventory_unittest.py _____
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.scripts.ansible_dynamic_inventory_unittest', '/mnt/host/source/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py'))
_____ ERROR collecting admin/scripts/ansible_dynamic_inventory_unittest.py _____
import file mismatch:
imported module 'admin.scripts.ansible_dynamic_inventory_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______ ERROR collecting admin/scripts/ensure_devserver_config_unittest.py ______
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.scripts.ensure_devserver_config_unittest', '/mnt/host/source/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py'))
______ ERROR collecting admin/scripts/ensure_devserver_config_unittest.py ______
import file mismatch:
imported module 'admin.scripts.ensure_devserver_config_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________ ERROR collecting server_management_lib/constants_unittest.py _________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('server_management_lib.constants_unittest', '/mnt/host/source/chromeos-admin/venv/server_management_lib/constants_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/constants_unittest.py'))
_________ ERROR collecting server_management_lib/constants_unittest.py _________
import file mismatch:
imported module 'server_management_lib.constants_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/server_management_lib/constants_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/constants_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
__________ ERROR collecting server_management_lib/stubby_unittest.py ___________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('server_management_lib.stubby_unittest', '/mnt/host/source/chromeos-admin/venv/server_management_lib/stubby_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/stubby_unittest.py'))
__________ ERROR collecting server_management_lib/stubby_unittest.py ___________
import file mismatch:
imported module 'server_management_lib.stubby_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/server_management_lib/stubby_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/stubby_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
!!!!!!!!!!!!!!!!!!! Interrupted: 14 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 14 error in 1.29 seconds ===========================
* Hook script "cros_sdk -- bash -c 'cd ../../chromeos-admin/puppet && make -j -O check GEM=gem19'" failed with code 2:
locale | awk -F = '$1 == "LANG" {print $2}' | grep UTF-8 >/dev/null || \
{ echo "System encoding is not UTF-8; tests would fail"; exit 1; }
GEM=gem19 /mnt/host/source/chromeos-admin/puppet/bin/gem_env bin/ensure_gem_deps
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: GEM=gem19
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: GEM_HOME set; installing there
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: line 24: gem19: command not found
/home/haoweiw/trunk/chromeos-admin/puppet/bin/ensure_gem_deps: line 28: gem19: command not found
Failed to install hiera-eyaml
make: *** [Makefile:24: ensure_gem_deps] Error 1
Your project chromiumos/third_party/autotest doesn't track any remote repo.
Errors in PROJECT *chromiumos/third_party/autotest*!
* Need to be on a tracking branch
,
Feb 15 2018
1)
Your project chromiumos/third_party/autotest doesn't track any remote repo.
Errors in PROJECT *chromiumos/third_party/autotest*!
* Need to be on a tracking branch
You probably created the branch using some form of "git branch" command. This doesn't properly setup the tracking branch to allow uploads. "repo start" does.
2)
I'm not certain what all of the chromeos-admin unittest dependencies are, but this might help:
~/trunk/src/third_party/autotest/files/utils/build_externals.py
,
Feb 15 2018
Error persist. And what about hiera-eyaml?
,
Feb 16 2018
No idea what it is. Passing to someone who might.
,
Feb 16 2018
re #5 about hiera-eyaml, you need to update your chroot. I think there's an update_chroot command you can use.
,
Feb 16 2018
I'm not able to find that command. Could you point me the directory?
,
Feb 16 2018
Hm, I've read that it exists but I can't find it. Instead, you should be able to do cros_sdk --replace
,
Feb 16 2018
Great, the hiera-eyaml issue is gone. Now just the unittest dependencies, any idea?
Errors:
* Hook script "./bin/test_venv_packages" failed with code 2:
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv, inifile: pytest.ini
plugins: cov-2.5.1
collected 0 items / 14 errors
Coverage.py warning: Module gtest was never imported. (module-not-imported)
---------- coverage: platform linux2, python 2.7.13-final-0 ----------
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------------------------------------------
admin/constants_unittest.py 19 19 0 0 0% 1-29
admin/hiera.py 9 1 0 0 89% 22
admin/hiera_unittest.py 7 7 0 0 0% 1-11
admin/initlib.py 4 2 0 0 50% 17-18
admin/initlib_test.py 6 1 0 0 83% 12
admin/scripts/ansible_dynamic_inventory.py 50 31 10 0 32% 27-43, 47-56, 60-71, 76, 83-85
admin/scripts/ansible_dynamic_inventory_unittest.py 8 8 0 0 0% 3-23
admin/scripts/ensure_devserver_config.py 74 49 22 0 26% 30-40, 44-49, 53, 61-65, 71-80, 89-95, 104-115, 119-120, 124-125, 129-132
admin/scripts/ensure_devserver_config_unittest.py 36 36 0 0 0% 1-82
admin/serverdb.py 33 20 6 0 33% 29-41, 53-56, 61-63, 68-70, 78, 91
admin/serverdb_unittest.py 9 9 0 0 0% 1-13
-------------------------------------------------------------------------------------------------
TOTAL 266 183 38 0 27%
3 files skipped due to complete coverage.
==================================== ERRORS ====================================
_________________ ERROR collecting admin/constants_unittest.py _________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.constants_unittest', '/mnt/host/source/chromeos-admin/venv/admin/constants_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/constants_unittest.py'))
_________________ ERROR collecting admin/constants_unittest.py _________________
import file mismatch:
imported module 'admin.constants_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/constants_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/constants_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________ ERROR collecting admin/hiera_unittest.py ___________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.hiera_unittest', '/mnt/host/source/chromeos-admin/venv/admin/hiera_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/hiera_unittest.py'))
___________________ ERROR collecting admin/hiera_unittest.py ___________________
import file mismatch:
imported module 'admin.hiera_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/hiera_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/hiera_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________ ERROR collecting admin/serverdb_unittest.py __________________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.serverdb_unittest', '/mnt/host/source/chromeos-admin/venv/admin/serverdb_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/serverdb_unittest.py'))
_________________ ERROR collecting admin/serverdb_unittest.py __________________
import file mismatch:
imported module 'admin.serverdb_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/serverdb_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/serverdb_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____ ERROR collecting admin/scripts/ansible_dynamic_inventory_unittest.py _____
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.scripts.ansible_dynamic_inventory_unittest', '/mnt/host/source/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py'))
_____ ERROR collecting admin/scripts/ansible_dynamic_inventory_unittest.py _____
import file mismatch:
imported module 'admin.scripts.ansible_dynamic_inventory_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ansible_dynamic_inventory_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______ ERROR collecting admin/scripts/ensure_devserver_config_unittest.py ______
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('admin.scripts.ensure_devserver_config_unittest', '/mnt/host/source/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py'))
______ ERROR collecting admin/scripts/ensure_devserver_config_unittest.py ______
import file mismatch:
imported module 'admin.scripts.ensure_devserver_config_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/admin/scripts/ensure_devserver_config_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________ ERROR collecting server_management_lib/constants_unittest.py _________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('server_management_lib.constants_unittest', '/mnt/host/source/chromeos-admin/venv/server_management_lib/constants_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/constants_unittest.py'))
_________ ERROR collecting server_management_lib/constants_unittest.py _________
import file mismatch:
imported module 'server_management_lib.constants_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/server_management_lib/constants_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/constants_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
__________ ERROR collecting server_management_lib/stubby_unittest.py ___________
../../../.cache/cros_venv/venv-2.7.13-95de6b4f9b30bb6fc148ee4eccd758dc/local/lib/python2.7/site-packages/py/_path/local.py:680: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('server_management_lib.stubby_unittest', '/mnt/host/source/chromeos-admin/venv/server_management_lib/stubby_unittest.py', local('/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/stubby_unittest.py'))
__________ ERROR collecting server_management_lib/stubby_unittest.py ___________
import file mismatch:
imported module 'server_management_lib.stubby_unittest' has this __file__ attribute:
/mnt/host/source/chromeos-admin/venv/server_management_lib/stubby_unittest.py
which is not the same as the test file we want to collect:
/usr/local/google/home/haoweiw/chromiumos/chromeos-admin/venv/server_management_lib/stubby_unittest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
!!!!!!!!!!!!!!!!!!! Interrupted: 14 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 14 error in 1.63 seconds ===========================
,
Feb 16 2018
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules You should run in chromeos-admin something like find . -name "*.pyc" -delete
,
Feb 16 2018
Great, you are Genius, everything is working now. |
||
►
Sign in to add a comment |
||
Comment 1 by jrbarnette@chromium.org
, Feb 15 2018