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:
/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'>.
So the issue was that we had a setup-mini.cfg which was not consistent with setup.cfg and some updates were only applied to the later. As we use the setup-mini.cfg to build the python sdists and wheels, this was creating the issue in pip install, but not in the release archives. Fixed in the PR above ^
Description
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
@jyang pointed out that the setup.cfg at https://files.pythonhosted.org/packages/88/4b/79ca4c6f06c5b9ad1f5f601f1191e207fa05dcbccb2c4a46b381d3ad98af/scancode-toolkit-32.0.0.tar.gz is different from the one we have in https://github.com/nexB/scancode-toolkit/blob/develop/setup.cfg#L198
in terms of where the summarycode.classify_plugin:FileClassifier is located in entry_points. It is in pre_scan in the former, and in post_scan in the later, which is causing the failure.
The text was updated successfully, but these errors were encountered: