Open JustinPrivitera opened 5 months ago
Also add a warning when this case occurs (visit args that appear after -s being eaten by visit)
Traceback (most recent call last):
File "/usr/gapps/visit/bin/frontendlauncher.py", line 416, in <module>
ret = internallauncher(launcher, visitdir, progname, ver, visitpluginver, visitargs)
File "/usr/gapps/visit/3.4.1/bin/internallauncher", line 3787, in internallauncher
return launcher.Launch()
File "/usr/gapps/visit/3.4.1/bin/internallauncher", line 3575, in Launch
args = submitter.CreateCommand(args, debugger)
File "/usr/gapps/visit/3.4.1/bin/internallauncher", line 153, in CreateCommand
parcmd = parcmd + [self.PPNArgument(), self.PPN()]
File "/usr/gapps/visit/3.4.1/bin/internallauncher", line 77, in PPN
return str(int(math.ceil(float(self.parallel.np) / float(self.parallel.nn))))
TypeError: float() argument must be a string or a number, not 'NoneType'
moving -nn 1
before the script name doesn't work.
-nn
itself is broken.
^C[harrison37@zeliak ascent-checkout (task/2024_07_tutorial_updates)]$ visit -nowin -nn 1 -cli
Running: cli3.4.1 -nowin -engineargs -l;mpiexec;-nn;1 -launchengine localhost
Running: viewer3.4.1 -nowin -noint -engineargs -l;mpiexec;-nn;1 -host 127.0.0.1 -port 5600 -launchengine localhost
Traceback (most recent call last):
File "/Users/harrison37/Desktop/VisIt.app/Contents/Resources/bin/frontendlauncher.py", line 416, in <module>
ret = internallauncher(launcher, visitdir, progname, ver, visitpluginver, visitargs)
File "/Users/harrison37/Desktop/VisIt.app/Contents/Resources/3.4.1/bin/internallauncher", line 3787, in internallauncher
return launcher.Launch()
File "/Users/harrison37/Desktop/VisIt.app/Contents/Resources/3.4.1/bin/internallauncher", line 3575, in Launch
args = submitter.CreateCommand(args, debugger)
File "/Users/harrison37/Desktop/VisIt.app/Contents/Resources/3.4.1/bin/internallauncher", line 223, in CreateCommand
parcmd = parcmd + [self.PPNArgument(), self.PPN()]
File "/Users/harrison37/Desktop/VisIt.app/Contents/Resources/3.4.1/bin/internallauncher", line 77, in PPN
return str(int(math.ceil(float(self.parallel.np) / float(self.parallel.nn))))
TypeError: float() argument must be a string or a number, not 'NoneType'
``
Taken from a conversation with a user:
so if you do
visit -nowin -cli -s test.py -nn 1
you'll get an error but if you comment out the-nn
and uncomment the-nodes
incli_args
and then runvisit -nowin -cli -s test.py -nodes 1
then it worksWhat are our thoughts on this? Should we support this case? At the very least it's a pitfall users can run into.