Skip to content
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

String formatting error in simulate/base_simulator.py #583

Open
mdcleyre opened this issue Dec 19, 2024 · 0 comments
Open

String formatting error in simulate/base_simulator.py #583

mdcleyre opened this issue Dec 19, 2024 · 0 comments

Comments

@mdcleyre
Copy link

in: simulate\base_simulator.py
line 379

if not self._isExecutable(cmd[0]):
            em = f"Error: Did not find executable '", cmd[0], "'."
            em += "       Make sure it is on the PATH variable of your  #operating system."
            raise RuntimeError(em)

The assignment of the string to em is a tuple, and thus not able to add the second line ("Make sure it is on the PATH variable of your operating system.")

solution would be:

if not self._isExecutable(cmd[0]):
            em = f"Error: Did not find executable '{ cmd[0]}'."
            em += "       Make sure it is on the PATH variable of your  #operating system."
            raise RuntimeError(em)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant