cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
590
Views
0
Helpful
1
Replies

Can't still install ydk-py on MAC OSX Mohave (10.14.3)

jaime botello
Level 1
Level 1

I'm been trying to set ydk-py on my virtualenv for some NCS XR testing, and I haven't been having much luck. 

 

I follow all the pre-requisite documented ydk-py installation

 

and this is the output and the first error I see is Building wheel for ydk (setup.py) ... error

 

(ncsAutomation) ➜ ncsAutomation pip install ydk-models-cisco-ios-xr
Collecting ydk-models-cisco-ios-xr
Collecting ydk-models-ietf>=0.1.5-post2 (from ydk-models-cisco-ios-xr)
Collecting ydk>=0.7.3 (from ydk-models-cisco-ios-xr)
Using cached https://files.pythonhosted.org/packages/1b/6e/ec0664d282cdfb9f0f50e74fb59a404ee1897fe007238e08dbe6bb8be3f2/ydk-0.8.1.tar.gz
Requirement already satisfied: pybind11>=2.1.1 in ./lib/python3.7/site-packages (from ydk>=0.7.3->ydk-models-cisco-ios-xr) (2.2.4)
Building wheels for collected packages: ydk
Building wheel for ydk (setup.py) ... error
Complete output from command /Users/jbotello/PycharmProjects/ncsAutomation/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/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 /private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-wheel-ruybk8iw --python-tag cp37:
running bdist_wheel
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/_core
copying ydk/_core/_importer.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
copying ydk/_core/_dm_meta_info.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
copying ydk/_core/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
creating build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/netconf_provider.py -> 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 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- 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.2")
pybind11 include: /Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7;/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7
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 /private/var/folders/

jf

/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/

ydk

-- Configuring incomplete, errors occurred!
See also "/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 145, in <module>
zip_safe=False,
File "/Users/jbotello/PycharmProjects/ncsAutomation/lib/python3.7/site-packages/setuptools/__init__.py", line 145, 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 "/Users/jbotello/PycharmProjects/ncsAutomation/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, 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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 68, in run
self.build_extension(ext)
File "/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 100, 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 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/build/lib.macosx-10.9-x86_64-3.7', '-DPYBIND11_INCLUDE=/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7;/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7', '-DPYTHON_VERSION=3.7m', '-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, ydk-models-ietf, ydk-models-cisco-ios-xr
Running setup.py install for ydk ... error
Complete output from command /Users/jbotello/PycharmProjects/ncsAutomation/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-record-6u7gh50w/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7/ydk:
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/_core
copying ydk/_core/_importer.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
copying ydk/_core/_dm_meta_info.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
copying ydk/_core/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/ydk/_core
creating build/lib.macosx-10.9-x86_64-3.7/ydk/providers
copying ydk/providers/netconf_provider.py -> 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 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- 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.2")
pybind11 include: /Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7;/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7
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 /private/var/folders/

jf

/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/

ydk

-- Configuring incomplete, errors occurred!
See also "/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 145, in <module>
zip_safe=False,
File "/Users/jbotello/PycharmProjects/ncsAutomation/lib/python3.7/site-packages/setuptools/__init__.py", line 145, 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 "/Users/jbotello/PycharmProjects/ncsAutomation/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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 68, in run
self.build_extension(ext)
File "/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/setup.py", line 100, 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 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/build/lib.macosx-10.9-x86_64-3.7', '-DPYBIND11_INCLUDE=/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7;/Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7', '-DPYTHON_VERSION=3.7m', '-DCMAKE_BUILD_TYPE=Release', '-DCOVERAGE=False']' returned non-zero exit status 1.

----------------------------------------
Command "/Users/jbotello/PycharmProjects/ncsAutomation/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/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/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-record-6u7gh50w/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jbotello/PycharmProjects/ncsAutomation/bin/../include/site/python3.7/ydk" failed with error code 1 in /private/var/folders/jf/j466r3_s7714v5cydc4x8vch5t4hrv/T/pip-install-h2yghn0x/ydk/
(ncsAutomation) ➜ ncsAutomation

 

Thanks

1 Reply 1

ygorelik
Cisco Employee
Cisco Employee

Hello Jaime

Based on the log you have issue with libssh installation. See this requirement in the documentation. You need reinstall the libssh version that has threading library. I suggest you to run script dependecies_osx.sh, which is located in ydk_py directory. It should take care of the issue.

Regards, Yan