ImportError: No module named cv - python

I get this error on running SimpleCV:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/SimpleCV/__init__.py", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/SimpleCV/base.py", line 22, in <module>
ImportError: No module named cv
What could be going wrong? Please suggest..

Just an FYI SimpleCV has a help forum at help.simplecv.org. It looks like python doesn't know where the opencv packages got installed. Doing a sudo easy_install probably won't work. What you need to do is figure out where the cv libraries live on your system, and where python is looking for them and then symbolically linking the two.

Recently, I just set up the environment to study SimpleCV and write the blog to record the steps as SimpleCV environment setup on Mac. Maybe it could help you :)

Related

ImportError: no module named 'smbus2'

I'm using Pymakr on VScode to program a Pycom L01, which is connected to several sensors.
i'm trying to use smbus2 library, but i can't import it.
I created a python virtual enviroment and installed it using 'pip install smbus2', but when i try to upload the sketch, the output is:
Traceback (most recent call last):
File "main.py", line 4, in <module>
File "/flash/lib/bmp280.py", line 3, in <module>
ImportError: no module named 'smbus2'
Pycom MicroPython 1.18.2.r1 [v1.8.6-849-e0fb68e] on 2018-12-08; LoPy with ESP32
Type "help()" for more information.
Someone who can help me?
May be You have not installed smbus2 module. Please install it and import it in your program.
Solved, that was a noob mistake.
The project files were outside the virtual enviroment directory.
oof.

How to solve import CNTK library?

I have problem with linking CNTK library with Anaconda.
My PYTHONPATH: c:\repos\cntk\bindings\python;%PYTHONPATH%
My CNTK_PY_35: C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35
And I have error:
Traceback (most recent call last):
File "C:/Users/szymo/PycharmProjects/ImageClassification/Main.py", line 1, in <module>
import cntk
File "c:\repos\cntk\bindings\python\cntk\__init__.py", line 11, in <module>
from .core import *
File "c:\repos\cntk\bindings\python\cntk\core.py", line 10, in <module>
from . import cntk_py
ImportError: cannot import name 'cntk_py'
Anyone knows how to solve this problem?
Best
As Nikos points, this is very likely due to mixing up of binary installation with the toolkit being built from the sources.
Please try to add something like --with-py36-path=/opt/anaconda/envs/cntk-py36 to your ./configure command options before building CNTK. Please note that you may need to modify the path and Python version according to your setting. The above option is for Arch Linux with Python 3.6 (Anaconda).

d3py installation error - no module named pandas_figure

I have problems installing d3py.
easy_install from https://github.com/mikedewar/d3py/tarball/master says it's all ok, cloning the repo and setup.py'ing say it's all ok as well, Pandas an Numpy works great (I also use Networkxs working good as well), bu when I try to import d3py come this Error:
Traceback (most recent call last):
File "C:\Documents and Settings\whoauser\Desktop\python\sofia\sofia.py", line 2, in <module>
import d3py
File "C:\Python34\lib\site-packages\d3py-0.2.3-py3.4.egg\d3py\__init__.py", line 1, in <module>
ImportError: No module named 'pandas_figure'
Is this a bug in the installation script? Where I can find a working egg?
Do anyone had the same problem?
Thanks
I think you need to install the pandas module for python. Have you done that?

Installing GIS for gis with Python is easy ...? not for me

I really really need your help please. The fact is my problem should seem pretty simple to you.
So I have a macbook with Lion, I use python 3.3. In order to use GDAL for GIS? I downloaded the package on this website, which is recommended everywhere:
http://www.kyngchaos.com/software/frameworks
Then I install it. It is ok, but I cannot import it in my project, here is my error.
When I type import osgeo, I have the following :
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
import osgeo
ImportError: No module named 'osgeo'
I know my path is not good, wherecan I change it ?
Any ideas?

ImportError: No module named gasp is there any file i need to download in order to perform?

im new to python gasp .
im wondering do i need extra add-on module for python so it could work? like a module file or something.
my code that i was just trying to see whether it works:
from gasp import*
begin_graphics(800,600,"My Game",color.YELLOW)
end_graphics()
and it gave me this error:
Traceback (most recent call last):
File "C:\Python32\testing idle codes\GASP", line 1, in <module>
from gasp import*
ImportError: No module named gasp
if is a file that needed to download. please guide me. im using window 7 32bit .
Please see http://dev.laptop.org/pub/gasp/downloads/ for what to get for your platform.

Categories