cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
136
Views
5
Helpful
1
Replies

VScode pipenv install ydk -----fail

Hi Boss,

 

I am trying to pipenv install ydk in vscode but result is fail.   It is difficut for me to understand error log.

 

Can you give me some advice and suggestion ?   

 

Much appreciate!!!

 

PS C:\Jacky Data\Projects\Project\Devnetcoding> pipenv install ydk
Installing ydk...
Error: An error occurred while installing ydk!
Error text: Collecting ydk
Using cached ydk-0.8.4.tar.gz (33 kB)
Requirement already satisfied: pybind11>=2.1.1 in c:\users\lznwfy\.virtualenvs\devnetcoding--tgwlxxm\lib\site-packages (from ydk->-r c:\users\lznwfy\appdata\local\temp\pipenv-8d9fxjcl-requirements\pipenv-w967bgdc-requirement.txt (line 1)) (2.6.2)
Building wheels for collected packages: ydk
Building wheel for ydk (setup.py): started
Building wheel for ydk (setup.py): finished with status 'error'
Running setup.py clean for ydk
Failed to build ydk
Installing collected packages: ydk
Running setup.py install for ydk: started
Running setup.py install for ydk: finished with status 'error'

ERROR: Command errored out with exit status 1:
command: 'C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\setup.py'"'"'; __file__='"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\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 'C:\Users\lznwfy\AppData\Local\Temp\pip-wheel-sm9qpovy'
cwd: C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\
Complete output (88 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\ydk
copying ydk\exthook.py -> build\lib.win-amd64-3.8\ydk
copying ydk\__init__.py -> build\lib.win-amd64-3.8\ydk
creating build\lib.win-amd64-3.8\ydk\entity_utils
copying ydk\entity_utils\entity_utils.py -> build\lib.win-amd64-3.8\ydk\entity_utils
copying ydk\entity_utils\__init__.py -> build\lib.win-amd64-3.8\ydk\entity_utils
creating build\lib.win-amd64-3.8\ydk\errors
copying ydk\errors\error_handler.py -> build\lib.win-amd64-3.8\ydk\errors
copying ydk\errors\__init__.py -> build\lib.win-amd64-3.8\ydk\errors
creating build\lib.win-amd64-3.8\ydk\ext
copying ydk\ext\__init__.py -> build\lib.win-amd64-3.8\ydk\ext
creating build\lib.win-amd64-3.8\ydk\filters
copying ydk\filters\__init__.py -> build\lib.win-amd64-3.8\ydk\filters
creating build\lib.win-amd64-3.8\ydk\logging
copying ydk\logging\__init__.py -> build\lib.win-amd64-3.8\ydk\logging
creating build\lib.win-amd64-3.8\ydk\models
copying ydk\models\__init__.py -> build\lib.win-amd64-3.8\ydk\models
creating build\lib.win-amd64-3.8\ydk\path
copying ydk\path\__init__.py -> build\lib.win-amd64-3.8\ydk\path
creating build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\codec_provider.py -> build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\netconf_provider.py -> build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\__init__.py -> build\lib.win-amd64-3.8\ydk\providers
creating build\lib.win-amd64-3.8\ydk\services
copying ydk\services\codec_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\crud_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\executor_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\netconf_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\__init__.py -> build\lib.win-amd64-3.8\ydk\services
creating build\lib.win-amd64-3.8\ydk\types
copying ydk\types\py_types.py -> build\lib.win-amd64-3.8\ydk\types
copying ydk\types\__init__.py -> build\lib.win-amd64-3.8\ydk\types
creating build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\_dm_meta_info.py -> build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\_importer.py -> build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\__init__.py -> build\lib.win-amd64-3.8\ydk\_core
creating build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\netconf_session.py -> build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\restconf_session.py -> build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\__init__.py -> build\lib.win-amd64-3.8\ydk\path\sessions
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Traceback (most recent call last):
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 60, in run
0 == subprocess.call(['which', 'cmake3'], stdout=subprocess.PIPE, stderr=subprocess.PIPE))
File "c:\program files\python38\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 111, in <module>
setup(
File "C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "c:\program files\python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\program files\python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files\python38\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 64, in run
raise RuntimeError("CMake must be installed to build the following extensions: " +
RuntimeError: CMake must be installed to build the following extensions: ydk_
----------------------------------------
ERROR: Failed building wheel for ydk
ERROR: Command errored out with exit status 1:
command: 'C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0]
= '"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\setup.py'"'"'; __file__='"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lznwfy\AppData\Local\Temp\pip-record-3xd204mx\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\include\site\python3.8\ydk'
cwd: C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\
Complete output (90 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\ydk
copying ydk\exthook.py -> build\lib.win-amd64-3.8\ydk
copying ydk\__init__.py -> build\lib.win-amd64-3.8\ydk
creating build\lib.win-amd64-3.8\ydk\entity_utils
copying ydk\entity_utils\entity_utils.py -> build\lib.win-amd64-3.8\ydk\entity_utils
copying ydk\entity_utils\__init__.py -> build\lib.win-amd64-3.8\ydk\entity_utils
creating build\lib.win-amd64-3.8\ydk\errors
copying ydk\errors\error_handler.py -> build\lib.win-amd64-3.8\ydk\errors
copying ydk\errors\__init__.py -> build\lib.win-amd64-3.8\ydk\errors
creating build\lib.win-amd64-3.8\ydk\ext
copying ydk\ext\__init__.py -> build\lib.win-amd64-3.8\ydk\ext
creating build\lib.win-amd64-3.8\ydk\filters
copying ydk\filters\__init__.py -> build\lib.win-amd64-3.8\ydk\filters
creating build\lib.win-amd64-3.8\ydk\logging
copying ydk\logging\__init__.py -> build\lib.win-amd64-3.8\ydk\logging
creating build\lib.win-amd64-3.8\ydk\models
copying ydk\models\__init__.py -> build\lib.win-amd64-3.8\ydk\models
creating build\lib.win-amd64-3.8\ydk\path
copying ydk\path\__init__.py -> build\lib.win-amd64-3.8\ydk\path
creating build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\codec_provider.py -> build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\netconf_provider.py -> build\lib.win-amd64-3.8\ydk\providers
copying ydk\providers\__init__.py -> build\lib.win-amd64-3.8\ydk\providers
creating build\lib.win-amd64-3.8\ydk\services
copying ydk\services\codec_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\crud_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\executor_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\netconf_service.py -> build\lib.win-amd64-3.8\ydk\services
copying ydk\services\__init__.py -> build\lib.win-amd64-3.8\ydk\services
creating build\lib.win-amd64-3.8\ydk\types
copying ydk\types\py_types.py -> build\lib.win-amd64-3.8\ydk\types
copying ydk\types\__init__.py -> build\lib.win-amd64-3.8\ydk\types
creating build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\_dm_meta_info.py -> build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\_importer.py -> build\lib.win-amd64-3.8\ydk\_core
copying ydk\_core\__init__.py -> build\lib.win-amd64-3.8\ydk\_core
creating build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\netconf_session.py -> build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\restconf_session.py -> build\lib.win-amd64-3.8\ydk\path\sessions
copying ydk\path\sessions\__init__.py -> build\lib.win-amd64-3.8\ydk\path\sessions
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Traceback (most recent call last):
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 60, in run
0 == subprocess.call(['which', 'cmake3'], stdout=subprocess.PIPE, stderr=subprocess.PIPE))
File "c:\program files\python38\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\program files\python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files\python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 111, in <module>
setup(
File "C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "c:\program files\python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\program files\python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\program files\python38\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files\python38\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\lznwfy\AppData\Local\Temp\pip-install-cdi4c8tp\ydk_0e3aeb513d13451d82b850bbb756b8f5\setup.py", line 64, in run
raise RuntimeError("CMake must be installed to build the following extensions: " +
RuntimeError: CMake must be installed to build the following extensions: ydk_
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\setup.py'"'"'; __file__='"'"'C:\\Users\\lznwfy\\AppData\\Local\\Temp\\pip-install-cdi4c8tp\\ydk_0e3aeb513d13451d82b850bbb756b8f5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lznwfy\AppData\Local\Temp\pip-record-3xd204mx\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\lznwfy\.virtualenvs\Devnetcoding--tgWlxXM\include\site\python3.8\ydk' Check the logs for full command output.

Installation Failed

Jacky Zhang
Global Telecom
1 REPLY 1
yangorelik
Participant

Hi Jacky

At this point for Windows platform I can advise you to install and use pure Python old version of YDK, which is 0.5.5. It is available on pypi.org, just need to specify version like this: 

pipenv install ydk==0.5.5

If that is something to consider, I would suggest better to get the latest version of that release from GitHub.

git clone https://github.com/xulleon/ydk-gen.git -b 0.5.5.post2 

The latest versions of YDK (I mean 0.8.x and above) are C++ based and require core libraries installation prior to Python package installation. At this point they are not supported on Windows platform due to the binary dependencies. 

Yan Gorelik
YDK Solutions
Content for Community-Ad