CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
244 stars 75 forks source link

No module named setuptools_rust #76

Closed WojtekMs closed 2 years ago

WojtekMs commented 2 years ago

This issue is happening during the docker installation path, after downloading "clone" Cisco YANG Suite repo and running

git clone https://github.com/CiscoDevNet/yangsuite
cd yangsuite/docker/
./start_yang_suite.sh

Issue

Collecting cryptography>3.3.1 (from yangsuite-devices; extra == "core"->yangsuite[core]) Downloading https://files.pythonhosted.org/packages/89/d9/5fcd312d5cce0b4d7ee8b551a0ea99e4ea9db0fdbf6dd455a19042e3370b/cryptography-37.0.4.tar.gz (585kB) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-l460o6fh/cryptography/setup.py", line 14, in from setuptools_rust import RustExtension ModuleNotFoundError: No module named 'setuptools_rust'

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-l460o6fh/cryptography/ ERROR: Service 'yangsuite' failed to build: The command '/bin/sh -c pip3 install --upgrade --no-cache yangsuite[core]' returned a non-zero code: 1

Possible solution

Add setuptools-rust to pip install

xanderstevenson commented 2 years ago

Hi @WojtekMs,

Thanks for reporting this issue, as well as the possible solution. Which OS are you using?

Thanks, Alex S.

WojtekMs commented 2 years ago

Hey,

I am using Linux Ubuntu 20.04 LTS