pynids (nids) import error using python3 - Raspberry Pi Forums


i have installed pynids (pynids-0.6.3) on raspberry pi v.2 running jessie light https://bitbucket.org/jmichel/pynids in directory /usr/local/share/pynids-0.6.3 follows:

code: select all

~> cd /usr/local/share/pynids-0.6.3  /usr/local/share/pynids-0.6.3> python3 setup.py build  /usr/local/share/pynids-0.6.3> python3 setup.py install /usr/local/share/pynids-0.6.3> python  setup.py install  
installation went ok both python2 , python3 far can tell:

code: select all

~> pip show pynids --- name: pynids version: 0.6.3 location: /usr/local/lib/python2.7/dist-packages requires:  ~> pip3 show pynids --- name: pynids version: 0.6.3 location: /usr/local/lib/python3.4/dist-packages requires: 
nids modules located think should:

code: select all

~> find /usr/local/lib -name nids* /usr/local/lib/python3.4/dist-packages/nidsmodule.cpython-34m.so /usr/local/lib/python2.7/dist-packages/nidsmodule.so 
importing nids in python2 works fine:

code: select all

~> python python 2.7.9 (default, mar  8 2015, 00:52:26) [gcc 4.9.2] on linux2 type "help", "copyright", "credits" or "license" more information. >>> import nids >>> 
when trying import nids in python3 import error saying there no nids module:

code: select all

~> python3 python 3.4.2 (default, oct 19 2014, 13:31:11) [gcc 4.9.1] on linux type "help", "copyright", "credits" or "license" more information. >>> import nids traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named 'nids' >>> 
can problem?

use pip3 install python3 packages.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'