cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
801
Views
0
Helpful
1
Replies

ImportError: No module named ydk.ext.entity_utils

scoroger
Cisco Employee
Cisco Employee

(pyats) -bash-4.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)

 

Used pip install ydk

 

(pyats) scoroger@wnburcdnst-ats8 /opt/ats/scoroger/pyats: python
Python 3.4.1 (default, Aug 15 2019, 12:00:51)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ydk
>>> from ydk.services import CRUDService
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ats/scoroger/pyats/lib/python3.4/site-packages/ydk/services/__init__.py", line 17, in <module>
from .codec_service import CodecService
File "/opt/ats/scoroger/pyats/lib/python3.4/site-packages/ydk/services/codec_service.py", line 21, in <module>
from ydk.entity_utils import get_data_node_from_entity as _get_data_node_from_entity
File "/opt/ats/scoroger/pyats/lib/python3.4/site-packages/ydk/entity_utils/__init__.py", line 17, in <module>
from ydk.ext.entity_utils import get_data_node_from_entity
File "/opt/ats/scoroger/pyats/lib/python3.4/site-packages/ydk/exthook.py", line 87, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named ydk.ext.entity_utils

1 Reply 1

yangorelik
Spotlight
Spotlight

Hi scoroger

Sorry for delayed response. Somehow I missed your post.

Based on the error you have YDK installation issues (one or both):

1. The C++ core library was not installed

2. The Python-3.4.1 does not have dynamic library available in the LD_LIBRARY_PATH.

To give you exact answer I need to see more information.
First. Make sure the System Requirements are satisfied on your system.

Second. In your python virtual environment issue command:

pip install -v ydk==0.8.3

Attach the console output to the post.

 

Good luck

Yan Gorelik
YDK Solutions