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: installation went ok both python2 , python3 far can tell: nids modules located think should: importing nids in python2 works fine: when trying import nids in python3 import error saying there no nids module: can problem?
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
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:
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
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 >>>
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' >>>
use pip3 install python3 packages.
raspberrypi
Comments
Post a Comment