Skip to content

ImportError in setup.py #1

@d3pendent

Description

@d3pendent

An error occurred during the installation of the cstraining package.

python setup.py develop -d {DIR_TO_SITE_PKG_PARENT}/site-packages

Traceback (most recent call last):
File "/{INSTANCE_DIR}/cstraining.web/setup.py", line 1, in
from cdb.comparch.pkgtools import setup
ImportError: cannot import name 'setup' from 'cdb.comparch.pkgtools' (/{INSTACE_DIR}/cdb/python/cdb/comparch/pkgtools.py)

Replacing the imports with

from setuptools import setup, find_namespace_packages
from setuptools_ce.build import build

fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions