nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
352 stars 26 forks source link

BUG: error importing ivisual #40

Closed bendichter closed 9 years ago

bendichter commented 9 years ago

just installed the full 3.5 version, tried from ivisual import *, and got this response

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-7-950a9755197e> in <module>()
----> 1 from ivisual import *
      2 from math import *

/Applications/Pineapple-Pro.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ivisual/__init__.py in <module>()
----> 1 from .visual import *

/Applications/Pineapple-Pro.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ivisual/visual.py in <module>()
      1 from __future__ import print_function, division, absolute_import
----> 2 import ivisual.crayola as color
      3 import ivisual.materials
      4 import numpy as np
      5 from array import array

AttributeError: module 'ivisual' has no attribute 'crayola'
nwhitehead commented 9 years ago

I get that same error; I think there is a bug in IVisual in the way it does imports. I haven't done much with Python 3.5 so I need to do research on this one.

nwhitehead commented 9 years ago

I updated my fork of IVisual to use the "six" module to paper over some python3.5 issues in the code. It seems to be working now on my system (fingers crossed). Should be fixed in the next release.