<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Something wrong with Python process. dlopen, Symbol not found: _PyIOBase_Type in DevNet General Discussions</title>
    <link>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4066359#M1223</link>
    <description>&lt;P&gt;When installing NSO 5.3.1.1 on my Mac, and running a service, i get this:&lt;/P&gt;
&lt;PRE&gt;admin@ncs(config-my_test-TEST1)# commit dry-run outformat xml                                      
Aborted: no registration found for callpoint my_test-servicepoint/service_create of type=external&lt;/PRE&gt;
&lt;P&gt;Packages oper-status. Python is not initialized for the my_test package.&lt;/P&gt;
&lt;PRE&gt;admin@ncs# show packages package oper-status
                                                                                                        PACKAGE                
                          PROGRAM                                                                       META     FILE          
                          CODE     JAVA           PYTHON         BAD NCS  PACKAGE  PACKAGE  CIRCULAR    DATA     LOAD   ERROR  
NAME                  UP  ERROR    UNINITIALIZED  UNINITIALIZED  VERSION  NAME     VERSION  DEPENDENCY  ERROR    ERROR  INFO   
-------------------------------------------------------------------------------------------------------------------------------
cisco-ios-cli-6.51    X   -        -              -              -        -        -        -           -        -      -      
cisco-iosxr-cli-7.24  X   -        -              -              -        -        -        -           -        -      -      
my_test               -   -        -              X              -        -        -        -           -        -      -      
&lt;/PRE&gt;
&lt;P&gt;Checking the python log:&lt;/P&gt;
&lt;PRE&gt;user@{my-mac} logs % cat ncs-python-vm.log 
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:30.833 {my-mac} ncs[8715]: Started PyVM: &amp;lt;&amp;lt;"my_test"&amp;gt;&amp;gt; , Port=#Port&amp;lt;0.11339&amp;gt; , OSpid="8807"
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.089 {my-mac} ncs[8715]: my_test :: Starting python3 -u /Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f ./logs/ncs-python-vm -i my_test
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test :: Traceback (most recent call last):
  File "/Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     import ncsctlsock
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     import _ncs
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/__init__.py", line 19, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     from ._ncs_py3 import cdb
ImportError: dlopen(/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so, 2): Symbol not found: _PyIOBase_Type
  Referenced from: /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
  Expected in: flat namespace
 in /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.468 {my-mac} ncs[8715]: Got EXIT on Port= #Port&amp;lt;0.11339&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.475 {my-mac} ncs[8715]: Restarted PyVM: &amp;lt;&amp;lt;"my_test"&amp;gt;&amp;gt; , Port=#Port&amp;lt;0.12897&amp;gt; , OSpid="8816"
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.482 {my-mac} ncs[8715]: my_test :: Starting python3 -u /Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f ./logs/ncs-python-vm -i my_test
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test :: Traceback (most recent call last):
  File "/Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     import ncsctlsock
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     import _ncs
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/__init__.py", line 19, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     from ._ncs_py3 import cdb
ImportError: dlopen(/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so, 2): Symbol not found: _PyIOBase_Type
  Referenced from: /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
  Expected in: flat namespace
 in /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.538 {my-mac} ncs[8715]: Got EXIT on Port= #Port&amp;lt;0.12897&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;What does "Symbol not found: _PyIOBase_Type" mean? How can I fix it?&lt;/P&gt;
&lt;P&gt;I have had several versions of NSO running on my Mac(s), but never seen this before.&lt;/P&gt;
&lt;P&gt;I recently got a new Mac, and to begin with NSO 5.2.1 was running fine on that new Mac. But now I have this issue with 5.2.1 and 5.3.1.1. Have I messed up the Python installation on my Mac or the $PATH or....?&lt;/P&gt;
&lt;P&gt;Python seems good:&lt;/P&gt;
&lt;PRE&gt;# ncs-run % python --version
Python 3.7.3
# ncs-run % python2 --version
Python 2.7.16
# ncs-run % python3 --version
Python 3.7.3&lt;/PRE&gt;
&lt;P&gt;I have Java installed, I have paramiko..What is missing?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 12:33:16 GMT</pubDate>
    <dc:creator>bfinnema</dc:creator>
    <dc:date>2020-04-15T12:33:16Z</dc:date>
    <item>
      <title>Something wrong with Python process. dlopen, Symbol not found: _PyIOBase_Type</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4066359#M1223</link>
      <description>&lt;P&gt;When installing NSO 5.3.1.1 on my Mac, and running a service, i get this:&lt;/P&gt;
&lt;PRE&gt;admin@ncs(config-my_test-TEST1)# commit dry-run outformat xml                                      
Aborted: no registration found for callpoint my_test-servicepoint/service_create of type=external&lt;/PRE&gt;
&lt;P&gt;Packages oper-status. Python is not initialized for the my_test package.&lt;/P&gt;
&lt;PRE&gt;admin@ncs# show packages package oper-status
                                                                                                        PACKAGE                
                          PROGRAM                                                                       META     FILE          
                          CODE     JAVA           PYTHON         BAD NCS  PACKAGE  PACKAGE  CIRCULAR    DATA     LOAD   ERROR  
NAME                  UP  ERROR    UNINITIALIZED  UNINITIALIZED  VERSION  NAME     VERSION  DEPENDENCY  ERROR    ERROR  INFO   
-------------------------------------------------------------------------------------------------------------------------------
cisco-ios-cli-6.51    X   -        -              -              -        -        -        -           -        -      -      
cisco-iosxr-cli-7.24  X   -        -              -              -        -        -        -           -        -      -      
my_test               -   -        -              X              -        -        -        -           -        -      -      
&lt;/PRE&gt;
&lt;P&gt;Checking the python log:&lt;/P&gt;
&lt;PRE&gt;user@{my-mac} logs % cat ncs-python-vm.log 
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:30.833 {my-mac} ncs[8715]: Started PyVM: &amp;lt;&amp;lt;"my_test"&amp;gt;&amp;gt; , Port=#Port&amp;lt;0.11339&amp;gt; , OSpid="8807"
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.089 {my-mac} ncs[8715]: my_test :: Starting python3 -u /Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f ./logs/ncs-python-vm -i my_test
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test :: Traceback (most recent call last):
  File "/Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     import ncsctlsock
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     import _ncs
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/__init__.py", line 19, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.464 {my-mac} ncs[8715]: my_test ::     from ._ncs_py3 import cdb
ImportError: dlopen(/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so, 2): Symbol not found: _PyIOBase_Type
  Referenced from: /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
  Expected in: flat namespace
 in /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.468 {my-mac} ncs[8715]: Got EXIT on Port= #Port&amp;lt;0.11339&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.475 {my-mac} ncs[8715]: Restarted PyVM: &amp;lt;&amp;lt;"my_test"&amp;gt;&amp;gt; , Port=#Port&amp;lt;0.12897&amp;gt; , OSpid="8816"
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.482 {my-mac} ncs[8715]: my_test :: Starting python3 -u /Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py -l info -f ./logs/ncs-python-vm -i my_test
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test :: Traceback (most recent call last):
  File "/Users/user/tail-f/./nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/startup.py", line 6, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     import ncsctlsock
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/ncs_pyvm/ncsctlsock.py", line 5, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     import _ncs
  File "/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/__init__.py", line 19, in &amp;lt;module&amp;gt;
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.534 {my-mac} ncs[8715]: my_test ::     from ._ncs_py3 import cdb
ImportError: dlopen(/Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so, 2): Symbol not found: _PyIOBase_Type
  Referenced from: /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
  Expected in: flat namespace
 in /Users/user/tail-f/nso-5.3.1.1/src/ncs/pyapi/_ncs/_ncs_py3.abi3.so
&amp;lt;INFO&amp;gt; 15-Apr-2020::09:41:31.538 {my-mac} ncs[8715]: Got EXIT on Port= #Port&amp;lt;0.12897&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;What does "Symbol not found: _PyIOBase_Type" mean? How can I fix it?&lt;/P&gt;
&lt;P&gt;I have had several versions of NSO running on my Mac(s), but never seen this before.&lt;/P&gt;
&lt;P&gt;I recently got a new Mac, and to begin with NSO 5.2.1 was running fine on that new Mac. But now I have this issue with 5.2.1 and 5.3.1.1. Have I messed up the Python installation on my Mac or the $PATH or....?&lt;/P&gt;
&lt;P&gt;Python seems good:&lt;/P&gt;
&lt;PRE&gt;# ncs-run % python --version
Python 3.7.3
# ncs-run % python2 --version
Python 2.7.16
# ncs-run % python3 --version
Python 3.7.3&lt;/PRE&gt;
&lt;P&gt;I have Java installed, I have paramiko..What is missing?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 12:33:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4066359#M1223</guid>
      <dc:creator>bfinnema</dc:creator>
      <dc:date>2020-04-15T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Something wrong with Python process. dlopen, Symbol not found: _PyIOBase_Type</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4066367#M1224</link>
      <description>Sorry, moved this issue to the NSO Developer Hub. Ignore this. Should be deleted.</description>
      <pubDate>Wed, 15 Apr 2020 12:41:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4066367#M1224</guid>
      <dc:creator>bfinnema</dc:creator>
      <dc:date>2020-04-15T12:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Something wrong with Python process. dlopen, Symbol not found: _PyIOBase_Type</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4279939#M1335</link>
      <description>&lt;P&gt;How was this issue resolved ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:43:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/something-wrong-with-python-process-dlopen-symbol-not-found/m-p/4279939#M1335</guid>
      <dc:creator>shelvadi</dc:creator>
      <dc:date>2021-01-26T17:43:54Z</dc:date>
    </item>
  </channel>
</rss>

