Skip to content

Not usable with commoncode 21.1.14 #2368

Description

@danielthieleog

Description

When using new commoncode release 21.1.14 calling scancode fails.
This was not the case with commoncode release 20.10.20.

Error message from scancode

Traceback (most recent call last):
File "/app/venv-scancode/bin/scancode", line 5, in
from scancode.cli import scancode
File "/app/venv-scancode/lib/python3.6/site-packages/scancode/cli.py", line 73, in
from commoncode.fileutils import PATH_TYPE
ImportError: cannot import name 'PATH_TYPE'

How To Reproduce

# Workdir is /app
pip install virtualenv \
    && virtualenv -p /usr/local/bin/python3.6 venv-scancode \
    && . venv-scancode/bin/activate \
    && pip install scancode-toolkit pyicu

virtualenv -p /usr/local/bin/python3.6 venv-scancode
. venv-scancode/bin/activate
    
/app/venv-scancode/bin/scancode

Error also occurs with python 3.9.1.

System configuration

Running on Linux in python:3.6 docker container.
Release 3.2.3 of scancode-toolkit.
Installed with pip.

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions