RuleWorld / bionetgen

Rule-based modeling framework
https://bionetgen.org/
MIT License
56 stars 25 forks source link

Python could be clearer about lack of perl #244

Closed luciansmith closed 2 years ago

luciansmith commented 2 years ago

When you load a file using the python bindings with

bionetgen.bngmodel(bngl_filename)

If perl is not installed and runnable via the command line, you get the error (on Windows):

FileNotFoundError: [WinError 2] The system cannot find the file specified

However, the 'file specified' in question is perl, not bngl_filename. This caused me no end of confusion until I stepped through the code to find where the error was actually generated.

jonrkarr commented 2 years ago

I think this error may specifically apply to PyBioNetGen. Also reported as RuleWorld/PyBioNetGen#41.

jrfaeder commented 2 years ago

Thanks @jonrkarr for raising this as a PyBNG issue. Closing here as it's not within bionetgen codebase.