<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Scott,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm glad you got it working. I would just add that for my system, (CentOS 6.6 with anaconda python) I didn't need the second run of "python setup.py". In your case, I guess for some reason the flash module was getting installed in the wrong order.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Jon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 3:08 PM, Scott Feister <span dir="ltr"><<a href="mailto:sfeister@gmail.com" target="_blank">sfeister@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jon,<br><br><i><b>[RESOLVED]</b></i><br>Thanks for your help. Your question spurred a workaround to the problem.<br><br>I'm testing on a single desktop PC with 64-bit Ubuntu 14.04.3 LTS. It is packaged with python 2.7.6. The first time I call "python setup.py --install" it returns an error (see below). After nosing around on my machine a little more, I resolved my issue; I needed to run "python setup.py install --user" twice in a row, and then add "~/.local/bin" to my user path.<br><br><b>Below are some flmake startup instructions for future users (Ubuntu 14.04.3 LTS, FLASH 4.3):</b><br><b>1.</b> Unzip the FLASH 4.3 tarball.<br><b>2.</b> Navigate into the tools folder: "cd tools"<br><b>3.</b> Run "python setup.py install --user"; it does some work and then (in my case) returns an error:<br></div><div><i>running install<br>[SNIP]<br>running install_egg_info<br>Writing /home/joeblow/.local/lib/python2.7/site-packages/flash-0.1.egg-info<br>Traceback (most recent call last):<br> File "setup.py", line 207, in <module><br> run_setup()<br> File "setup.py", line 199, in run_setup<br> make_bash_completion()<br> File "setup.py", line 118, in make_bash_completion<br> import flash.flmake.__init__<br>ImportError: No module named flash.flmake.__init__<br></i><br><b>4.</b> Run "python setup.py install --user" a second time and it returns no error:<br><i>running install<br>[SNIP]<br>For bash-completion please add the following lines to your ~/.bashrc:<br># Enable completion for flmake<br>if [ -f /home/joeblow/.local/lib/python2.7/site-packages/flash/flmake/flmake ] ; then <br> source /home/joeblow/.local/lib/python2.7/site-packages/flash/flmake/flmake<br>fi</i><br><br><b>5.</b> The executable "flmake" is now installed into "~/.local/bin". Copy and paste the suggested text (replace <i>joeblow</i> with your username) to the bottom of ~/.bashrc, <b>along with adding "~/.local/bin" to your path </b>(if it is not already on your path):<br><i>if [ -f /home/joeblow/.local/lib/python2.7/site-packages/flash/flmake/flmake ] ; then <br> source /home/joeblow/.local/lib/python2.7/site-packages/flash/flmake/flmake<br>fi<br>export PATH=$PATH:/home/joeblow/.local/bin<br></i><br><b>6.</b> Restart the terminal to reload your bash profile. From here, you can follow the <a href="http://flash.uchicago.edu/site/flashcode/user_support/tools4b/usersguide/flmake/index.html" target="_blank">flmake user's guide</a>. The above steps worked if 1)"flmake" + TAB now autocompletes with "flmake setup" "flmake build", etc., and 2) calling "flmake setup Sedov -auto" returns several lines, hopefully followed by "SUCCESS" (and, if you have not set up git, a warning about version control).<br><br><b>7.</b> Of course, you will have to resolve all of FLASH's dependencies (per the <a href="http://flash.uchicago.edu/site/flashcode/user_support/" target="_blank">FLASH user's guide</a>), change the Makefile.h, etc. before attempting any real simulations. (Shoot me an email, <a href="mailto:sfeister@gmail.com" target="_blank">sfeister@gmail.com</a>, if you want tips for this on Ubuntu.)<br><br>Best,<br><br>Scott<br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 8:23 AM, Slavin, Jonathan <span dir="ltr"><<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hi Scott,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">What happens when you do "python setup.py install --user" in the tools directory? How is python installed on your system? Also, what's your operating system/distribution.</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Jon</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 4:22 PM, Scott Feister <span dir="ltr"><<a href="mailto:sfeister@gmail.com" target="_blank">sfeister@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jon, Roman, and the greater community,<br><br>Does anybody know the full sequence of steps for getting flmake working on a fresh installation? The "cd tools; python setup.py install --python" step from the webpage does not seem to suffice in getting it up and running on my machine. The setup instructions for FLASH were <i>very </i>good and I got FLASH working in "no time", but I<i> </i>cannot get flmake to run at all for the life of me. Are there more detailed setup instructions somewhere that I am missing?<br><br></div><div>My impression from talking with people and looking at old user forum discussions is that flmake development is basically on hold, but that it still should work (and could be very useful) with the right setup in FLASH 4.3. In any case, given the support status it would probably be helpful to temper this line in the <a href="http://flash.uchicago.edu/site/flashcode/user_support/tools4b/usersguide/flmake/index.html" target="_blank">manual</a>: "It is highly recommended that both
novice and advanced users adopt flmake as it enables reproducible research while
simultaneously making FLASH easier to use." Kind of confusing for a new user!<br><br></div><div>Best,<br><br></div>Scott (Ohio State)<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 8:33 AM, Slavin, Jonathan <span dir="ltr"><<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div style="font-family:arial,helvetica,sans-serif">Hi Roman,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Yes, I did copy the source simulation tree before running. setup. I found out a while back that I needed to do that otherwise my changes didn't get picked up. I do like flmake, especially for the ease of separating runs and tracking changes. It's too bad that it doesn't seem to be supported currently.</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Jon</div><span><br><div class="gmail_quote">On Sun, Aug 30, 2015 at 1:00 PM, <span dir="ltr"><<a href="mailto:flash-users-request@flash.uchicago.edu" target="_blank">flash-users-request@flash.uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">Btw, I'm not sure how you use flmake now, but the preferred work-flow<br>
with flmake would be to to make a copy of the simulation directory<br>
(e.g. $FLASH_SOURCE/source/Simulation/SimulationMain/Sedov) under<br>
./simulations/Sedov in your working directory, before running setup.<br>
This way all subsequent changes of the source files occur locally and<br>
not under the FLASH tree.</div></blockquote></div><br><br><br clear="all"><span><font color="#888888"><div><br></div></font></span></span><span><font color="#888888"><span>-- <br><div><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a> 60 Garden Street, MS 83<br>phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a> Cambridge, MA 02138-1516<br>cell: <a href="tel:%28781%29%20363-0035" value="+17813630035" target="_blank">(781) 363-0035</a> USA<br>________________________________________________________<br><br></div></div></div></div>
</span></font></span></div></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br></font></span></div><span><font color="#888888">
</font></span></div></div></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a> 60 Garden Street, MS 83<br>phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a> Cambridge, MA 02138-1516<br>cell: <a href="tel:%28781%29%20363-0035" value="+17813630035" target="_blank">(781) 363-0035</a> USA<br>________________________________________________________<br><br></div></div></div></div>
</font></span></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a> 60 Garden Street, MS 83<br>phone: (617) 496-7981 Cambridge, MA 02138-1516<br>cell: (781) 363-0035 USA<br>________________________________________________________<br><br></div></div></div></div>
</div>