I am getting the following error when I run my code
Traceback (most recent call last):
File "ros_colour_node.py", line 26, in <module>
from detectron2.engine import DefaultPredictor
File "/home/nvidia/catkin_ws/src/ROS-label-node/detectron2/__init__.py", line 3, in <module>
from .utils.env import setup_environment
File "/home/nvidia/catkin_ws/src/ROS-label-node/detectron2/utils/env.py", line 3, in <module>
from importlib import util
ImportError: cannot import name util
I am using python2.7 to run my code on ROS melodic on jetson xavier NX with ubuntu 18.04.
I have installed the importlib library directly but it cant seem to find the util module.
I am trying to run instance segmentation using ROS on JEtson. I have tried to run the code from the following repo Segmentation
Related
Using anaconda, I had installed python 2.7 and tensorflow 1.0.0 to run the package called DeepNovo.
Then I got following error when I tried to run this python script:
Traceback (most recent call last):
File "deepnovo_main.py", line 15, in module import deepnovo_model
File "/Data2/HJE/DeepNovo/deepnovo_model.py", line 43, in <module>
from tensorflow.python.ops import rnn_cell_impl
ImportError: cannot import name rnn_cell_impl
Anyone any ideas?
You want to include a package. That package already required other package. package name is rnn_cell_impl. Make sure path is correct. You can read python modules packages
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.
I'm trying to import quandl and have downloaded it from Github and unzipped it to C:\Python27\Lib\site-packages\quandl but whenever I run my file "quandltest.py", I get "ImportError: No module named inflection". I then downloaded inflection from Github and saved it to the site-packages folder but still get the following whenever I run the file. I'm using a Python 27 IDLE to import quandl (I get the same error using Pycharm). Anyone have any idea/the same issue?? Thanks! I also do not have access to my command window as it has been disabled by the admin so I cannot pip install.
Traceback (most recent call last):
File "C:/Python27/quandltest.py", line 1, in <module>
import quandl
File "C:\Python27\lib\site-packages\quandl\__init__.py", line 7, in <module>
from .model.database import Database
File "C:\Python27\lib\site-packages\quandl\model\database.py", line 11, in <module>
from quandl.connection import Connection
File "C:\Python27\lib\site-packages\quandl\connection.py", line 5, in <module>
from .util import Util
File "C:\Python27\lib\site-packages\quandl\util.py", line 1, in <module>
from inflection import parameterize
ImportError: No module named inflection
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
I'm trying to install dataplicity in my Raspberry Pi, in order to perform a little home made project of domotics.
Can you help me?
There are two kinds of errors while installation process:
First:
ImportError: cannot import name develop
Second:
ImportError: No module named rc.manager
In order to help you to understand what's going on, I'm posting the coding that cointains the errors:
[....] Starting dataplicity...: dataplicityTraceback (most recent call last):
File "/usr/local/bin/dataplicity", line 2, in <module>
from dataplicity.app import App
File "/usr/local/lib/python2.7/dist-packages/dataplicity/app/__init__.py", line 1, in <module>
from dataplicity.app.app import App
File "/usr/local/lib/python2.7/dist-packages/dataplicity/app/app.py", line 9, in <module>
from dataplicity.client import Client
File "/usr/local/lib/python2.7/dist-packages/dataplicity/client/__init__.py", line 1, in <module>
from .client import Client
File "/usr/local/lib/python2.7/dist-packages/dataplicity/client/client.py", line 7, in <module>
from dataplicity.rc.manager import RCManager
ImportError: No module named rc.manager
This bug has now been fixed in dataplicity v 0.3.9.1. You can update by using:
pip install -U dataplicity
Or running the auto installer again.