-
Notifications
You must be signed in to change notification settings - Fork 78
Installation issue when using homebrew python on Mac OSX #513
Copy link
Copy link
Closed
Labels
Description
$ 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
>>>
Reactions are currently unavailable