[FLASH-USERS] trouble with flmake

Slavin, Jonathan jslavin at cfa.harvard.edu
Thu Jun 12 11:15:12 EDT 2014


Hi all,

I've been trying to follow the tutorial for using flmake (
http://flash.uchicago.edu/site/flashcode/user_support/tools4b/usersguide/flmake/index.html)
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.
Traceback (most recent call last):
  File "/home/jslavin/.local/bin/flmake", line 6, in <module>
    main()
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/main.py",
line 57, in main
    rtn = mainfunc(ns, rc)
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/setup.py",
line 270, in main
    setup_desc(ns, rc)
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/setup.py",
line 255, in setup_desc
    desc = {'setup': desc_cmd_metadata()}
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py",
line 299, in desc_cmd_metadata
    desc_meta['project_version'] = vc_info(project_dir)
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py",
line 87, in vc_info
    info = vc_switch[vc_type](d)
  File
"/home/jslavin/.local/lib/python2.7/site-packages/flash/flmake/utils.py",
line 35, in git_info
    branch = re.search('\* (.*?)\s*\n', branch_out).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

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.

Jon

-- 
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
fax: (617) 496-7577            USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20140612/82fefc7e/attachment.htm>


More information about the flash-users mailing list