I follow this page to install python SDK on raspberry pi 3. When i run "import naoqi" for Checking the installation of the Python SDK, I see this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "naoqi.py", line 7, in <module>
import qi
File "qi/__init__.py", line 72, in <module>
from _qi import Application as _Application
ImportError: ./_qi.so: cannot open shared object file: No such file or directory
I think i maybe set wronge path in this code:
export PYTHONPATH=${PYTHONPATH}:/path/to/python-sdk
My question is, what is /path/to/python-sdk ?
I set once this path:export PYTHONPATH=${PYTHONPATH}:/usr/include/python2.7 , and once set this path: export PYTHONPATH=${PYTHONPATH}:/home/nao/Downloads/Python-2.7.12
but i see that error again.
How must i do?
/path/to/python-sdk would be the absolute path to where you extracted pynaoqi-python-2.7-naoqi-x.x-linux32.tar.gz that you have to download.
Related
I am calling .py file from node.js using npm i cmd-node on windows it is working well and executing my .py file from .js file, but when I am deploying it on the server giving following error:
Note: I am not importing parse anywhere, it may be part if any dependency.
python script cmd error: Error: Command failed: python covert_to_csv.py
Traceback (most recent call last):
File "covert_to_csv.py", line 1, in <module>
import tabula
File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/__init__.py", line 3, in <module>
from .wrapper import (
File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/wrapper.py", line 20, in <module>
from .file_util import localize_file
File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/file_util.py", line 3, in <module>
from urllib.parse import urlparse as parse_url
ImportError: No module named parse
You are probably using different versions of python on your local machine compared to the server. Make sure it is the same version as your local machine and it'll work.
Im trying to figured out this problem. Yesterday I installed PyScripter and since then, scripts doesnt work. When I run any script (in PyScripter or IDLE) and trying to "import arcpy", it gets this error:
import arcpy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import arcpy
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\__init__.py", line 17, in <module>
from geoprocessing import gp
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\__init__.py", line 14, in <module>
from _base import *
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 14, in <module>
import arcgisscripting
File "C:\Python26\ArcGIS10.0\lib\arcgisscripting.py", line 81, in <module>
from RuntimeError import RuntimeError
ImportError: No module named RuntimeError
Have somebody any suggestion how to fix it?
Thanks to all very much!
Sounds like the module is not installed properly (or at all). To verify, do the following:
open a shell and start the python shell by typing python
(If this doesn't display an error, check that python is added to your system path or if it is even installed at all. But if you've used Python on said machine maybe system path issue)
enter the commmand help('modules')
review the list of modules that's returned to see whether arcpy is included
if not, then you may have to reinstall the module
I run Ubuntu and I followed all the instructions found here link ..
Where I try to test the fst library I get this error
>>> import fst
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/fst/__init__.py", line 1, in <module>
from fst._fst import EPSILON, EPSILON_ID, SymbolTable,\
ImportError: libfst.so.1: cannot open shared object file: No such file or directory
>>>
Sounds like the loader isn't looking for libraries in /usr/local/lib. Add that directory to your loader config in /etc/ld.so.conf* and run ldconfig.
I am trying to run a python script which depends on other modules, however I ran into this:
bash-3.2$ PYTHONPATH=/my/path/tables-2.3.1/build/lib.linux-x86_64-2.7/ ./fastcluster.py
Traceback (most recent call last):
File "./fastcluster.py", line 5, in <module>
import tables
File "/my/path/tables-2.3.1/build/lib.linux-x86_64-2.7/tables/__init__.py", line 59, in <module>
from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: libhdf5.so.7: cannot open shared object file: No such file or directory
bash-3.2$ ls libhdf5.so.7
libhdf5.so.7
bash-3.2$
No such file or directory libhdf5.so.7 ? But when I 'ls' it, it's there, right in my directory. So what's going on here?
The loader isn't looking there. Either put it in one of the standard locations for libraries, add the directory to the loader configuration, or set $LD_LIBRARY_PATH before running Python.
I have one project in which I have one one matlab code which I have to run tho' Django.
I tried installing Mlabwrap ..But it gives me following error.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mlabwrap.py", line 188, in <module>
import mlabraw
ImportError: No module named mlabraw
I also tried ompc (http://ompc.juricap.com/) but after addpath...it gives me a error...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\ihooks.py", line 407, in import_module
q, tail = self.find_head_package(parent, str(name))
File "C:\Python27\lib\ihooks.py", line 479, in find_head_packag
raise ImportError, "No module named '%s'" % qname
ImportError: No module named 'addpath'
Step 1:
Download the matlabwrap.py module from http://mlabwrap.sourceforge.net/
Step 2:
Copy the folder into your site packages folder ie. C:\Python26\Lib\site-packages
Step 3:
Using windows? go to start, and open cmd line by typing cmd enter
Step 4: navigate to the aforementioned site packages directory using cd C:\Python26\Lib\site-packages enter
step 5: type python setup.py install
you should see the cmd iterate through the install process
step 6: re-open python and type import matlabwrap - it should import without problems now
I would suggest you to download those modules and put them separately into different folder.
The you can use them in your django app like this:
#settings.py:
sys.path.append("/home/visgean/scripty/pymodules/") # django modules like django_filters
They are obvisously installed wrongly. You can reinstall them or download as I suggested... Anyway it would be nice to know how exactly you installed them...