On 2016-10-05 16:01, priya....@gmail.com wrote:
Hi,
I am new to Python and I am learning it. Need some help. I downloaded
SimpleBool (https://github.com/lujunyan1118/SimpleBool) for simulating Boolean
models. SimpleBool works in Python. I downloaded the Canopy and executed
Boolmutation.py file. Below is the Boolmutation.py file
[snip]
After running this file, I got the following
error:/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py
in <module>()
383 para=ParaParser(sys.argv[1])
384 except:
--> 385 para=ParaParser('mutation.in')
386 simu_mutation(para)
/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py
in ParaParser(ParaFile)
254 } # define parameters
255
--> 256 for each_line in open(ParaFile).readlines():
257 para_name = each_line.split('=')[0].strip()
258 para_value = each_line.split('=')[1].strip()
IOError: [Errno 2] No such file or directory: 'mutation.in'
I can't understand, the problem here. Should I specify anything in the
Boolmutation.py file. Any help would be appreciated
The traceback says what the problem is: """No such file or directory:
'mutation.in'""".
You haven't given it the path to the input file on the command line, so
it's defaulting to 'mutation.in', which it can't find or doesn't exist.
--
https://mail.python.org/mailman/listinfo/python-list