|
From: Joe H. <hea...@gm...> - 2011-01-04 20:13:55
|
I'm trying hard to update my classroom MacBooks running 10.5.8 to Python 2.7
and VPython 5.4. However, upon running
from visual import *
sphere()
from VIDLE I get this:
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "Untitled", line 1
from visual import *
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/__init__.py",
line 1
from .visual_all import *
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/visual_all.py",
line 1
from vis import version
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/__init__.py",
line 7
from .primitives import (arrow, cylinder, cone, sphere, box, ring,
label,
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/primitives.py",
line 9
from ttfquery import describe, glyphquery, glyph
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ttfquery/glyph.py",
line 6
import Numeric
ImportError: No module named Numeric
>>>
I've looked through the docs; I'm lost. Anyone else seeing this behavior?
Joe
|
|
From: Bruce S. <Bru...@nc...> - 2011-01-04 20:39:41
|
The code in /ttfquery/glyph.py looks like this:
try:
import numpy as Numeric
except ImportError, err:
import Numeric
So the real problem seems to be that numpy isn't installed, which is
odd, since the VPython installer installs numpy.
Please report what folders you see in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
There should be a numpy folder.
Bruce Sherwood
On Tue, Jan 4, 2011 at 1:13 PM, Joe Heafner <hea...@gm...> wrote:
> I'm trying hard to update my classroom MacBooks running 10.5.8 to Python 2.7
> and VPython 5.4. However, upon running
> from visual import *
> sphere()
> from VIDLE I get this:
> ImportError: numpy.core.multiarray failed to import
> Traceback (most recent call last):
> File "Untitled", line 1
> from visual import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/__init__.py",
> line 1
> from .visual_all import *
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/visual_all.py",
> line 1
> from vis import version
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/__init__.py",
> line 7
> from .primitives import (arrow, cylinder, cone, sphere, box, ring,
> label,
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/primitives.py",
> line 9
> from ttfquery import describe, glyphquery, glyph
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ttfquery/glyph.py",
> line 6
> import Numeric
> ImportError: No module named Numeric
>>>>
> I've looked through the docs; I'm lost. Anyone else seeing this behavior?
> Joe
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>
|
|
From: Joe H. <hea...@gm...> - 2011-01-04 20:44:57
|
On Tue, Jan 4, 2011 at 3:39 PM, Bruce Sherwood <Bru...@nc...>wrote: > The code in /ttfquery/glyph.py looks like this: > > try: > import numpy as Numeric > except ImportError, err: > import Numeric > > So the real problem seems to be that numpy isn't installed, which is > odd, since the VPython installer installs numpy. > > Please report what folders you see in > > > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ > > There should be a numpy folder. > Indeed there is. Joe |
|
From: Bruce S. <Bru...@nc...> - 2011-01-05 00:29:25
|
The next thing is to see whether there is in fact anything inside the numpy folder. Also, in a terminal try this: > python2.7 ... > from numpy import * > arange(4) You should see [0 1 2 3]. This test rules out issues with VIDLE or Visual. I assume these are Intel Macs? Bruce Sherwood On Tue, Jan 4, 2011 at 1:44 PM, Joe Heafner <hea...@gm...> wrote: > On Tue, Jan 4, 2011 at 3:39 PM, Bruce Sherwood <Bru...@nc...> > wrote: >> >> The code in /ttfquery/glyph.py looks like this: >> >> try: >> import numpy as Numeric >> except ImportError, err: >> import Numeric >> >> So the real problem seems to be that numpy isn't installed, which is >> odd, since the VPython installer installs numpy. >> >> Please report what folders you see in >> >> >> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ >> >> There should be a numpy folder. > > > Indeed there is. > Joe |