cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5720
Views
6
Helpful
25
Replies

pip install ydk fails on Mac

may2018
Level 1
Level 1

After installing all dependancies listed https://github.com/CiscoDevNet/ydk-py/blob/master/README.rst#macos

it still failing with same error

Collecting ydk

  Using cached https://files.pythonhosted.org/packages/e9/b4/799d2ecd94658c764c50f503d345bc31db2231973b3bb19a5459620f87a6/ydk-0.7.1.tar.gz

Requirement already satisfied: pybind11>=2.1.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from ydk)

Building wheels for collected packages: ydk

  Running setup.py bdist_wheel for ydk ... error

  Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/tmpwc833ie4pip-wheel- --python-tag cp36:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.macosx-10.6-intel-3.6

  creating build/lib.macosx-10.6-intel-3.6/ydk

  copying ydk/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk

  copying ydk/exthook.py -> build/lib.macosx-10.6-intel-3.6/ydk

  creating build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

  copying ydk/entity_utils/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

  copying ydk/entity_utils/entity_utils.py -> build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

  creating build/lib.macosx-10.6-intel-3.6/ydk/errors

  copying ydk/errors/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/errors

  copying ydk/errors/error_handler.py -> build/lib.macosx-10.6-intel-3.6/ydk/errors

  creating build/lib.macosx-10.6-intel-3.6/ydk/ext

  copying ydk/ext/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/ext

  creating build/lib.macosx-10.6-intel-3.6/ydk/filters

  copying ydk/filters/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/filters

  creating build/lib.macosx-10.6-intel-3.6/ydk/logging

  copying ydk/logging/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/logging

  creating build/lib.macosx-10.6-intel-3.6/ydk/models

  copying ydk/models/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/models

  creating build/lib.macosx-10.6-intel-3.6/ydk/path

  copying ydk/path/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/path

  creating build/lib.macosx-10.6-intel-3.6/ydk/providers

  copying ydk/providers/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/providers

  copying ydk/providers/codec_provider.py -> build/lib.macosx-10.6-intel-3.6/ydk/providers

  creating build/lib.macosx-10.6-intel-3.6/ydk/services

  copying ydk/services/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

  copying ydk/services/codec_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

  copying ydk/services/crud_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

  copying ydk/services/executor_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

  copying ydk/services/netconf_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

  creating build/lib.macosx-10.6-intel-3.6/ydk/types

  copying ydk/types/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/types

  copying ydk/types/py_types.py -> build/lib.macosx-10.6-intel-3.6/ydk/types

  creating build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

  copying ydk/path/sessions/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

  copying ydk/path/sessions/netconf_session.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

  copying ydk/path/sessions/restconf_session.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

  running build_ext

  -- The C compiler identification is AppleClang 9.0.0.9000038

  -- The CXX compiler identification is AppleClang 9.0.0.9000038

  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works

  -- Detecting C compiler ABI info

  -- Detecting C compiler ABI info - done

  -- Detecting C compile features

  -- Detecting C compile features - done

  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works

  -- Detecting CXX compiler ABI info

  -- Detecting CXX compiler ABI info - done

  -- Detecting CXX compile features

  -- Detecting CXX compile features - done

  python version: 3.6m

  -- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6m.dylib (found version "3.6.5")

  pybind11 include: /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m;/Users/asinine/Library/Python/3.6/include/python3.6m

  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

  Please set them or make sure they are set and tested correctly in the CMake files:

  ydk_location

      linked by target "ydk_" in directory /private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk

  -- Configuring incomplete, errors occurred!

  See also "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/build/temp.macosx-10.6-intel-3.6/CMakeFiles/CMakeOutput.log".

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 149, in <module>

      zip_safe=False,

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup

      return distutils.core.setup(**attrs)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup

      dist.run_commands()

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands

      self.run_command(cmd)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

      cmd_obj.run()

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 202, in run

      self.run_command('build')

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

      cmd_obj.run()

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run

      self.run_command(cmd_name)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

      cmd_obj.run()

    File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 72, in run

      self.build_extension(ext)

    File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 104, in build_extension

      subprocess.check_call([cmake_executable, ext.sourcedir] + cmake_args, cwd=self.build_temp)

    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call

      raise CalledProcessError(retcode, cmd)

  subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/build/lib.macosx-10.6-intel-3.6', '-DPYBIND11_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m;/Users/asinine/Library/Python/3.6/include/python3.6m', '-DPYTHON_VERSION=3.6m', '-DCMAKE_BUILD_TYPE=Release', '-DCOVERAGE=False']' returned non-zero exit status 1.

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

  Failed building wheel for ydk

  Running setup.py clean for ydk

Failed to build ydk

Installing collected packages: ydk

  Running setup.py install for ydk ... error

    Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-_r_hih80-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.6-intel-3.6

    creating build/lib.macosx-10.6-intel-3.6/ydk

    copying ydk/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk

    copying ydk/exthook.py -> build/lib.macosx-10.6-intel-3.6/ydk

    creating build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

    copying ydk/entity_utils/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

    copying ydk/entity_utils/entity_utils.py -> build/lib.macosx-10.6-intel-3.6/ydk/entity_utils

    creating build/lib.macosx-10.6-intel-3.6/ydk/errors

    copying ydk/errors/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/errors

    copying ydk/errors/error_handler.py -> build/lib.macosx-10.6-intel-3.6/ydk/errors

    creating build/lib.macosx-10.6-intel-3.6/ydk/ext

    copying ydk/ext/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/ext

    creating build/lib.macosx-10.6-intel-3.6/ydk/filters

    copying ydk/filters/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/filters

    creating build/lib.macosx-10.6-intel-3.6/ydk/logging

    copying ydk/logging/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/logging

    creating build/lib.macosx-10.6-intel-3.6/ydk/models

    copying ydk/models/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/models

    creating build/lib.macosx-10.6-intel-3.6/ydk/path

    copying ydk/path/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/path

    creating build/lib.macosx-10.6-intel-3.6/ydk/providers

    copying ydk/providers/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/providers

    copying ydk/providers/codec_provider.py -> build/lib.macosx-10.6-intel-3.6/ydk/providers

    creating build/lib.macosx-10.6-intel-3.6/ydk/services

    copying ydk/services/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

    copying ydk/services/codec_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

    copying ydk/services/crud_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

    copying ydk/services/executor_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

    copying ydk/services/netconf_service.py -> build/lib.macosx-10.6-intel-3.6/ydk/services

    creating build/lib.macosx-10.6-intel-3.6/ydk/types

    copying ydk/types/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/types

    copying ydk/types/py_types.py -> build/lib.macosx-10.6-intel-3.6/ydk/types

    creating build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

    copying ydk/path/sessions/__init__.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

    copying ydk/path/sessions/netconf_session.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

    copying ydk/path/sessions/restconf_session.py -> build/lib.macosx-10.6-intel-3.6/ydk/path/sessions

    running build_ext

    -- The C compiler identification is AppleClang 9.0.0.9000038

    -- The CXX compiler identification is AppleClang 9.0.0.9000038

    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works

    -- Detecting C compiler ABI info

    -- Detecting C compiler ABI info - done

    -- Detecting C compile features

    -- Detecting C compile features - done

    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works

    -- Detecting CXX compiler ABI info

    -- Detecting CXX compiler ABI info - done

    -- Detecting CXX compile features

    -- Detecting CXX compile features - done

    python version: 3.6m

    -- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6m.dylib (found version "3.6.5")

    pybind11 include: /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m;/Users/asinine/Library/Python/3.6/include/python3.6m

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

    Please set them or make sure they are set and tested correctly in the CMake files:

    ydk_location

        linked by target "ydk_" in directory /private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk

    -- Configuring incomplete, errors occurred!

    See also "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/build/temp.macosx-10.6-intel-3.6/CMakeFiles/CMakeOutput.log".

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 149, in <module>

        zip_safe=False,

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup

        return distutils.core.setup(**attrs)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup

        dist.run_commands()

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands

        self.run_command(cmd)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

        cmd_obj.run()

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run

        return orig.install.run(self)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run

        self.run_command('build')

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command

        self.distribution.run_command(command)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

        cmd_obj.run()

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run

        self.run_command(cmd_name)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command

        self.distribution.run_command(command)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command

        cmd_obj.run()

      File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 72, in run

        self.build_extension(ext)

      File "/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py", line 104, in build_extension

        subprocess.check_call([cmake_executable, ext.sourcedir] + cmake_args, cwd=self.build_temp)

      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call

        raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/build/lib.macosx-10.6-intel-3.6', '-DPYBIND11_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m;/Users/asinine/Library/Python/3.6/include/python3.6m', '-DPYTHON_VERSION=3.6m', '-DCMAKE_BUILD_TYPE=Release', '-DCOVERAGE=False']' returned non-zero exit status 1.

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

Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-_r_hih80-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/fp/nk46l97x7yz7xtyfbyrjsb8m0000gn/T/pip-build-829v13x0/ydk/

25 Replies 25

Can you please try the below?

 

 

git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2
cd ydk-gen
pip install -r requirements.txt
./generate --libydk
sudo make -C gen-api/cpp/ydk/build install

# install ydk-py
sudo pip install ydk ydk-models-cisco-ios-xe

 

 

ochi$virtualenv venv

Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'

New python executable in /YANG/venv/bin/python3.6

Also creating executable in /YANG/venv/bin/python

Installing setuptools, pip, wheel...done.

Mochi$source venv/bin/activate

 

(venv) Mochi$cd venv

(venv) Mochi$git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2

Cloning into 'ydk-gen'...

remote: Counting objects: 15932, done.

remote: Compressing objects: 100% (87/87), done.

remote: Total 15932 (delta 42), reused 61 (delta 31), pack-reused 15813

Receiving objects: 100% (15932/15932), 6.57 MiB | 5.24 MiB/s, done.

Resolving deltas: 100% (11220/11220), done.

Note: checking out '55dccd546f93e588d08bd4a19ccc59b9a1a3db37'.

 

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

 

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:

 

  git checkout -b <new-branch-name>

 

(venv) Mochi$cd ydk-gen

(venv) Mochi$./generate --libydk

-bash: ./generate: No such file or directory

(venv) Mochi$./generate.py --libydk

Traceback (most recent call last):

  File "./generate.py", line 34, in <module>

    from git import Repo

ModuleNotFoundError: No module named 'git'

(venv) Mochi$pip install git

Collecting git

  Could not find a version that satisfies the requirement git (from versions: )

No matching distribution found for git

(venv) Mochi$

please run the below command to install dependencies:

cd ydk-gen/
pip install -r requirements.txt

That make "./generate.py --libydk" working"

 

But:

 

(venv27) Mochi$sudo make -C gen-api/cpp/ydk install

make: *** No rule to make target `install'.  Stop.

 

 

Sorry. Another typo. Should be:

sudo make -C gen-api/cpp/ydk/build install

Thanks, now is working.

To recap: These steps fix the issue.

 

git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2
cd ydk-gen
pip install -r requirements.txt
./generate --libydk
sudo make -C gen-api/cpp/ydk/build install

# install ydk-py
sudo pip install ydk ydk-models-cisco-ios-xe

 

 

Hi I tried these but I couldn't. Error occurred while generating libydk.
Is there any resolution?
It is High sierra 10.13.6

Thanks

 

---
(YDKenv) MacBookPro-2:YDKenv takumi$ pip list
Package Version
---------- -------
pip 18.0
setuptools 40.2.0
wheel 0.31.1
(YDKenv) MacBookPro-2:YDKenv takumi$ git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2
Cloning into 'ydk-gen'...
remote: Counting objects: 15973, done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 15973 (delta 51), reused 55 (delta 32), pack-reused 15870
Receiving objects: 100% (15973/15973), 6.57 MiB | 59.00 KiB/s, done.
Resolving deltas: 100% (11266/11266), done.
Note: checking out '55dccd546f93e588d08bd4a19ccc59b9a1a3db37'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

(YDKenv) MacBookPro-2:YDKenv takumi$ cd ydk-gen
(YDKenv) MacBookPro-2:ydk-gen takumi$ pip install -r requirements.txt

Successfully installed GitPython-1.0.1 Jinja2-2.10 MarkupSafe-1.0 Pygments-2.2.0 Sphinx-1.4a1 alabaster-0.7.11 babel-2.6.0 docutils-0.14 gitdb-0.6.4 imagesize-1.1.0 pyang-1.6 pytz-2018.5 rstr-2.2.6 six-1.11.0 smmap-0.9.0 snowballstemmer-1.2.1 sphinx-rtd-theme-0.1.9
(YDKenv) MacBookPro-2:ydk-gen takumi$ ./generate --libydk
-bash: ./generate: No such file or directory
(YDKenv) MacBookPro-2:ydk-gen takumi$ ./generate.py --libydk

Time taken for code/doc generation: 0 seconds


Creating cpp package...

-- The C compiler identification is AppleClang 10.0.0.10001025
-- The CXX compiler identification is AppleClang 10.0.0.10001025
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake System: MacOS
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4")
Set libyang plugin installation directory to: lib/libyang
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.14") found components: doxygen dot
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ssh_threads_location
linked by target "ydk" in directory /Users/takumi/Documents/YDK/YDKenv/ydk-gen/gen-api/cpp/ydk

-- Configuring incomplete, errors occurred!
See also "/Users/takumi/Documents/YDK/YDKenv/ydk-gen/gen-api/cpp/ydk/build/CMakeFiles/CMakeOutput.log".

ERROR: Failed to configure build!

(YDKenv) MacBookPro-2:ydk-gen takumi$

 

The error says libssh is missing. Have you installed 'brew install libssh' as specified in README?



CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ssh_threads_location
linked by target "ydk" in directory /Users/takumi/Documents/YDK/YDKenv/ydk-gen/gen-api/cpp/ydk

Thanks, but already installed libssh.
and reinstalled libssh but still error.

 

(YDKenv) MacBookPro-2:ydk-gen takumi$ brew install libssh
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> New Formulae
carla hyperkit
==> Updated Formulae
apr glm metabase povray uhd
brew-gem gradle mmark pqiv vagrant-completion
cmark-gfm heroku orc-tools profanity webpack
consul homebank packer rebar3
fabric jenkins-lts pgbadger sbt
flow libspectre php selenium-server-standalone
ghostscript lz4 php@7.0 shellharden

Warning: libssh 0.8.1 is already installed and up-to-date
To reinstall 0.8.1, run `brew reinstall libssh`
(YDKenv) MacBookPro-2:ydk-gen takumi$ ./generate.py --libydk

Time taken for code/doc generation: 0 seconds


Creating cpp package...

-- The C compiler identification is AppleClang 10.0.0.10001025
-- The CXX compiler identification is AppleClang 10.0.0.10001025
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake System: MacOS
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4")
Set libyang plugin installation directory to: lib/libyang
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.14") found components: doxygen dot
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ssh_threads_location
linked by target "ydk" in directory /Users/takumi/Documents/YDK/YDKenv/ydk-gen/gen-api/cpp/ydk

-- Configuring incomplete, errors occurred!
See also "/Users/takumi/Documents/YDK/YDKenv/ydk-gen/gen-api/cpp/ydk/build/CMakeFiles/CMakeOutput.log".

ERROR: Failed to configure build!

It looks like libssh 0.8.0 and later does not support separate threading library (see http://api.libssh.org/master/libssh_tutor_threads.html).

Can you try installing older version of libssh (older than 0.8.0)?

Thank you abhirame. solved, and trying YDK.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: