You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ brew install python
$ which python
/usr/local/bin/python
# may need sudo below
$ pip install ydk ydk-models-ietf
$ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ydk.models.ietf import ietf_interfaces as iif
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
One workaround if using homebrew on Mac OSX is to install from source:
$ git clone https://github.com/CiscoDevNet/ydk-py.git
$ cd ydk-py/core
# may need sudo for the below. Record files for later uninstall via "cat files.txt | xargs sudo rm -rf"
$ python setup.py install --record files.txt
$ cd ../ietf
$ python setup.py install --record files.txt
The other option is to use a virtualenv:
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install ydk ydk-models-ietf
(venv) $ python
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ydk.models.ietf import ietf_interfaces as iif
>>>
The text was updated successfully, but these errors were encountered:
Please execute brew rm python python3 to remove any homebrew python packages.
You can download the latest python package from here. Please do not use the homebrew version of python as it causes issues with installing ydk packages.
After removing homebrew python and installing any required packages from the official python website, I am able to install and use ydk without virtualenv & using virtualenv.
One workaround if using homebrew on Mac OSX is to install from source:
The other option is to use a virtualenv:
The text was updated successfully, but these errors were encountered: