<div dir="ltr">Hi Jon, <div><br></div><div>That tutorial assumes that you were in a version controlled repository already. If you had to type "git init" then you weren't in an expected state. The purpose of flmake is to enable reproducibility, which for FLASH means that you need to be in your own repo. I am sorry if this was not clear.</div>
<div><br></div><div>Be Well</div><div>Anthony</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 10:15 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_default" style="font-family:arial,helvetica,sans-serif">Hi all,</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've been trying to follow the tutorial for using flmake (<a href="http://flash.uchicago.edu/site/flashcode/user_support/tools4b/usersguide/flmake/index.html" target="_blank">http://flash.uchicago.edu/site/flashcode/user_support/tools4b/usersguide/flmake/index.html</a>) and have run into a number of problems. Most have involved the git_info function in utils.py. The first I tracked it down to the fact that the main directory did not have a branch name, i.e. git branch did not return anything. This is normal if one gets the code via download as I did. I solved that by doing git init, git add, git commit in that directory. Then it failed because in my newly created directory, did not have a branch name.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "/home/jslavin/.local/bin/flmake", line 6, in <module></div>
<div class="gmail_default"> main()</div><div class="gmail_default"> File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/main.py", line 57, in main</div><div class="gmail_default"> rtn = mainfunc(ns, rc)</div>
<div class="gmail_default"> File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/setup.py", line 270, in main</div><div class="gmail_default"> setup_desc(ns, rc)</div><div class="gmail_default">
File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/setup.py", line 255, in setup_desc</div><div class="gmail_default"> desc = {'setup': desc_cmd_metadata()}</div><div class="gmail_default">
File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py", line 299, in desc_cmd_metadata</div><div class="gmail_default"> desc_meta['project_version'] = vc_info(project_dir)</div>
<div class="gmail_default"> File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py", line 87, in vc_info</div><div class="gmail_default"> info = vc_switch[vc_type](d)</div><div class="gmail_default">
File "/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py", line 35, in git_info</div><div class="gmail_default"> branch = re.search('\* (.*?)\s*\n', branch_out).group(1)</div><div class="gmail_default">
AttributeError: 'NoneType' object has no attribute 'group'</div></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">
Really, a tutorial ought to work better than this. I suppose I can get around this in the same way I did with the main directory, though it's not clear that that is the best approach.</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">Jon</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><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>
fax: <a href="tel:%28617%29%20496-7577" value="+16174967577" target="_blank">(617) 496-7577</a> USA<br>________________________________________________________<br>
<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'times new roman', serif"><span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">Anthony Scopatz</span><br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">Post-doctoral Scholar<br></span></font><div><font face="'times new roman', serif"><span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">The FLASH Center for Computational Science</span><br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">Dept. of Astronomy and Astrophysics</span><br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">The University of Chicago</span></font></div>
<div><font face="'times new roman', serif">cell: (512) U2-PU239<br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">office: (</span>773) 834-2705<br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)">fax:(</span>773) 834-3230<br style="color:rgb(34,34,34);font-size:13px;background-color:rgb(255,255,255)"><a href="http://flash.uchicago.edu/" style="color:rgb(17,85,204);font-size:13px;background-color:rgb(255,255,255)" target="_blank">http://flash.uchicago.edu</a></font></div>
</div>