Skip to content

Running v3.1.1 fails with "cannot import name RPM" #1875

Description

@sschuberth

Description

Running scancode --version for v3.1.1 on Windows yields:

========================================================================
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:
cannot import name RPM
========================================================================
Traceback (most recent call last):
  File "C:\Users\sebastian\Development\GitHub\nexB\scancode-toolkit\bin\scancode-script.py", line 11, in <module>
    load_entry_point('scancode-toolkit', 'console_scripts', 'scancode')()
  File "C:\Users\sebastian\Development\GitHub\nexB\scancode-toolkit\lib\site-packages\pkg_resources\__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Users\sebastian\Development\GitHub\nexB\scancode-toolkit\lib\site-packages\pkg_resources\__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "C:\Users\sebastian\Development\GitHub\nexB\scancode-toolkit\lib\site-packages\pkg_resources\__init__.py", line 2443, in load
    return self.resolve()
  File "C:\Users\sebastian\Development\GitHub\nexB\scancode-toolkit\lib\site-packages\pkg_resources\__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\users\sebastian\development\github\nexb\scancode-toolkit\src\scancode\cli.py", line 228, in <module>
    raise e
ImportError: cannot import name RPM

How To Reproduce

I'm building ScanCode from Git sources on Windows. I was on tag v3.0.2 (which works fine on Windows) and then switched to tag v3.1.1:

$ git checkout v3.1.1
$ ./configure --clean
$ ./configure
$ ./scancode --version

System configuration

  • What OS are you running on? Windows 10 x64 with Git Bash
  • What version of scancode-toolkit was used to generate the scan file? 3.1.1
  • What installation method was used to install/run scancode? Git

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions