cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
175
Views
0
Helpful
2
Replies
Highlighted
Cisco Employee

_PyObject_NextNotImplemented

When I try to run a service on my NSO server I'm receiving the following error in ncs-python-vm.log:

 

2018-10-15 11:13:40 - Restarted PyVM: <<"secure-admin-asa">> , Port=#Port<0.227235> , OSpid="20828"

2018-10-15 11:13:40 - firewall-aaa-accounting :: Traceback (most recent call last):

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in <module>

    import ncsctlsock

  File "/apps/nso/opt/ncs/ncs-4.4.5.4/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in <module>

    import _ncs

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/__init__.py", line 5, in <module>

    from _ncs_py2 import cdb

ImportError: /apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/_ncs_py2.so: undefined symbol: _PyObject_NextNotImplemented

2018-10-15 11:13:40 - Got EXIT on Port= #Port<0.227232>

2018-10-15 11:13:40 - Restarted PyVM: <<"firewall-aaa-accounting">> , Port=#Port<0.227236> , OSpid="20829"

2018-10-15 11:13:40 - secure-admin-asa :: Starting /apps/nso/opt/ncs/current/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f /apps/nso/var/log/ncs/ncs-python-vm -i secure-admin-asa

Traceback (most recent call last):

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in <module>

    import ncsctlsock

  File "/apps/nso/opt/ncs/ncs-4.4.5.4/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in <module>

    import _ncs

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/__init__.py", line 5, in <module>

    from _ncs_py2 import cdb

ImportError: /apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/_ncs_py2.so: undefined symbol: _PyObject_NextNotImplemented

2018-10-15 11:13:40 - Got EXIT on Port= #Port<0.227235>

2018-10-15 11:13:40 - firewall-aaa-accounting :: Starting /apps/nso/opt/ncs/current/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f /apps/nso/var/log/ncs/ncs-python-vm -i firewall-aaa-accounting

2018-10-15 11:13:40 - firewall-aaa-accounting :: Traceback (most recent call last):

2018-10-15 11:13:40 - firewall-aaa-accounting ::   File "/apps/nso/opt/ncs/current/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in <module>

2018-10-15 11:13:40 - firewall-aaa-accounting ::     import ncsctlsock

2018-10-15 11:13:40 - firewall-aaa-accounting ::   File "/apps/nso/opt/ncs/ncs-4.4.5.4/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in <module>

2018-10-15 11:13:40 - firewall-aaa-accounting ::     import _ncs

2018-10-15 11:13:40 - firewall-aaa-accounting ::   File "/apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/__init__.py", line 5, in <module>

2018-10-15 11:13:40 - firewall-aaa-accounting ::     from _ncs_py2 import cdb

2018-10-15 11:13:40 - firewall-aaa-accounting :: ImportError: /apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/_ncs_py2.so: undefined symbol: _PyObject_NextNotImplemented

2018-10-15 11:13:40 - Got EXIT on Port= #Port<0.227236>

 

Upon further inspection, if I just pull up a python console I get the same error importing ncs:

 

[dretaylo@nwsnsocvoprd-1 ncs]$ python

Python 2.6.6 (r266:84292, Aug  9 2016, 06:11:56)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import ncs

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/ncs/__init__.py", line 15, in <module>

    import _ncs

  File "/apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/__init__.py", line 5, in <module>

    from _ncs_py2 import cdb

ImportError: /apps/nso/opt/ncs/current/src/ncs/pyapi/_ncs/_ncs_py2.so: undefined symbol: _PyObject_NextNotImplemented

 

Has anyone received this error before?

Everyone's tags (2)
2 REPLIES 2
Cisco Employee

Re: _PyObject_NextNotImplemented

Hi,

 

Your Python version is too old for NSO. In the Developer Guide you can read:

    "Python versions 2.7.5 or higher and Python 3.4 or higher are supported"

 

/Tomas

Cisco Employee

Re: _PyObject_NextNotImplemented

Thanks Thomas! That worked :)