Skip to content

Instantly share code, notes, and snippets.

@sritasngh
Created June 27, 2021 07:54
Show Gist options
  • Save sritasngh/2351c95d2652545e27d61186e009d42c to your computer and use it in GitHub Desktop.
Save sritasngh/2351c95d2652545e27d61186e009d42c to your computer and use it in GitHub Desktop.
====================================================== test session starts ======================================================
platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/sarita/Documents/other_stuff/scancode-toolkit, configfile: setup.cfg
collecting 38009 items / 16 errors / 37993 selected
1720 tests selected, 36376 tests skipped.
collected 38096 items / 16 errors / 36376 deselected / 1704 selected
============================================================ ERRORS =============================================================
__________________________________________ ERROR collecting src/cluecode/copyrights.py __________________________________________
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
__________________________________________ ERROR collecting src/cluecode/copyrights.py __________________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/src/cluecode/copyrights.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
_____________________________________________ ERROR collecting src/scancode/cli.py ______________________________________________
src/scancode/cli.py:120: in <module>
raise e
src/scancode/cli.py:107: in <module>
plugin_classes, plugin_options = PluginManager.load_plugins()
/usr/local/lib/python3.8/dist-packages/plugincode/__init__.py:207: in load_plugins
mgr_setup = manager.setup()
/usr/local/lib/python3.8/dist-packages/plugincode/__init__.py:233: in setup
raise e
/usr/local/lib/python3.8/dist-packages/plugincode/__init__.py:231: in setup
self.manager.load_setuptools_entrypoints(entrypoint)
/usr/local/lib/python3.8/dist-packages/pluggy/manager.py:299: in load_setuptools_entrypoints
plugin = ep.load()
/usr/lib/python3.8/importlib/metadata.py:77: in load
module = import_module(match.group('module'))
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/summarycode/plugin_consolidate.py:14: in <module>
from cluecode.copyrights import CopyrightDetector
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
-------------------------------------------------------- Captured stderr --------------------------------------------------------
========================================================================
ERROR: UNABLE TO IMPORT SCANCODE PLUGINS.
Check your installation configuration (setup.py) or re-install/re-configure ScanCode.
The following plugin(s) are referenced and cannot be loaded/imported:
No module named 'pygmars'
========================================================================
_____________________________________________ ERROR collecting src/scancode/cli.py ______________________________________________
src/scancode/cli.py:107: in <module>
plugin_classes, plugin_options = PluginManager.load_plugins()
/usr/local/lib/python3.8/dist-packages/plugincode/__init__.py:210: in load_plugins
raise PlugincodeError(msg)
E plugincode.PlugincodeError: Cannot load plugins for stage: scan
_____________________________________ ERROR collecting src/summarycode/copyright_summary.py _____________________________________
src/summarycode/copyright_summary.py:17: in <module>
from cluecode.copyrights import CopyrightDetector
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
_____________________________________ ERROR collecting src/summarycode/copyright_summary.py _____________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/src/summarycode/copyright_summary.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/summarycode/copyright_summary.py:17: in <module>
from cluecode.copyrights import CopyrightDetector
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
____________________________________ ERROR collecting src/summarycode/plugin_consolidate.py _____________________________________
src/summarycode/plugin_consolidate.py:14: in <module>
from cluecode.copyrights import CopyrightDetector
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
____________________________________ ERROR collecting src/summarycode/plugin_consolidate.py _____________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/src/summarycode/plugin_consolidate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/summarycode/plugin_consolidate.py:14: in <module>
from cluecode.copyrights import CopyrightDetector
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
____________________________________ ERROR collecting tests/cluecode/cluecode_test_utils.py _____________________________________
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
____________________________________ ERROR collecting tests/cluecode/cluecode_test_utils.py _____________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/tests/cluecode/cluecode_test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
______________________________________ ERROR collecting tests/cluecode/test_copyrights.py _______________________________________
tests/cluecode/test_copyrights.py:13: in <module>
from cluecode_test_utils import build_tests
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
______________________________________ ERROR collecting tests/cluecode/test_copyrights.py _______________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/tests/cluecode/test_copyrights.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/cluecode/test_copyrights.py:13: in <module>
from cluecode_test_utils import build_tests
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
___________________________________ ERROR collecting tests/cluecode/test_copyrights_basic.py ____________________________________
tests/cluecode/test_copyrights_basic.py:14: in <module>
from cluecode import copyrights as copyrights_module
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
___________________________________ ERROR collecting tests/cluecode/test_copyrights_basic.py ____________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/tests/cluecode/test_copyrights_basic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/cluecode/test_copyrights_basic.py:14: in <module>
from cluecode import copyrights as copyrights_module
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
___________________________________ ERROR collecting tests/cluecode/test_copyrights_fosso.py ____________________________________
tests/cluecode/test_copyrights_fosso.py:17: in <module>
import cluecode_test_utils
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
../../../.local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
___________________________________ ERROR collecting tests/cluecode/test_copyrights_fosso.py ____________________________________
ImportError while importing test module '/home/sarita/Documents/other_stuff/scancode-toolkit/tests/cluecode/test_copyrights_fosso.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/cluecode/test_copyrights_fosso.py:17: in <module>
import cluecode_test_utils
tests/cluecode/cluecode_test_utils.py:18: in <module>
import cluecode.copyrights
src/cluecode/copyrights.py:17: in <module>
import pygmars
E ModuleNotFoundError: No module named 'pygmars'
======================================================= warnings summary ========================================================
../../../../../usr/local/lib/python3.8/dist-packages/patch.py:340
/usr/local/lib/python3.8/dist-packages/patch.py:340: DeprecationWarning: invalid escape sequence \d
re_hunk_start = re.compile(b"^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@")
../../../../../usr/local/lib/python3.8/dist-packages/patch.py:519
/usr/local/lib/python3.8/dist-packages/patch.py:519: DeprecationWarning: invalid escape sequence \+
re_filename = b"^\+\+\+ ([^\t]+)"
../../../../../usr/local/lib/python3.8/dist-packages/patch.py:545
/usr/local/lib/python3.8/dist-packages/patch.py:545: DeprecationWarning: invalid escape sequence \d
match = re.match(b"^@@ -(\d+)(,(\d+))? \+(\d+)(,(\d+))? @@(.*)", line)
src/licensedcode/spans.py:31
/home/sarita/Documents/other_stuff/scancode-toolkit/src/licensedcode/spans.py:31: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Set
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:10
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:10: DeprecationWarning: invalid escape sequence \S
"(?:\S+(?::\S*)?@)?"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:14
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:14: DeprecationWarning: invalid escape sequence \.
"(?!(?:10|127)(?:\.\d{1,3}){3})"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:15
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:15: DeprecationWarning: invalid escape sequence \.
"(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:16
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:16: DeprecationWarning: invalid escape sequence \.
"(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:22
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:22: DeprecationWarning: invalid escape sequence \d
"(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:23
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:23: DeprecationWarning: invalid escape sequence \.
"(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:24
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:24: DeprecationWarning: invalid escape sequence \.
"(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:29
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:29: DeprecationWarning: invalid escape sequence \.
"(?:\.(?:[a-z\u00a1-\uffff0-9]-?)*[a-z\u00a1-\uffff0-9]+)*"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:31
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:31: DeprecationWarning: invalid escape sequence \.
"(?:\.(?:[a-z\u00a1-\uffff]{2,}))"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:34
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:34: DeprecationWarning: invalid escape sequence \d
"(?::\d{2,5})?"
../../../../../usr/local/lib/python3.8/dist-packages/dparse/regex.py:36
/usr/local/lib/python3.8/dist-packages/dparse/regex.py:36: DeprecationWarning: invalid escape sequence \S
"(?:/\S*)?",
-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================== short test summary info ====================================================
ERROR src/cluecode/copyrights.py - ModuleNotFoundError: No module named 'pygmars'
ERROR src/cluecode/copyrights.py
ERROR src/scancode/cli.py - ModuleNotFoundError: No module named 'pygmars'
ERROR src/scancode/cli.py - plugincode.PlugincodeError: Cannot load plugins for stage: scan
ERROR src/summarycode/copyright_summary.py - ModuleNotFoundError: No module named 'pygmars'
ERROR src/summarycode/copyright_summary.py
ERROR src/summarycode/plugin_consolidate.py - ModuleNotFoundError: No module named 'pygmars'
ERROR src/summarycode/plugin_consolidate.py
ERROR tests/cluecode/cluecode_test_utils.py - ModuleNotFoundError: No module named 'pygmars'
ERROR tests/cluecode/cluecode_test_utils.py
ERROR tests/cluecode/test_copyrights.py - ModuleNotFoundError: No module named 'pygmars'
ERROR tests/cluecode/test_copyrights.py
ERROR tests/cluecode/test_copyrights_basic.py - ModuleNotFoundError: No module named 'pygmars'
ERROR tests/cluecode/test_copyrights_basic.py
ERROR tests/cluecode/test_copyrights_fosso.py - ModuleNotFoundError: No module named 'pygmars'
ERROR tests/cluecode/test_copyrights_fosso.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 16 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================== 36376 deselected, 15 warnings, 16 errors in 18.30s =======================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment