Great! Is GNOME the preferred image viewer? eog command works, just wanted to 
be sure.

Thanks again for everything, guys!

Nic

Sent from my HTC phone.

----- Reply message -----
From: "Michael Joyce" <jo...@apache.org>
To: "nic pederson" <nicpeder...@gmail.com>
Cc: "dev@climate.apache.org" <dev@climate.apache.org>, 
"chris.a.mattm...@nasa.gov" <chris.a.mattm...@nasa.gov>
Subject: New Student - Caltech-JPL Summer School on Big Data Analytics - Need 
Help Setting up OCW
Date: Wed, Jan 14, 2015 12:09 PM

Perfect. Looks like it ran well. There should be an image in that examples 
folder now. Thanks for sticking with it Nic! I'm glad we got it working for you 
finally.
-- Joyce



On Wed, Jan 14, 2015 at 12:06 PM, nic pederson <nicpeder...@gmail.com> wrote:
pastebin.com/aP5LBCEb
On Jan 14, 2015 11:43 AM, "Michael Joyce" <jo...@apache.org> wrote:Yay, it 
worked. This is what we were looking for
(ocw)nic@nic-Lenovo-IdeaPad-Z400-Touch:~/basemap-1.0.7$ python
Python 2.7.6 |Anaconda 1.9.2 (64-bit)| (default, Jan 17 2014, 10:13:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpl_toolkits.basemap import Basemap
>>> exit()


That's perfect. Try running the example that failed for you earlier and see if 
it works now. We're getting close!

-- Joyce



On Wed, Jan 14, 2015 at 11:39 AM, nicpeder...@gmail.com <nicpeder...@gmail.com> 
wrote:
pastebin.com/JHzqPDXX

I pasted as much as possible. 

Sent from my HTC phone.

----- Reply message -----
From: "Michael Joyce" <jo...@apache.org>
To: "nic pederson" <nicpeder...@gmail.com>
Cc: "dev@climate.apache.org" <dev@climate.apache.org>, 
"chris.a.mattm...@nasa.gov" <chris.a.mattm...@nasa.gov>
Subject: New Student - Caltech-JPL Summer School on Big Data Analytics - Need 
Help Setting up OCW
Date: Wed, Jan 14, 2015 11:17 AM

Lots of text is good, or at least better than what we were getting =D

Let's check to see if it actually did install with:


python
from mpl_toolkits.basemap import Basemap



If that imports correctly then we're good. If it didn't then I'll have to look 
out the output from the install command to see where it died.


If the above does work try running one of the examples so we can see if we 
managed to fix everything.

-- Joyce



On Wed, Jan 14, 2015 at 11:12 AM, nic pederson <nicpeder...@gmail.com> wrote:
That seemed to work :) there was a massive dump of copying going on. I didn't 
see any errors. The last line run was
customize UnixCCompiler
..Ok, I guess I should test the samples, but I'll wait for you to advise.
On Jan 14, 2015 10:58 AM, "Michael Joyce" <jo...@apache.org> wrote:Actually I 
lied, I do have an idea. I just spoke with one of my coworkers who pointed out 
something to me.
We're running "python setup.py install" as sudo, which means that we're 
probably ending up with roots python. Try the following:













sudo /home/nic/climate/anaconda/bin/python setup.py install 




And let me know if that helps.

-- Joyce



On Wed, Jan 14, 2015 at 10:46 AM, Michael Joyce <jo...@apache.org> wrote:

Sigh, that is thoroughly confusing. I will try to replicate this when I have 
some free time then. What version of Ubuntu are you using at the moment? And 
what version of the code base are you using (0.4 or did you grab the latest 
from master)?
In the mean time, you might consider trying the VM to get everything installed 
and running in an isolated environment for you. I'm really not sure what to 
attempt at this point because I don't really know why it wouldn't be finding 
numpy in that situation. There must be some config problem somewhere but I 
can't for the life of me figure out what it might be.

Sorry I don't have better news. Maybe someone else on here will have some 
insight where I don't.


-- Joyce



On Wed, Jan 14, 2015 at 10:21 AM, nic pederson <nicpeder...@gmail.com> wrote:

pastebin.com/kneXbeUJ


On Jan 14, 2015 10:17 AM, "Michael Joyce" <jo...@apache.org> wrote:
Type
exit() and then enter

or control+D

You're just stuck in the Python REPL.


-- Joyce



On Wed, Jan 14, 2015 at 10:15 AM, nic pederson <nicpeder...@gmail.com> wrote:

My command line starts with ">>>"
How do I get out of that?

On Jan 14, 2015 9:53 AM, "Michael Joyce" <jo...@apache.org> wrote:
Hrm ok. Good sign that we can import numpy. However, it makes no sense that we 
end up with an import error. Try running the install command again and see what 
happens. Make sure you don't do it in a new terminal or anything. So do:
which python
sudo python setup.py install

from the basemap folder and post the output again if you could.


-- Joyce



On Wed, Jan 14, 2015 at 9:39 AM, nic pederson <nicpeder...@gmail.com> wrote:

pastebin.com/dDB1PVCz
On Jan 14, 2015 9:31 AM, "Michael Joyce" <jo...@apache.org> wrote:
No problem. So to elaborate a bit for you. The problem that killed the install 
when you ran it with sudo was
"ImportError: No module named numpy"


So when it tried to run setup.py something somewhere tried to import the numpy 
library. Numpy is one of the OCW dependencies and one of the packages installed 
with Anaconda. So, if it was using the Anaconda Python it seems weird that it 
wouldn't be able to import numpy. This is why I thought it wasn't using the 
Anaconda Python and had you check that. However, `which python` seems to 
indicate that isn't the case. So to confirm that we aren't crazy, run these 3 
commands:

which python
python
import numpy

If that last command fails then it's time for us to be confused =)

Hopefully that helps!


-- Joyce



On Wed, Jan 14, 2015 at 9:21 AM, nic pederson <nicpeder...@gmail.com> wrote:

I'm not sure I know what you mean by that. How do I run python and import 
bumpy? I apologize for my command line naivety. 
Nic

On Jan 14, 2015 9:10 AM, "Michael Joyce" <jo...@apache.org> wrote:
And if you run python and import numpy it does or doesn't fail? If it's 
pointing to the Anaconda python when you ran the other command I'm not really 
sure why it would fail on a numpy import =/


-- Joyce



On Wed, Jan 14, 2015 at 8:57 AM, nicpeder...@gmail.com <nicpeder...@gmail.com> 
wrote:

Output of which python is 

/home/nic/climate/anaconda/bin//python


Sent from my HTC phone.

----- Reply message -----
From: "Michael Joyce" <jo...@apache.org>
To: "nic pederson" <nicpeder...@gmail.com>
Cc: "dev@climate.apache.org" <dev@climate.apache.org>, 
"chris.a.mattm...@nasa.gov" <chris.a.mattm...@nasa.gov>
Subject: New Student - Caltech-JPL Summer School on Big Data Analytics - Need 
Help Setting up OCW
Date: Wed, Jan 14, 2015 8:47 AM



Ok the second one leads me to believe that the wrong Python is getting used. 
Can you check that 'python' really is the anaconda python where numpy would be 
installed? Namely, what is the output of `which python` and can you manually 
run python and import numpy without an error?


-- Joyce



On Wed, Jan 14, 2015 at 8:39 AM, nic pederson <nicpeder...@gmail.com> wrote:

It didn't seem to like it. I also tried with sudo since it gave permission 
errors.
pastebin.com/LDbpgvWu

On Jan 14, 2015 8:29 AM, "Michael Joyce" <jo...@apache.org> wrote:
No it shouldn't matter where it's at. Was mostly just guessing where it might 
be off the top of my head to be honest =)


-- Joyce



On Wed, Jan 14, 2015 at 8:26 AM, nicpeder...@gmail.com <nicpeder...@gmail.com> 
wrote:

The basemap folder is in my home directory. Should I move it first?

Nic

Sent from my HTC phone.

----- Reply message -----
From: "Michael Joyce" <jo...@apache.org>
To: "nicpeder...@gmail.com" <nicpeder...@gmail.com>
Cc: "dev@climate.apache.org" <dev@climate.apache.org>, 
"chris.a.mattm...@nasa.gov" <chris.a.mattm...@nasa.gov>
Subject: New Student - Caltech-JPL Summer School on Big Data Analytics - Need 
Help Setting up OCW
Date: Wed, Jan 14, 2015 6:47 AM


Ok, that looks good. GEOS seems to have installed fine.

If you go back into the directory where the install script downloaded basemap 
we can try to do the install again.
It should be something like /path/to/climate/easy-ocw/basemap-1.0.7


Then using the Anaconda Python (be sure to check and make sure it's not the 
system Python or the virtualenv Python with `which python`) run:
python setup.py install



Then try the above basemap import to check the install. Go ahead and post the 
install output here as well in case we need to debug something.





-- Joyce



On Tue, Jan 13, 2015 at 2:36 PM, nicpeder...@gmail.com <nicpeder...@gmail.com> 
wrote:


Basemap test - output.

pastebin.com/rrAzxHMu

Nic




----- Reply message -----
From: "Michael Joyce" <jo...@apache.org>
To: "nic pederson" <nicpeder...@gmail.com>
Cc: "dev@climate.apache.org" <dev@climate.apache.org>, 
"chris.a.mattm...@nasa.gov" <chris.a.mattm...@nasa.gov>
Subject: New Student - Caltech-JPL Summer School on Big Data Analytics - Need 
Help Setting up OCW
Date: Tue, Jan 13, 2015 1:04 PM




So, semi-good news is that you're helping me find some small bugs in the 
install script but unfortunately they're not what's causing your problem =)
However, I also realized that I told you something wrong earlier. I told you to 
run

sudo echo "export PATH=\"

Reply via email to