maverickjoy / pepper-tic-tac-toe

Pepper Robot Playing Game Of Tic-Tac-Toe On Real Time With Human
MIT License
14 stars 5 forks source link

Running error #1

Open WwYyFan opened 5 years ago

WwYyFan commented 5 years ago

I encountered an error when I ran app.py,and can you tell me how to fix it?

Traceback (most recent call last):
  File "app.py", line 1, in <module>
    import qi
  File "/home/efun/pepper_test/src/pynaoqi-python2.7-2.1.4.13-linux64/qi/__init__.py", line 72, in <module>
    from _qi import Application as _Application
ImportError: libqipython.so: cannot open shared object file: No such file or directory
maverickjoy commented 5 years ago

You need to install pepper's python sdk naoqi. One can downaload it from softbanks website. If you are working on mac can refer to this https://github.com/maverickjoy/pepper-nao-python-installation-mac

WwYyFan commented 5 years ago

@maverickjoy Thanks for reply,I am using ubuntu16.04,and I have installed pepper's python sdk according to this tutorial.But the error messages still exists.

maverickjoy commented 5 years ago

Just check version compatibility as well it should be in your default lets say python 2.7 site packages

For check just just run python on commandline and then try import naoqi

If it gives error then that means its not installed properly.

For perfect run it should look like this :

screenshot from 2018-12-21 15-15-24

WwYyFan commented 5 years ago

Is this correct? 2018-12-21 17-54-24 2018-12-21 17-54-39

maverickjoy commented 5 years ago

Yeah, this seems to be fine did you try import naoqi after that ?

If not working try this while exporting PYTHON environmental variable.

/pynaoqi/lib/python2.7/site-packages