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

[Feature Request]: Working on Mac #597

Open
Bender-V opened this issue Mar 31, 2024 · 16 comments
Open

[Feature Request]: Working on Mac #597

Bender-V opened this issue Mar 31, 2024 · 16 comments
Labels
enhancement New feature or request

Comments

@Bender-V
Copy link

What would your feature do?

How do I run this project on a Mac?

@Bender-V Bender-V added the enhancement New feature or request label Mar 31, 2024
@singersbalm
Copy link
Contributor

singersbalm commented Mar 31, 2024

  1. Press power button to start Mac
  2. Login with password
  3. Open the terminal
  4. Git clone the repo
  5. Cd into project
  6. Follow the installation guide
  7. Follow the instructions in the readme the run the project

@Bender-V
Copy link
Author

Docket

[batch] Running in batch mode
ERROR: [batch] Exception: No input image was supplied. Use -i <image_path>

@singersbalm
Copy link
Contributor

I'm sorry what do you expect me to answer on that. The error message describes the issue and how to fix it: "No input image was supplied. Use -i <image_path>"

@eren-ay
Copy link

eren-ay commented Apr 1, 2024

I use it on both mac and windows, it's exactly the same.
pip install -r requirements.txt
pip install git+https://github.com/kodalli/pydensecrf.git
create a image folder in the manga_translator
write python -m manga_translator -v --translator=google -l ENG -i
./manga_translator/

@Bender-V
Copy link
Author

Bender-V commented Apr 8, 2024

I downloaded docker, installed everything. When I run it, I get an error.

[batch] Running in batch mode
ERROR: [batch] Exception: No input image was supplied. Use -i <image_path>

@singersbalm
Copy link
Contributor

singersbalm commented Apr 8, 2024

I recommend reading the error. Translating it with google translate to a language you are able to speak will probably help. For further infos look at the readme. These are the possible args https://github.com/zyddnys/manga-image-translator#options

There is no issue with the installation and it seems to work as intended

@eren-ay
Copy link

eren-ay commented Apr 8, 2024

You don't need to install with docker just go terminal
git clone https://github.com/zyddnys/manga-image-translator.git
cd manga-image-translator
pip install -r requirements.txt
pip install git+https://github.com/kodalli/pydensecrf.git
python -m manga_translator -v --translator=google -l ENG -i

i don't recommend google translate you can use sugoi or chatgpt

@singersbalm
Copy link
Contributor

@eren-ay always use venv or conda

docker is usually easier to install. I think the issue was created because he can’t speak English and therefore does not understand the instructionsY of no -I is given in batch mode it won’t work on end operating system.

@Bender-V
Copy link
Author

You don't need to install with docker just go terminal git clone https://github.com/zyddnys/manga-image-translator.git cd manga-image-translator pip install -r requirements.txt pip install git+https://github.com/kodalli/pydensecrf.git python -m manga_translator -v --translator=google -l ENG -i

i don't recommend google translate you can use sugoi or chatgpt

Thanks, it worked.
Help me, how do I set up gpt?
I have a key, but it is not readable by the script.

@singersbalm
Copy link
Contributor

Define the Env variable. Read the readme!!!

@Bender-V
Copy link
Author

Define the Env variable. Read the readme!!!

I created a file called API key.env
I put it in the folder
manga-image-translator
I run the command
python3 -m manga_translator -v --translator=gpt3 -l
I get an ERROR: [batch] MissingAPIKeyException: Please set the OPENAI_API_KEY environment variable before using the chatgpt translator.
Traceback (most recent call last):

@singersbalm
Copy link
Contributor

singersbalm commented Apr 13, 2024

With read the docs I meant read the god damn docks. There are examples for basic stuff like this. docker run --env="DEEPL_AUTH_KEY=xxx" --ipc=host --rm zyddnys/manga-image-translator:main <cli flags>.
Even if it isn't in the docs wouldn't it be easier to use a search engine or chat gpt?
https://duckduckgo.com/?q=define+env+variable+operating+system

btw Dotenv files aren't meant to have a prefix & the application needs to have dotenv support which this project does not!

@Bender-V
Copy link
Author

@eren-ay I'm sorry, I don't understand.
I'm working with python, not docker.
What command do I need to add
python -m manga_translator -v --translator=gpt4 -l ENG -I
To translate through GPT?

@singersbalm
Copy link
Contributor

Stbu

@singersbalm
Copy link
Contributor

BTW this question is a duplicate & not related to python or this project

@eren-ay
Copy link

eren-ay commented Apr 26, 2024

@Bender-V you don't need key.env
path ./manga_translator/translators/keys.py
in this file
change OPENAI_API_KEY = os.getenv('OPENAI_API_KEY', 'change here')
sorry for my late answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants