Skip to content

Not usable with commoncode 21.1.14 #2

Description

@danielthieleog

Description

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

Error message from extractcode

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

How To Reproduce

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

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

Error also occurs with python 3.9.1.

System configuration

Running on Linux in python:3.6 docker container.
Release 20.10 of extractcode.
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions