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
Please leave a brief description of the bug or feature request:
On python 3.8:
Traceback (most recent call last):
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/bin/scancode", line 5, in <module>
from scancode.cli import scancode
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/scancode/cli.py", line 113, in <module>
plugin_classes, plugin_options = PluginManager.load_plugins()
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/plugincode/__init__.py", line 199, in load_plugins
mgr_setup = manager.setup()
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/plugincode/__init__.py", line 223, in setup
self.manager.load_setuptools_entrypoints(entrypoint)
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
plugin = ep.load()
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/importlib_metadata/__init__.py", line 210, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/summarycode/classify_plugin.py", line 16, in <module>
from packagedcode import get_package_handler
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/packagedcode/__init__.py", line 13, in <module>
from packagedcode import about
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/packagedcode/about.py", line 16, in <module>
from packagedcode import models
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/packagedcode/models.py", line 32, in <module>
from typecode import contenttype
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/typecode/__init__.py", line 21, in <module>
from typecode.contenttype import get_type
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/typecode/contenttype.py", line 32, in <module>
from typecode import magic2
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/typecode/magic2.py", line 378, in <module>
libmagic = load_lib()
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/typecode/magic2.py", line 193, in load_lib
failover_lib = load_lib_failover()
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py38/lib/python3.8/site-packages/typecode/magic2.py", line 121, in load_lib_failover
ctypes.util.find_library('magic')
AttributeError: module 'ctypes' has no attribute 'util'
On python 3.11:
Traceback (most recent call last):
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/bin/scancode", line 5, in <module>
from scancode.cli import scancode
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/scancode/cli.py", line 113, in <module>
plugin_classes, plugin_options = PluginManager.load_plugins()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/plugincode/__init__.py", line 199, in load_plugins
mgr_setup = manager.setup()
^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/plugincode/__init__.py", line 223, in setup
self.manager.load_setuptools_entrypoints(entrypoint)
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
plugin = ep.load()
^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/importlib_metadata/__init__.py", line 210, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/summarycode/classify_plugin.py", line 16, in <module>
from packagedcode import get_package_handler
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/packagedcode/__init__.py", line 13, in <module>
from packagedcode import about
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/packagedcode/about.py", line 16, in <module>
from packagedcode import models
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/packagedcode/models.py", line 32, in <module>
from typecode import contenttype
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/typecode/__init__.py", line 21, in <module>
from typecode.contenttype import get_type
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/typecode/contenttype.py", line 32, in <module>
from typecode import magic2
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/typecode/magic2.py", line 378, in <module>
libmagic = load_lib()
^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/typecode/magic2.py", line 193, in load_lib
failover_lib = load_lib_failover()
^^^^^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311/lib/python3.11/site-packages/typecode/magic2.py", line 121, in load_lib_failover
ctypes.util.find_library('magic')
^^^^^^^^^^^
AttributeError: module 'ctypes' has no attribute 'util'
/home/ayansinha/nexB/venvs/scancode-32.0.0-py311-new/lib/python3.11/site-packages/typecode/magic2.py:195: UserWarning: System libmagic found in typical location is used. Install instead a typecode-libmagic plugin for best support.
warnings.warn(
Traceback (most recent call last):
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311-new/bin/scancode", line 5, in <module>
from scancode.cli import scancode
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311-new/lib/python3.11/site-packages/scancode/cli.py", line 113, in <module>
plugin_classes, plugin_options = PluginManager.load_plugins()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311-new/lib/python3.11/site-packages/plugincode/__init__.py", line 199, in load_plugins
mgr_setup = manager.setup()
^^^^^^^^^^^^^^^
File "/home/ayansinha/nexB/venvs/scancode-32.0.0-py311-new/lib/python3.11/site-packages/plugincode/__init__.py", line 236, in setup
raise PlugincodeError(
plugincode.PlugincodeError: Invalid plugin: 'pre_scan:classify': <class 'summarycode.classify_plugin.FileClassifier'> must extend <class 'plugincode.pre_scan.PreScanPlugin'>.
Description
On python 3.8:
On python 3.11:
How To Reproduce
python3.11 -m venv venvs/scancode-32.0.0-py311/
source venvs/scancode-32.0.0-py311/bin/activate
pip install scancode-toolkit
scancode -h
System configuration
Seems to be aboutcode-org/typecode#27 and aboutcode-org/typecode#32 is related to this, since same errors are referenced?
The text was updated successfully, but these errors were encountered: