bugpyFormex - Bugs: bug #44021, utils.requireExternal() fails to...

 
 

bug #44021: utils.requireExternal() fails to recognize vmtk

Submitted by:  francesco <francio>
Submitted on:  Fri 16 Jan 2015 08:00:12 AM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Functionality errorStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 26 Jan 2015 03:32:43 PM UTC, comment #4:

Fixed in 4275846

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Fri 16 Jan 2015 10:12:13 AM UTC, comment #3:

Small update. the fuction checkExternal always check for the version, if it is missing, the group of the regular espression is missing and gives error

francesco <francio>
Project Member
Fri 16 Jan 2015 09:54:34 AM UTC, comment #2:

there is no version. that s why it fails.

how do we deal with it?

I tried to change the detection to

francesco <francio>
Project Member
Fri 16 Jan 2015 08:33:58 AM UTC, comment #1:

I can not test or fix this, as I do not have vmtk installed.
Have a look at the detection strain in pyformex/software.py

The first string in the tuple (vmtk --help) is the command that will be executed to test for availability of vmtk. Check that it works, and what its output is.

The second string is a regular expression for extracting the vmtk version from the output. The part in parentheses will match any non-whitespace part. So I suspect the output would be
something like

Maybe this has changed. There also seems to be a TAB in the regex, which is very bad. The regex would better be changed to

The spaces and TAB between 'Usage:' and 'vmtk' are now matching the \s+ part.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Fri 16 Jan 2015 08:00:12 AM UTC, original submission:

Vmtk is installed and work properly also from terminal, but fails to recognize it. How can I fix this?

francesco <francio>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by francio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 26 Jan 2015 03:32:43 PM UTCbverhegStatusNone=>Fixed
      Assigned toNone=>bverheg
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1