-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
something wrong with version of six #1386
Comments
@arthur657834 thank you for the report and sorry for the inconvenience! |
how: python --version uname -a i had not install scancode-toolkit before |
@arthur657834 which exact version of which Linux distro do you run such that this can be reproduced in a VM? I feel like this is not directly a ScanCode issue per se, but rather a Linux issue in some other system package that installed six too. Otherwise, can you try instead to use a release tarball at https://github.com/nexB/scancode-toolkit/releases/tag/v3.0.2 ? Fetch https://github.com/nexB/scancode-toolkit/releases/download/v3.0.2/scancode-toolkit-3.0.2.tar.bz2 and extract. Then run your scancode command from within this extracted directory. |
cat /etc/redhat-release use a release tarball, there did not occur the problem,thank you for you help! |
At this stage we no longer depend on six directly... I assume this is no longer an issue. Closing. |
sudo pip list | grep -i six
pdfminer.six 20181108
six 1.12.0
sudo pip list | grep -i scancode
scancode-toolkit 3.0.2
22:24:08 + scancode --license --copyright --package --html=scancode-2019-02-21.html --verbose ./test
22:24:08 Traceback (most recent call last):
22:24:08 File "/usr/bin/scancode", line 7, in
22:24:08 from scancode.cli import scancode
22:24:08 File "/usr/lib/python2.7/site-packages/scancode/cli.py", line 206, in
22:24:08 plugin_classes, plugin_options = PluginManager.load_plugins()
22:24:08 File "/usr/lib/python2.7/site-packages/plugincode/init.py", line 190, in load_plugins
22:24:08 mgr_setup = manager.setup()
22:24:08 File "/usr/lib/python2.7/site-packages/plugincode/init.py", line 217, in setup
22:24:08 self.manager.load_setuptools_entrypoints(entrypoint)
22:24:08 File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 268, in load_setuptools_entrypoints
22:24:08 plugin = ep.load()
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2259, in load
22:24:08 if require: self.require(env, installer)
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2272, in require
22:24:08 working_set.resolve(self.dist.requires(self.extras),env,installer)))
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 631, in resolve
22:24:08 requirements.extend(dist.requires(req.extras)[::-1])
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2489, in requires
22:24:08 dm = self._dep_map
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2700, in _dep_map
22:24:08 self.__dep_map = self._compute_dependencies()
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2724, in _compute_dependencies
22:24:08 parsed = next(parse_requirements(distvers))
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 30, in
22:24:08 next = lambda o: o.next()
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2839, in parse_requirements
22:24:08 line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
22:24:08 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2807, in scan_list
22:24:08 raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
22:24:08 ValueError: ('Expected version spec in', 'six ~=1.4', 'at', ' ~=1.4')
The text was updated successfully, but these errors were encountered: