pip install ydk fails on Mac

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018 09:07 PM
After installing all dependancies listed https://github.com/CiscoDevNet/ydk-py/blob/master/README.rst#macos
it still failing with same error
Collecting ydk
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/
- Labels:
-
YANG Development Kit (YDK)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 08:44 AM
Which macOS is this? If 'High Sierra', please see the workaround suggested here:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2018 07:33 AM
Thanks, I tried that workaround but seems to be still failing with the same error. BTW I was trying on two different Mac Sierra and High Sierra - same errors on both.
I got it working in Docker though...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 08:46 AM
Hi is there any resolution? I am facing the same issue.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 08:55 AM
This error should be fixed. Can you please post your system information and full error log?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 09:00 AM
Hi It is
MAC_PC:~ pmorvay$ sudo installer -pkg libydk-0.7.2-Darwin.pkg -target /
Password:
installer: Package name is libydk-0.7.2-Darwin
installer: Upgrading at base path /
installer: The upgrade was successful.
MAC_PC:~ pmorvay$ pip3 install ydk-models-cisco-ios-xe
Collecting ydk-models-cisco-ios-xe
Downloading https://files.pythonhosted.org/packages/6f/da/7a4c8b5c915ba324dc306d3e56a2f19e8ee10a9995a774354ae0242b6e20/ydk_models_cisco_ios_xe-16.8.1.post1-py2.py3-none-any.whl (10.2MB)
100% |████████████████████████████████| 10.2MB 2.6MB/s
Collecting ydk>=0.7.2 (from ydk-models-cisco-ios-xe)
Using cached https://files.pythonhosted.org/packages/60/a6/246b8dde35c1bc8c0c87489caf4dd999ff2f2c9b35c1e92a86e1f62bf2e9/ydk-0.7.2.tar.gz
Collecting ydk-models-ietf>=0.1.5-post1 (from ydk-models-cisco-ios-xe)
Using cached https://files.pythonhosted.org/packages/b9/b0/a5b4f7cb4cae57deb72a7fd750b8d352a0f2fdcb713f0c8ec59682eee70d/ydk_models_ietf-0.1.5.post1-py2.py3-none-any.whl
Requirement already satisfied: pybind11>=2.1.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from ydk>=0.7.2->ydk-models-cisco-ios-xe) (2.2.3)
Installing collected packages: ydk, ydk-models-ietf, ydk-models-cisco-ios-xe
Running setup.py install for ydk ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/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 /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-record-wdbv23jw/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/ydk
copying ydk/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk
copying ydk/exthook.py -> build/lib.macosx-10.9-x86_64-3.7/ydk
creating build/lib.macosx-10.9-x86_64-3.7/ydk/filters
copying ydk/filters/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/filters
creating build/lib.macosx-10.9-x86_64-3.7/ydk/types
copying ydk/types/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/types
copying ydk/types/py_types.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/types
creating build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/codec_provider.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/providers
creating build/lib.macosx-10.9-x86_64-3.7/ydk/path
copying ydk/path/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path
creating build/lib.macosx-10.9-x86_64-3.7/ydk/ext
copying ydk/ext/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/ext
creating build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
copying ydk/entity_utils/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
copying ydk/entity_utils/entity_utils.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
creating build/lib.macosx-10.9-x86_64-3.7/ydk/models
copying ydk/models/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/models
creating build/lib.macosx-10.9-x86_64-3.7/ydk/errors
copying ydk/errors/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/errors
copying ydk/errors/error_handler.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/errors
creating build/lib.macosx-10.9-x86_64-3.7/ydk/logging
copying ydk/logging/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/logging
creating build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/netconf_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/executor_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/crud_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/codec_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
creating build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/netconf_session.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/restconf_session.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
running build_ext
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
python version: 3.7m
-- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib (found version "3.7.0")
pybind11 include: /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m;/Users/pmorvay/Library/Python/3.7/include/python3.7m
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/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk/build/temp.macosx-10.9-x86_64-3.7/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk/setup.py", line 149, in <module>
zip_safe=False,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk/setup.py", line 72, in run
self.build_extension(ext)
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/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.7/lib/python3.7/subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk/build/lib.macosx-10.9-x86_64-3.7', '-DPYBIND11_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m;/Users/pmorvay/Library/Python/3.7/include/python3.7m', '-DPYTHON_VERSION=3.7m', '-DCMAKE_BUILD_TYPE=Release', '-DCOVERAGE=False']' returned non-zero exit status 1.
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/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 /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-record-wdbv23jw/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-install-dosnyb6g/ydk/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 09:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 09:03 AM - edited 08-02-2018 09:06 AM
it is High sierra 10.13.6
PC:ydk-gen pmorvay$ python -V
Python 2.7.13
PC:ydk-gen pmorvay$ python3 -V
Python 3.7.0
PC:ydk-gen pmorvay$ pip -V
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
PC:ydk-gen pmorvay$ pip3 -V
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 09:09 AM
Thanks. We are currently generating libydk binary for MacOS Sierra, not High Sierra. So you can build libydk yourself.
Similar to as suggested here, can you try the below?
git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2 cd ydk-gen ./generate --libydk [sudo] make -C gen-api/python/ydk install # install ydk-py [sudo] pip install ydk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 09:17 AM
Thank you for your help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 02:03 PM - edited 08-02-2018 02:07 PM
Hi it ggenerates the c++ libraries, but not python.
An advice how finalize this?
$ python3 generate.py --libydk
Time taken for code/doc generation: 0 seconds
Creating cpp package...
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pmorvay/YDK/ydk-gen/gen-api/cpp/ydk/build
Successfully generated code at /Users/pmorvay/YDK/ydk-gen/gen-api/cpp/ydk.
To build and install, run "make && [sudo] make install" from /Users/pmorvay/YDK/ydk-gen/gen-api/cpp/ydk/build
To build the libydk package, run "make && make package" from /Users/pmorvay/YDK/ydk-gen/gen-api/cpp/ydk/build
=================================================
Successfully generated C++ YDK at /Users/pmorvay/YDK/ydk-gen/gen-api/cpp/ydk
Please refer to the README for information on how to use YDK
Code generation and installation completed successfully!
Total time taken: 3 seconds
$ python3 ./generate.py -p
Time taken for code/doc generation: 0 seconds
Creating python package...
(null): can't open file 'setup.py': [Errno 2] No such file or directory
Failed to create source distribution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 02:38 AM - edited 08-06-2018 02:59 AM
Hi Abhi,
please do you know how to install YDK on the High sierra 10.13.6?
I tried to follow quite few guides, but could not solve this.
EDIT:
the latest I tried: https://github.com/CiscoDevNet/ydk-gen
First, generate the core and install it:
First generate and install libydk
(required for C++, Go or Python):
$ ./generate.py --libydk
$ cd gen-api/cpp/ydk/build
$ make
# To create the libydk binary package to use for later installation, run the below command
$ make package
# To install the compiled libydk code, run the below command after the above
$ [sudo] make install
For python:
$ ./generate.py --python --core
$ pip install gen-api/python/ydk/dist/ydk*.tar.gz
====RESULT=====
ls gen-api/
cpp/ python/
PC$ pip install gen-api/python/ydk/dist/ydk*.tar.gz
Processing ./gen-api/python/ydk/dist/ydk-0.7.2.tar.gz
Requirement already satisfied: pybind11>=2.1.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from ydk==0.7.2) (2.2.3)
Installing collected packages: ydk
Running setup.py install for ydk ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-record-0mrmwvuy/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/ydk
copying ydk/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk
copying ydk/exthook.py -> build/lib.macosx-10.9-x86_64-3.7/ydk
creating build/lib.macosx-10.9-x86_64-3.7/ydk/filters
copying ydk/filters/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/filters
creating build/lib.macosx-10.9-x86_64-3.7/ydk/types
copying ydk/types/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/types
copying ydk/types/py_types.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/types
creating build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/codec_provider.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/providers
creating build/lib.macosx-10.9-x86_64-3.7/ydk/path
copying ydk/path/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path
creating build/lib.macosx-10.9-x86_64-3.7/ydk/ext
copying ydk/ext/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/ext
creating build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
copying ydk/entity_utils/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
copying ydk/entity_utils/entity_utils.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/entity_utils
creating build/lib.macosx-10.9-x86_64-3.7/ydk/models
copying ydk/models/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/models
creating build/lib.macosx-10.9-x86_64-3.7/ydk/errors
copying ydk/errors/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/errors
copying ydk/errors/error_handler.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/errors
creating build/lib.macosx-10.9-x86_64-3.7/ydk/logging
copying ydk/logging/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/logging
creating build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/netconf_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/executor_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/crud_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
copying ydk/services/codec_service.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/services
creating build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/netconf_session.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
copying ydk/path/sessions/restconf_session.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/path/sessions
running build_ext
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
python version: 3.7m
-- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib (found version "3.7.0")
pybind11 include: /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m;/Users/pmorvay/Library/Python/3.7/include/python3.7m
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/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/build/temp.macosx-10.9-x86_64-3.7/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/setup.py", line 149, in <module>
zip_safe=False,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/setup.py", line 72, in run
self.build_extension(ext)
File "/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/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.7/lib/python3.7/subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/build/lib.macosx-10.9-x86_64-3.7', '-DPYBIND11_INCLUDE=/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m;/Users/pmorvay/Library/Python/3.7/include/python3.7m', '-DPYTHON_VERSION=3.7m', '-DCMAKE_BUILD_TYPE=Release', '-DCOVERAGE=False']' returned non-zero exit status 1.
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-record-0mrmwvuy/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/db/_8066fqx04517xvy08w2f65c0000gp/T/pip-req-build-2orzhnzt/
Thank you for your help
Best Regards,
Peter

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 09:00 AM - edited 08-06-2018 09:01 AM
Can you please try the below steps exactly as specified?
git clone https://github.com/CiscoDevNet/ydk-gen.git -b 0.7.2 cd ydk-gen ./generate --libydk sudo make -C gen-api/python/ydk install # install ydk-py sudo pip install ydk ydk-models-cisco-ios-xe

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 01:15 PM
Hi I already tried this and replied above. The guide does not create python folder and hence the third step fails. When I continued by other guide, where I created the python folder(see my last post) I see very similar issue as in initial post.
$ 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 | 4.51 MiB/s, done.
Resolving deltas: 100% (11221/11221), 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>
PMORVAY-M-J0S6:ydk-gen pmorvay$ cd ydk-gen
PMORVAY-M-J0S6:ydk-gen pmorvay$ ls
CHANGES.md README.md sdk
CODINGSTYLE.md create_ydk_sdk_for_github.sh test
CONTRIBUTIONS.md generate.py yang
Copyright issue_template.md ydkgen
Dockerfile profiles
LICENSE requirements.txt
PMORVAY-M-J0S6:ydk-gen pmorvay$ python3 ./generate --libydk
(null): can't open file './generate': [Errno 2] No such file or directory
PMORVAY-M-J0S6:ydk-gen pmorvay$ python3 ./generate.py --libydk
Time taken for code/doc generation: 0 seconds
Creating cpp package...
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pmorvay/YDK/YDK2/ydk-gen/ydk-gen/gen-api/cpp/ydk/build
Successfully generated code at /Users/pmorvay/YDK/YDK2/ydk-gen/ydk-gen/gen-api/cpp/ydk.
To build and install, run "make && [sudo] make install" from /Users/pmorvay/YDK/YDK2/ydk-gen/ydk-gen/gen-api/cpp/ydk/build
To build the libydk package, run "make && make package" from /Users/pmorvay/YDK/YDK2/ydk-gen/ydk-gen/gen-api/cpp/ydk/build
=================================================
Successfully generated C++ YDK at /Users/pmorvay/YDK/YDK2/ydk-gen/ydk-gen/gen-api/cpp/ydk
Please refer to the README for information on how to use YDK
Code generation and installation completed successfully!
Total time taken: 4 seconds
PMORVAY-M-J0S6:ydk-gen pmorvay$ sudo make -C gen-api/python/ydk install
Password:
make: *** gen-api/python/ydk: No such file or directory. Stop.
PMORVAY-M-J0S6:ydk-gen pmorvay$

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2018 02:49 PM
I saw the same here, any update to resolve ? I have High sierra 10.13.6 too.
