cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
893
Views
0
Helpful
5
Replies

Error while doing pip install for pip install gen-api/python/ydk/dist/ydk-0.8.5.tar.gz

avpathak
Cisco Employee
Cisco Employee

Hi ,

pip install for ydk-0.8.5.tar.gz is getting failed for me 

I am having python 3.6 

 

(ydk-venv) [root@avpathak1-lnx ydk-gen]# pip list
Package Version
---------------- -------
alabaster 0.7.12
Babel 2.9.0
docutils 0.16
gitdb2 2.0.6
GitPython 2.1.15
imagesize 1.2.0
Jinja2 2.11.2
MarkupSafe 1.1.1
pip 20.3.3
pyang 1.6
pybind11 2.6.1
Pygments 2.7.3
pytz 2020.4
rstr 2.2.6
setuptools 28.8.0
six 1.15.0
smmap 3.0.4
smmap2 3.0.1
snowballstemmer 2.0.0
Sphinx 1.4a1
sphinx-rtd-theme 0.1.9
wheel 0.34.2

 

 

(ydk-venv) [root@avpathak1-lnx ydk-gen]# pip install gen-api/python/ydk/dist/ydk-0.8.5.tar.gz
Processing ./gen-api/python/ydk/dist/ydk-0.8.5.tar.gz
Requirement already satisfied: pybind11>=2.1.1 in /home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages (from ydk==0.8.5) (2.6.1)
Building wheels for collected packages: ydk
Building wheel for ydk (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/avpathak/ydk/ydk-venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-9ixf7fud/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-9ixf7fud/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 /tmp/pip-wheel-_tl3gbsk
cwd: /tmp/pip-req-build-9ixf7fud/
Complete output (228 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ydk
copying ydk/__init__.py -> build/lib.linux-x86_64-3.6/ydk
copying ydk/exthook.py -> build/lib.linux-x86_64-3.6/ydk
creating build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/codec_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/__init__.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/executor_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/netconf_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/crud_service.py -> build/lib.linux-x86_64-3.6/ydk/services
creating build/lib.linux-x86_64-3.6/ydk/filters
copying ydk/filters/__init__.py -> build/lib.linux-x86_64-3.6/ydk/filters
creating build/lib.linux-x86_64-3.6/ydk/ext
copying ydk/ext/__init__.py -> build/lib.linux-x86_64-3.6/ydk/ext
creating build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/py_types.py -> build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/__init__.py -> build/lib.linux-x86_64-3.6/ydk/types
creating build/lib.linux-x86_64-3.6/ydk/models
copying ydk/models/__init__.py -> build/lib.linux-x86_64-3.6/ydk/models
creating build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/__init__.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/entity_utils.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
creating build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/__init__.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/codec_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/netconf_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
creating build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/__init__.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_dm_meta_info.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_importer.py -> build/lib.linux-x86_64-3.6/ydk/_core
creating build/lib.linux-x86_64-3.6/ydk/logging
copying ydk/logging/__init__.py -> build/lib.linux-x86_64-3.6/ydk/logging
creating build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/__init__.py -> build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/error_handler.py -> build/lib.linux-x86_64-3.6/ydk/errors
creating build/lib.linux-x86_64-3.6/ydk/path
copying ydk/path/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path
creating build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/restconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/netconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
running build_ext
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
python version: 3.6m
-- Found PythonLibs: /usr/local/lib/libpython3.6m.a (found version "3.6.4")
pybind11 include: /home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/pybind11/include;/home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/pybind11/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-req-build-9ixf7fud/build/temp.linux-x86_64-3.6
Scanning dependencies of target ydk_
[ 50%] Building CXX object CMakeFiles/ydk_.dir/python.cpp.o
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
.def("__eq__", [](ydk::Empty& left, ydk::Empty& right)
^
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
.def("__ne__", [](ydk::Empty& left, ydk::Empty& right)
^
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
[100%] Linking CXX shared module ../lib.linux-x86_64-3.6/ydk_.so
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(boolobject.o): relocation R_X86_64_32S against symbol `PyBool_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytearrayobject.o): relocation R_X86_64_32 against symbol `_PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytesobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(descrobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(exceptions.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(floatobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(frameobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(funcobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(iterobject.o): relocation R_X86_64_32 against symbol `PyCallIter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(longobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dictobject.o): relocation R_X86_64_32 against symbol `_Py_TrueStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(memoryobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(methodobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(moduleobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(obmalloc.o): relocation R_X86_64_32S against `.text.hot' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(capsule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(rangeobject.o): relocation R_X86_64_32S against symbol `PyRange_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(setobject.o): relocation R_X86_64_32S against symbol `PySet_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(sliceobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(structseq.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(tupleobject.o): relocation R_X86_64_32 against symbol `_PyEval_SliceIndexNotNone' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(typeobject.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(unicodeobject.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(weakrefobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_warnings.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bltinmodule.o): relocation R_X86_64_32S against symbol `PyFilter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(ceval.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(compile.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(codecs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(errors.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getargs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getversion.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(import.o): relocation R_X86_64_32S against symbol `PyModule_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(importdl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(marshal.o): relocation R_X86_64_32 against symbol `_Py_hashtable_compare_direct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(modsupport.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(peephole.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pyhash.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pylifecycle.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pystate.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pythonrun.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pytime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(random.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(structmember.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(symtable.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(sysmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(traceback.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pystrtod.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dtoa.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(formatter_unicode.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileutils.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(thread.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getpath.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(gcmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_threadmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(posixmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(errnomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pwdmodule.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_sre.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_codecsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_weakref.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_functoolsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_operator.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_collectionsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(itertoolsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(atexitmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(signalmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_stat.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(timemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_iomodule.o): relocation R_X86_64_32 against symbol `_PyIO_Module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(iobase.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytesio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bufferedio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(textio.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(stringio.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(zipimport.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(faulthandler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_tracemalloc.o): relocation R_X86_64_32 against symbol `_Py_TrueStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(hashtable.o): relocation R_X86_64_32 against symbol `PyMem_RawMalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(symtablemodule.o): relocation R_X86_64_32 against symbol `PyUnicode_FSDecoder' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(xxsubtype.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getbuildinfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(acceler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(grammar1.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(parsetok.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(tokenizer.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(accu.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(cellobject.o): relocation R_X86_64_32S against symbol `PyCell_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(codeobject.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(complexobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(enumobject.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(genobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(odictobject.o): relocation R_X86_64_32 against symbol `PyODictIter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(namespaceobject.o): relocation R_X86_64_32 against symbol `_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(Python-ast.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(ast.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getcopyright.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getplatform.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(mystrtoul.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(parser.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
gmake[2]: *** [../lib.linux-x86_64-3.6/ydk_.so] Error 1
gmake[1]: *** [CMakeFiles/ydk_.dir/all] Error 2
gmake: *** [all] Error 2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 145, in <module>
zip_safe=False,
File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 68, in run
self.build_extension(ext)
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 101, in build_extension
subprocess.check_call([cmake_executable, '--build', '.'], cwd=self.build_temp)
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake3', '--build', '.']' returned non-zero exit status 2.
----------------------------------------
ERROR: Failed building wheel for ydk
Running setup.py clean for ydk
Failed to build ydk
Installing collected packages: ydk
Running setup.py install for ydk ... error
ERROR: Command errored out with exit status 1:
command: /home/avpathak/ydk/ydk-venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-9ixf7fud/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-9ixf7fud/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ksnyxw92/install-record.txt --single-version-externally-managed --compile --install-headers /home/avpathak/ydk/ydk-venv/include/site/python3.6/ydk
cwd: /tmp/pip-req-build-9ixf7fud/
Complete output (230 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ydk
copying ydk/__init__.py -> build/lib.linux-x86_64-3.6/ydk
copying ydk/exthook.py -> build/lib.linux-x86_64-3.6/ydk
creating build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/codec_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/__init__.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/executor_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/netconf_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/crud_service.py -> build/lib.linux-x86_64-3.6/ydk/services
creating build/lib.linux-x86_64-3.6/ydk/filters
copying ydk/filters/__init__.py -> build/lib.linux-x86_64-3.6/ydk/filters
creating build/lib.linux-x86_64-3.6/ydk/ext
copying ydk/ext/__init__.py -> build/lib.linux-x86_64-3.6/ydk/ext
creating build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/py_types.py -> build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/__init__.py -> build/lib.linux-x86_64-3.6/ydk/types
creating build/lib.linux-x86_64-3.6/ydk/models
copying ydk/models/__init__.py -> build/lib.linux-x86_64-3.6/ydk/models
creating build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/__init__.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/entity_utils.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
creating build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/__init__.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/codec_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/netconf_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
creating build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/__init__.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_dm_meta_info.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_importer.py -> build/lib.linux-x86_64-3.6/ydk/_core
creating build/lib.linux-x86_64-3.6/ydk/logging
copying ydk/logging/__init__.py -> build/lib.linux-x86_64-3.6/ydk/logging
creating build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/__init__.py -> build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/error_handler.py -> build/lib.linux-x86_64-3.6/ydk/errors
creating build/lib.linux-x86_64-3.6/ydk/path
copying ydk/path/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path
creating build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/restconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/netconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
running build_ext
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
python version: 3.6m
-- Found PythonLibs: /usr/local/lib/libpython3.6m.a (found version "3.6.4")
pybind11 include: /home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/pybind11/include;/home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/pybind11/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-req-build-9ixf7fud/build/temp.linux-x86_64-3.6
Scanning dependencies of target ydk_
[ 50%] Building CXX object CMakeFiles/ydk_.dir/python.cpp.o
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
.def("__eq__", [](ydk::Empty& left, ydk::Empty& right)
^
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:541:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
.def("__ne__", [](ydk::Empty& left, ydk::Empty& right)
^
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿleftÔÇÖ [-Wunused-parameter]
/tmp/pip-req-build-9ixf7fud/python.cpp:545:62: warning: unused parameter ÔÇÿrightÔÇÖ [-Wunused-parameter]
[100%] Linking CXX shared module ../lib.linux-x86_64-3.6/ydk_.so
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(boolobject.o): relocation R_X86_64_32S against symbol `PyBool_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytearrayobject.o): relocation R_X86_64_32 against symbol `_PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytesobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(descrobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(exceptions.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(floatobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(frameobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(funcobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(iterobject.o): relocation R_X86_64_32 against symbol `PyCallIter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(longobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dictobject.o): relocation R_X86_64_32 against symbol `_Py_TrueStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(memoryobject.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(methodobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(moduleobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(obmalloc.o): relocation R_X86_64_32S against `.text.hot' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(capsule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(rangeobject.o): relocation R_X86_64_32S against symbol `PyRange_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(setobject.o): relocation R_X86_64_32S against symbol `PySet_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(sliceobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(structseq.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(tupleobject.o): relocation R_X86_64_32 against symbol `_PyEval_SliceIndexNotNone' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(typeobject.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(unicodeobject.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(weakrefobject.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_warnings.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bltinmodule.o): relocation R_X86_64_32S against symbol `PyFilter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(ceval.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(compile.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(codecs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(errors.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getargs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getversion.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(import.o): relocation R_X86_64_32S against symbol `PyModule_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(importdl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(marshal.o): relocation R_X86_64_32 against symbol `_Py_hashtable_compare_direct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(modsupport.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(peephole.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pyhash.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pylifecycle.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pystate.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pythonrun.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pytime.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(random.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(structmember.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(symtable.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(sysmodule.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(traceback.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pystrtod.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dtoa.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(formatter_unicode.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileutils.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(thread.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getpath.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(gcmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_threadmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(posixmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(errnomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(pwdmodule.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_sre.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_codecsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_weakref.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_functoolsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_operator.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_collectionsmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(itertoolsmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(atexitmodule.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(signalmodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_stat.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(timemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_iomodule.o): relocation R_X86_64_32 against symbol `_PyIO_Module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(iobase.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytesio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bufferedio.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(textio.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(stringio.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(zipimport.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(faulthandler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(_tracemalloc.o): relocation R_X86_64_32 against symbol `_Py_TrueStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(hashtable.o): relocation R_X86_64_32 against symbol `PyMem_RawMalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(symtablemodule.o): relocation R_X86_64_32 against symbol `PyUnicode_FSDecoder' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(xxsubtype.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getbuildinfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(acceler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(grammar1.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(parsetok.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(tokenizer.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(accu.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(cellobject.o): relocation R_X86_64_32S against symbol `PyCell_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(codeobject.o): relocation R_X86_64_32S against symbol `PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(complexobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(enumobject.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(genobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(fileobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(odictobject.o): relocation R_X86_64_32 against symbol `PyODictIter_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(namespaceobject.o): relocation R_X86_64_32 against symbol `_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(Python-ast.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(ast.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getcopyright.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(getplatform.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(mystrtoul.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(parser.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
gmake[2]: *** [../lib.linux-x86_64-3.6/ydk_.so] Error 1
gmake[1]: *** [CMakeFiles/ydk_.dir/all] Error 2
gmake: *** [all] Error 2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 145, in <module>
zip_safe=False,
File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 68, in run
self.build_extension(ext)
File "/tmp/pip-req-build-9ixf7fud/setup.py", line 101, in build_extension
subprocess.check_call([cmake_executable, '--build', '.'], cwd=self.build_temp)
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake3', '--build', '.']' returned non-zero exit status 2.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/avpathak/ydk/ydk-venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-9ixf7fud/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-9ixf7fud/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ksnyxw92/install-record.txt --single-version-externally-managed --compile --install-headers /home/avpathak/ydk/ydk-venv/include/site/python3.6/ydk Check the logs for full command output.
(ydk-venv) [root@avpathak1-lnx ydk-gen]#

5 Replies 5

If your intention is just installing Yang Development Kit, i suggest to follow the procedures found in the official documentation website:

 

http://ydk.cisco.com/py/docs/getting_started.html#quick-install

 

Regards,

 

Hi Michael
You pointed to YDK-0.8.3 documentation, whereas avpathak is trying to install 0.8.5. More accurate for YDK-0.8.5 would be this one.

Yan Gorelik
YDK Solutions

HI Michael/Yan , 

I have python 3.6.4

 

i tried pip install ydk . But still getting same error . 

Let me know what I am missing here .

 

(ydk-venv) [root@avpathak1-lnx ydk-gen]# pip install ydk
Collecting ydk
Downloading ydk-0.8.4.tar.gz (33 kB)
Requirement already satisfied: pybind11>=2.1.1 in /home/avpathak/ydk/ydk-venv/lib/python3.6/site-packages (from ydk) (2.6.1)
Building wheels for collected packages: ydk
Building wheel for ydk (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/avpathak/ydk/ydk-venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k4g767f8/ydk_8aef24b5833d44aea5012f78bb564a48/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k4g767f8/ydk_8aef24b5833d44aea5012f78bb564a48/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 /tmp/pip-wheel-ydwsx3x7
cwd: /tmp/pip-install-k4g767f8/ydk_8aef24b5833d44aea5012f78bb564a48/
Complete output (228 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ydk
copying ydk/__init__.py -> build/lib.linux-x86_64-3.6/ydk
copying ydk/exthook.py -> build/lib.linux-x86_64-3.6/ydk
creating build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/codec_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/__init__.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/executor_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/netconf_service.py -> build/lib.linux-x86_64-3.6/ydk/services
copying ydk/services/crud_service.py -> build/lib.linux-x86_64-3.6/ydk/services
creating build/lib.linux-x86_64-3.6/ydk/filters
copying ydk/filters/__init__.py -> build/lib.linux-x86_64-3.6/ydk/filters
creating build/lib.linux-x86_64-3.6/ydk/ext
copying ydk/ext/__init__.py -> build/lib.linux-x86_64-3.6/ydk/ext
creating build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/py_types.py -> build/lib.linux-x86_64-3.6/ydk/types
copying ydk/types/__init__.py -> build/lib.linux-x86_64-3.6/ydk/types
creating build/lib.linux-x86_64-3.6/ydk/models
copying ydk/models/__init__.py -> build/lib.linux-x86_64-3.6/ydk/models
creating build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/__init__.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
copying ydk/entity_utils/entity_utils.py -> build/lib.linux-x86_64-3.6/ydk/entity_utils
creating build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/__init__.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/codec_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
copying ydk/providers/netconf_provider.py -> build/lib.linux-x86_64-3.6/ydk/providers
creating build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/__init__.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_dm_meta_info.py -> build/lib.linux-x86_64-3.6/ydk/_core
copying ydk/_core/_importer.py -> build/lib.linux-x86_64-3.6/ydk/_core
creating build/lib.linux-x86_64-3.6/ydk/logging
copying ydk/logging/__init__.py -> build/lib.linux-x86_64-3.6/ydk/logging
creating build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/__init__.py -> build/lib.linux-x86_64-3.6/ydk/errors
copying ydk/errors/error_handler.py -> build/lib.linux-x86_64-3.6/ydk/errors
creating build/lib.linux-x86_64-3.6/ydk/path
copying ydk/path/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path
creating build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/restconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/netconf_session.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
copying ydk/path/sessions/__init__.py -> build/lib.linux-x86_64-3.6/ydk/path/sessions
running build_ext
-- The C compiler identification is GNU 4.8.5
-

@yangorelik  is there a diferent URL for YDK-0.8.5. Could you pls point me there  

 

Thanks,

Avinash

I believe you are missing installation of YDK core library. Please follow this installation procedure of YDK-0.8.5. I also suggest to clone YDK from my fork:

> git clone https://github.com/ygorelik/ydk-gen.git

Yan Gorelik
YDK Solutions
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: