cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

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/

Who Me Too'd this topic