-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for perl before loading BioNetGen files #103
Comments
This is really a BioNetGen issue. I recommend posting this to RuleWorld/PyBioNetGen |
Oh, I guess I got the wrong repository; RuleWorld/bionetgen#244 I assume they'll transfer the issue when they get to it. I don't know how responsive BNG is to this sort of thing, so figured I'd go ahead and post it here as a low-priority enhancement in the meantime. |
I could add this here, but I'd prefer not to assume that PyBioNetGen necessarily relies on Perl since they're moving toward a separate BioNetGen library that won't be implemented with Perl. Sanan has been fairly responsive to feedback. |
Fair enough! Let's just go with the filed issue, then, and drop this. |
If perl isn't on the user's system, loading a BioNetGen file will fail with "The system cannot find the file specified". It will appear as if the bionetgen file itself was unable to be found. However, the problem is actually that when BNG initializes itself, it runs a perl command, which thows the FileNotFoundError if perl isn't present. It might be nice to check for the existence of perl before trying to load the file. (As it was, I assumed that the file in question was the bionetgen file, which was not the case.)
The text was updated successfully, but these errors were encountered: