Naoqi python SDK error in raspberry pi during installation - python

import naoqi
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/Downloads/pynaoqi-python2.7-2.1.4.13-linux32/naoqi.py", line 7, in
import qi
File "/home/pi/Downloads/pynaoqi-python2.7-2.1.4.13-linux32/qi/init.py", line 72, in
from _qi import Application as _Application
ImportError: /home/pi/Downloads/pynaoqi-python2.7-2.1.4.13-linux32/_qi.so: cannot open shared object file: No such file or directory
I tried all the things below
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/home/pi/Downloads/pynaoqi-python2.7-2.1.4.13-linux32/
export PYTHONPATH=${PYTHONPATH}:/home/pi/Downloads/pynaoqi-python2.7-2.1.4.13-linux32/
sudo ldconfig -v too
nothing works

the problem because pynaoqi was build for x64/x86 architechture; Raspi's processor is ARM architechture. So it can not work on rasp.

Related

Import cv2 Error in google cloud virtual machine

I am currently trying to run a python script on a GCE virtual machine. However, I keep getting an error when using 'import cv2':
Traceback (most recent call last):
File "train.py", line 12, in <module> from deeplab.datasets import DataSetTrain, DataSetVal
File "/jet/prs/workspace/FYP-Project/Pytorch-Deeplab-master/deeplab/datasets.py", line 10, in <module>
import cv2
File "/jet/prs/workspace/lib/python3.6/site-packages/cv2/__init__.py", line 3, in <module>
from .cv2 import *
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
The problem with this is that I have checked that the directory the file being referenced is present. I have installed and reinstalled cv2, however nothing seems to be working. None of the other modules that i installed using pip have this issue, it seems to only occur with cv2.

How to reinstall or fix Python interpreter for XCode lldb?

I got this message at XCode after deleting some system files.
(lldb) script
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'run_python_interpreter' is not defined
P.S. Had to reinstall XCode, but I've got same message at debugger after reinstalling IDE
Terminal output
$ lldb
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/local/Cellar/python#2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
import weakref
File "/usr/local/Cellar/python#2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
You have a local installation of python on your computer (in /usr/local/Cellar). There's a problem when you have two different pythons on your system; lldb links against /System/Library/Frameworks/Python.framework but that python somehow ends up using the python libraries from your installed copy instead. I saw someone work around this once but I forget if it was by putting their local python last in $PATH or if they un-set their $PYTHONPATH before starting lldb.

Cuckoo xmlrpclib missing while uploading file

I recently set up Cuckoo environment on Arch Linux host with WXPSP3 guest.
When I try to upload file for analysis using submit.py I get the following error:
Traceback (most recent call last):
File "./utils/submit.py", line 23, in <module>
from lib.cuckoo.common.utils import to_unicode
File "/opt/cuckoo/utils/../lib/cuckoo/common/utils.py", line 11, in <module>
import xmlrpclib
ImportError: No module named 'xmlrpclib'
I run out of ideas. Could you help?
J
It works if I run python via python2.7 command so:
# python2.7 ./utils/submit.py <filepath>

Python interface of Caffe: Error in "import caffe"

I'm trying to run Caffe in it's Python interface. I've already run the command make pycaffe in the caffe directory and it worked fine. Now, when I run the command import caffe in the python environment in the terminal (Ubuntu 14.04), I'm getting the following error:
>>> import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pras/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/home/pras/caffe/python/caffe/pycaffe.py", line 11, in <module>
import caffe.io
ImportError: No module named io
I tried to search my computer for 'caffe.io' but couldn't find any file by that name. Any idea why this error is occurring and how to correct it?
You need to add Python Caffe to PYTHONPATH. In your case:
export PYTHONPATH=$PYTHONPATH:/home/pras/caffe/python

openerp 7 in eclipse with pydev run error

I was trying to run openerp in order to develop new modules later. I installed indigo and the pydev plugin 2.7.3 then downloaded from launchpad the server/7.0 web and plugin of openerp , have them in a folder then added them to eclipse as pydev project . now when i try to python run the open-server I have the error message`:
Traceback (most recent call last):
File "/home/az/openerp_backup/openobject-server-7.0/openerp-server", line 6, in <module>
openerp.cli.main()
File "/home/az/openerp_backup/openobject-server-7.0/openerp/cli/__init__.py", line 51, in main
__import__(m)
File "/home/az/openerp_backup/openobject-server-7.0/openerp/modules/module.py", line 133, in load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/home/az/openerp_backup/openobject-server-7.0/openerp/addons/web/__init__.py", line 3, in <module>
import cli
File "/home/az/openerp_backup/openobject-server-7.0/openerp/addons/web/cli/__init__.py", line 1, in <module>
import test_js
File "/home/az/openerp_backup/openobject-server-7.0/openerp/addons/web/cli/test_js.py", line 5, in <module>
import unittest2
ImportError: No module named unittest2
The easiest solution is to install an appropriate python-unittest2 package with
sudo apt-get install python-unittest2

Categories

Resources