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

The program has returned exit code 255. on Mac #3

Closed
Ruiqi-Hu opened this issue Oct 11, 2018 · 7 comments
Closed

The program has returned exit code 255. on Mac #3

Ruiqi-Hu opened this issue Oct 11, 2018 · 7 comments

Comments

@Ruiqi-Hu
Copy link

Hi,
Thanks for the beautiful work.
However, it does not work on my Mac.
I have python3 installed and set "python3 /Users/myname/Data/Dicts/google-translate-for-goldendict-master/googletranslate.py zh-CN %GDWORD%" in the GoldenDict.
The error occurred with Query error: The program has returned exit code 255.

I am asking because I noticed that you have set #!/usr/bin/env python3 in the script, which should lead to the python3 as the interpreter to run the code.

Thanks in advance.

@xinebf
Copy link
Owner

xinebf commented Oct 11, 2018

Can you run it in the terminal, for example:

Python3 ./googletranslate.py zh-CN "hello"

@Ruiqi-Hu
Copy link
Author

Yes, it works perfectly in the terminal. However, it just does not work in the Dict.

@xinebf
Copy link
Owner

xinebf commented Oct 11, 2018

Sorry, I don't know what caused the exit error 255.

@xinebf
Copy link
Owner

xinebf commented Oct 11, 2018

By searching exit error 255 there is a reason: If you made error in path to Python executable, you may don't see any error or may see this

@Ruiqi-Hu
Copy link
Author

Problem solved. It was because of the conflict in my development environment. Thanks a lot for the help.

@ghost
Copy link

ghost commented Oct 19, 2020

Problem solved. It was because of the conflict in my development environment. Thanks a lot for the help.

Hi, how do you solved it, I have a same problem on ubuntu.

@MikasaLee
Copy link

Problem solved. It was because of the conflict in my development environment. Thanks a lot for the help.

Hi, how do you solved it, I have a same problem on ubuntu.

me too,but I resolved it。
It was also because of the conflict in my development environment.
my python path : ~/anaconda3/bin/python
so the command line is: ~/anaconda3/bin/python -m googletranslate zh-CN %GDWORD% -s "translate.google.cn"

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

3 participants