Hi Johannes

<module 'numpy' from
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.pyc'>

is the result of PATH=$PWD/default/bin:$PATH
PYTHONPATH=$PWD/default/lib/python2.7/site-packages python -c "import
numpy;print
numpy"

and

"ls -l test.numpy/bin/python" gives

lrwxr-xr-x  1 tedkord  staff  7 15 Dec 20:32 test.numpy/bin/python ->
python2

On 15 December 2014 at 11:41, Johannes Ring <[email protected]> wrote:
>
> On Mon, Dec 15, 2014 at 12:29 PM, Jacobson, Clas A          UTSCE
> <[email protected]> wrote:
> > Is this after we run the test.numpy.yaml...
>
> Yes, after "hit build test.numpy.yaml".
>
> > and what are you trying to do here - point to what directory?
>
> I'm trying to see if Ted can import numpy. He couldn't earlier, but it
> should work after setting PATH and PYTHONPATH.
>
> > In that test.numpy directory the python points to the system python -
> not a local copy.
>
> Does test.numpy/bin/python point to /usr/bin/python? Please show the
> output of "ls -l test.numpy/bin/python".
>
> Johannes
>
> > Confused.
> >
> > Clas A. Jacobson
> > Chief Scientist
> > United Technologies Systems & Controls Engineering
> > [email protected]
> > 860.610.7652 (office)
> > 860.830.4151 (mobile)
> >
> >
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On
> Behalf Of Johannes Ring
> > Sent: Monday, December 15, 2014 4:16 AM
> > To: Ted Kord
> > Cc: Jacobson, Clas A UTSCE; [email protected]
> > Subject: Re: [External] Re: [FEniCS] New improved fenics-install.sh
> >
> > On Thu, Dec 11, 2014 at 9:05 PM, Ted Kord <[email protected]> wrote:
> >> Johannes, I just tried your suggestion and got:
> >>
> >> Traceback (most recent call last):
> >>
> >>   File "<string>", line 1, in <module>
> >>
> >> ImportError: No module named numpy
> >>
> >> So, it didn't work for me.
> >
> > Can you instead of
> >
> >   ./test.numpy/bin/python -c "import numpy"
> >
> > try this (in the hashstack directory):
> >
> >   PATH=$PWD/default/bin:$PATH
> > PYTHONPATH=$PWD/default/lib/python2.7/site-packages python -c "import
> numpy;print numpy"
> >
> > Johannes
>


-- 
Best regards,

Theodore
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to