Error name color not defined

asked 2016-08-16 02:24:47 -0500

billyon gravatar image

so i installed simplecv package and when i type import SimpleCV i get an error:

    --------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-4f24337507b9> in <module>()
      1 import pygame
----> 2 import SimpleCV

/usr/local/lib/python2.7/dist-packages/SimpleCV/__init__.py in <module>()
      1 __version__ = '1.3.0'
      2 
----> 3 from SimpleCV.base import *
      4 from SimpleCV.Camera import *
      5 from SimpleCV.Color import *

/usr/local/lib/python2.7/dist-packages/SimpleCV/base.py in <module>()
     19 import colorsys
     20 import logging
---> 21 import pygame as pg
     22 import scipy.ndimage as ndimage
     23 import scipy.stats.stats as sss  #for auto white balance

/usr/local/lib/python2.7/dist-packages/SimpleCV/pygame/__init__.py in <module>()
    101 from pygame.surflock import *
    102 from pygame.color import *
--> 103 Color = color.Color
    104 __version__ = ver
    105 

NameError: name 'color' is not defined

how can i fix this? also im using python 2.7 and the jupyter notebook(but i get the same error when running in terminal)

edit retag flag offensive close merge delete