Having trouble getting past the core and netconf bundle installs. Assuming the error happens when installing the cisco-asr-ios-xr bundle. Is it because the compliation of the core has failed (second error not shown or in the error log attached simply says it can't find ydk).
Getting an error when installing the core bundle
error: can't copy 'etc/bash_completion.d/pyang': doesn't exist or not a regular file
--compile failed with error code 1 in /tmp/pip_build_root/pyang
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 707, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 715, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pyang/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-n3EUej-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pyang
Are you installing ydk core under virtualenv. I found a similar issue here, and the suggested approach is to "Running pip install --upgrade pip within virtualenv fixed this issue.". Would this help for this issue.
- This didn't help fix the pyang compilation issue but was able to clear some of the warnings during the compilation by executing the following after a warning with the new pip wheel installed.
sudo -H pip install --no-index --find-links=/home/id22/Desktop/pywrapperetc/ /home/id22/Desktop/ydk-py-master/core/dist/ydk-0.5.2.tar.gz
- Other sites offer that since we are using the virtual environment that should not have to sudo.
can now execute
pip install --no-index --find-links=/home/id22/Desktop/pywrapperetc/ /home/id22/Desktop/ydk-py-master/core/dist/ydk-0.5.2.tar.gz
some of the other pyang type messages point to bad pointers in the distribution.
This ended up being the solution. Had to go into the pyang tar file (used the tar and not the wheel) and edit per the link that you sent. Was actually able to do this in Ubuntu which actually repacked it then it automatically then it all worked well. Did not try the wheel so it is possible that it was fixed in the wheel but not the tar. here
Had similar issue when trying to pip install on macbook pro in a virtualenvwrapper.
There seems to be a problem with in pyang setup.py. I added the correct path to pyang in the pyang setup.py data_files and it worked.
OS Version: Ubuntu 14.04 LTS
Is there network limitation on this machine, so the local tarballs for ydk dependencies are used.
- There is an Internet limitation. This machine does not and will not have access to the Internet. The machine does have access to an internal network but it does not host a local repo.
The installation process takes care of many dependencies and relies on internet connectivity. I'm not familiar with the changes needed to make the installation work on a disconnected host. Let me suggest a couple of alternatives. We have a Vagrant sandbox that gives you an Ubuntu machine with YDK-Py pre-installed with hundreds of sample apps. The only requirement to run the sandbox is a host with Virtualbox and Vagrant installed. Alternatively, we can try sharing an OVA of that sandbox.
Tried to reproduce and run into the same error when tried to "pip install pyang-1.6.tar.gz" downloaded pypi.https://pypi.python.org/pypi/pyang/1.6 Other archive files for pyang 1.6 works fine (either pyang-1.6-py2.py3-none-any.whl from the same page or pyang 1.6 release from their GitHub release page).
was able to install using the same command if replace the "pyang-1.6.tar.gz" with "pyang-1.6-py2.py3-none-any.whl".
Please sign in to leave a comment.