yt installation on mac
![](https://secure.gravatar.com/avatar/f4a7164d8925d0f66c9bc916b3d077c2.jpg?s=120&d=mm&r=g)
Hello everyone I tried installing yt on my mac (os X 10.6.8) today and I had a failure. The last lines in the log file are: gcc-4.2 -bundle -undefined dynamic_lookup -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/fKDpymodule.o build/temp.macosx-10.4-x86_64-2.7/Forthon.o build/temp.macosx-10.4-x86_64-2.7/fKD.o build/temp.macosx-10.4-x86_64-2.7/fKD_p.o build/temp.macosx-10.4-x86_64-2.7/fKD_source.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2 -lgfortran -o ./fKDpy.so -flat_namespace ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found Cython is a build-time requirement for the source tree of yt. Please either install yt from a provided, release tarball, or install Cython (version 0.16 or higher). You may be able to accomplish this by typing: pip install -U Cython I have cython 0.17 installed on my machine but I'm not sure why it does not recognize it. Any suggestions? Best Ricardo
![](https://secure.gravatar.com/avatar/b279d746f54e2cd6062e8279a767c4bc.jpg?s=120&d=mm&r=g)
Hi Ricardo, On Wed, Oct 17, 2012 at 5:02 PM, Ricardo Fernandez <rfernandez@astro.columbia.edu> wrote:
Hello everyone
I tried installing yt on my mac (os X 10.6.8) today and I had a failure. The last lines in the log file are:
gcc-4.2 -bundle -undefined dynamic_lookup -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -L/Applications/yt-i386/lib/ -L/Applications/yt-i386/lib64/ -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/fKDpymodule.o build/temp.macosx-10.4-x86_64-2.7/Forthon.o build/temp.macosx-10.4-x86_64-2.7/fKD.o build/temp.macosx-10.4-x86_64-2.7/fKD_p.o build/temp.macosx-10.4-x86_64-2.7/fKD_source.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin10/4.6.2 -lgfortran -o ./fKDpy.so -flat_namespace ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found ld: warning: directory '/Applications/yt-i386/lib64/' following -L not found Cython is a build-time requirement for the source tree of yt. Please either install yt from a provided, release tarball, or install Cython (version 0.16 or higher). You may be able to accomplish this by typing: pip install -U Cython
I have cython 0.17 installed on my machine but I'm not sure why it does not recognize it. Any suggestions?
The Cython installation needs to be inside the same Python isntallation that yt is using. Inside your new yt-i386 directory (not sure why it's in /Applications ; usually it's supposed to go in your home directory) can you run: bin/pip install -U Cython and report back the output? Is this an old installation you are now upgrading? If so, I'd recommend wiping it out and starting a new if you continue to run into issues. -Matt
Best Ricardo _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
![](https://secure.gravatar.com/avatar/4fe2561e2d9ae4fea28d07f437150466.jpg?s=120&d=mm&r=g)
Hi all, Very simple question. I have yt running on a mac with 10.8, which means it uses xquartz, not x11. When I open up ipython, I can make plots as usual using matplotlib, however if I try to make a slice plot with yt (or a line plot): $ slc = SlicePlot(pf,'z','density') $ slc.show() Nothing happens. Save works. Is there some display setting I can change? Thanks, Kaitlin
![](https://secure.gravatar.com/avatar/7857f26c1ef2e9bdbfa843f9087710f7.jpg?s=120&d=mm&r=g)
Hi Kaitlin, Unfortunately we have yet to implement an interactive window to show() a plot from the command line. It's something I'd like to see - if there are any enterprising yt devs with some knowledge of matplotlib out there, I think adding such a capability would be a nice mini-project. show() will work inside of an ipython notebook, so for now you can try doing it that way. There's a little bit of detail about the notebook in the docs: http://yt-project.org/doc/interacting/ipython_notebook.html Cheers, Nathan On Oct 18, 2012, at 11:27 AM, Kaitlin Kratter wrote:
Hi all,
Very simple question. I have yt running on a mac with 10.8, which means it uses xquartz, not x11. When I open up ipython, I can make plots as usual using matplotlib, however if I try to make a slice plot with yt (or a line plot):
$ slc = SlicePlot(pf,'z','density') $ slc.show()
Nothing happens. Save works. Is there some display setting I can change?
Thanks, Kaitlin
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
![](https://secure.gravatar.com/avatar/b279d746f54e2cd6062e8279a767c4bc.jpg?s=120&d=mm&r=g)
Hi Kaitlin, One quick hint about using the IPython notebook is that if you put this line at the *very* top of your notebook, before you import from yt.mods, it will suppress some printing of progressbars and the like: from yt.config import ytcfg; ytcfg["yt","ipython_notebook"] = "True" As for the other item, I think it would be nice. Anthony has implemented a "save-or-show" command which may be relevant, but having pylab show up is not right now implemented. -Matt On Thu, Oct 18, 2012 at 2:33 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Kaitlin,
Unfortunately we have yet to implement an interactive window to show() a plot from the command line. It's something I'd like to see - if there are any enterprising yt devs with some knowledge of matplotlib out there, I think adding such a capability would be a nice mini-project.
show() will work inside of an ipython notebook, so for now you can try doing it that way.
There's a little bit of detail about the notebook in the docs: http://yt-project.org/doc/interacting/ipython_notebook.html
Cheers,
Nathan
On Oct 18, 2012, at 11:27 AM, Kaitlin Kratter wrote:
Hi all,
Very simple question. I have yt running on a mac with 10.8, which means it uses xquartz, not x11. When I open up ipython, I can make plots as usual using matplotlib, however if I try to make a slice plot with yt (or a line plot):
$ slc = SlicePlot(pf,'z','density') $ slc.show()
Nothing happens. Save works. Is there some display setting I can change?
Thanks, Kaitlin
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (4)
-
Kaitlin Kratter
-
Matthew Turk
-
Nathan Goldbaum
-
Ricardo Fernandez