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

Fix determining gs_path on Linux. Fixes #66 #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudobash1
Copy link

Fixes #66

When running EasyABC for the first time under Linux, it tries to determine the path to gs from the output of which gs. However, in python3, it returns a bytestring (eg b'/usr/bin/gs\n'). EasyABC is expecting a str. Simply adding .decode() fixes the issue.

As I read the code, the unicode() call is left over from python2 and can be removed.

Tested on Manjaro linux, python3.10.10

Cheers 🍻

When running EasyABC for the first time under Linux, it tries to
determine the path to gs from the output of `which gs`. However, in
python3, it returns a bytestring. EasyABC is expecting a str.  Simply
adding .decode() fixes the issue. The unicode() call is a remnant from
python2 and can be removed.
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

Successfully merging this pull request may close these issues.

confusing initial gs location
1 participant