<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Matt,<div><br></div><div>Yeah. Brian Crosby helped me yesterday. Python 2.7 should be used everywhere as you said. </div><div><br></div><div>I replaced this:</div><div>LOCAL_LIBS_PYTHON  = $(LOCAL_PYTHON_INSTALL)/lib/python2.6/config/libpython2.6.a<br></div><div>with this:</div><div>LOCAL_LIBS_PYTHON = -L$(LOCAL_PYTHON_INSTALL)/lib -lpython2.7<br></div><div><br></div><div>Now it compiles :).</div><div><br></div><div>Thanks!</div><div>Yuan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 9:00 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yuan,<br>
<br>
Looks like it's a simple mistake -- you should be using Python 2.7<br>
everywhere.  :)<br>
<div><div class="h5"><br>
On Wed, May 13, 2015 at 12:49 PM, Yuan Li <<a href="mailto:yuan@astro.columbia.edu">yuan@astro.columbia.edu</a>> wrote:<br>
> Hi all,<br>
><br>
> I am trying to calculate the mass flux through a sphere and modify a<br>
> simulation parameter accordingly. I heard that it is possible to use yt to<br>
> extract information from an Enzo simulation and feed it back to Enzo, but I<br>
> was having a hard time finding an example.<br>
><br>
> Is this where I should start:<br>
> <a href="http://enzo.readthedocs.org/en/latest/user_guide/EmbeddedPython.html" target="_blank">http://enzo.readthedocs.org/en/latest/user_guide/EmbeddedPython.html</a> ?<br>
><br>
> If not, please direct me to the right place. If that is what I should be<br>
> looking at, I am having trouble compiling Enzo with "make python-yes". I<br>
> tried to use the python 2.7 that comes with yt2.x, but got an error message<br>
> related to "architecture x86_64" on my macbook (I am able to compile Enzo<br>
> with python-no). I looked at the example Make.mach.orange.<br>
> LOCAL_INCLUDES_PYTHON is using python2.7, but LOCAL_LIBS_PYTHON is using<br>
> python2.6. I am confused: is that how it is supposed to be done? Do I have<br>
> to install a python2.6 separately?<br>
><br>
><br>
> Thank you!<br>
> Yuan<br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>