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

docker模式运行错误 #242

Open
vtroisWhite opened this issue Dec 18, 2023 · 0 comments
Open

docker模式运行错误 #242

vtroisWhite opened this issue Dec 18, 2023 · 0 comments

Comments

@vtroisWhite
Copy link

已经按照[文档]配置docker-compose:

version: "3.7"
services:
  epic-games-claimer:
    image: ech0sec/awesome-epic:fish
    init: true
    command: "python3 claim.py"
    volumes:
      - "/home/epic/user_data_dir:/home/epic/user_data_dir"
      - "/home/epic/logs:/home/epic/logs"
    environment:
      EPIC_EMAIL: "xxx@gmail.com"
      EPIC_PASSWORD: "123456"

运行日志:

2023-12-18 09:16:25 | INFO    | __main__:stash:131 | run - {'image': '20231121', 'version': '0.10.1.post1', 'role': 'EpicPlayer', 'headless': True}
2023-12-18 09:17:12 | INFO    | __main__:claim_epic_games:97 | Try to flush cookie - {'task': 'claim_epic_games'}
2023-12-18 09:17:37 | INFO    | epic_games.agent:_login:237 | login-with-email - {'url': 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=https://store.epicgames.com/en-US/free-games'}
2023-12-18 09:17:51 | DEBUG    | epic_games.agent:insert_challenge:215 | Attack challenge - {'stage': 'email_exists_prod'}
2023-12-18 09:17:59 | DEBUG    | hcaptcha_challenger.agents.playwright.control:_parse_label:241 | get task - {'prompt': 'Can you please choose each picture of something used to make music?'}
2023-12-18 09:18:37 | ERROR    | __main__:run:158 | An error has been caught in function 'run', process 'MainProcess' (7), thread 'MainThread' (139927058164608): - {}
Traceback (most recent call last):
  File "/home/epic/src/claim.py", line 162, in <module>
    asyncio.run(run())
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
> File "/home/epic/src/claim.py", line 158, in run
    await agent.stash()
  File "/home/epic/src/claim.py", line 151, in stash
    await self.claim_epic_games(context)
  File "/home/epic/src/claim.py", line 98, in claim_epic_games
    if await epic.authorize(page):
  File "/home/epic/src/epic_games/agent.py", line 260, in authorize
    match await self._login(page):
  File "/home/epic/src/epic_games/agent.py", line 244, in _login
    await insert_challenge(stage="email_exists_prod")
  File "/home/epic/src/epic_games/agent.py", line 217, in insert_challenge
    result = await self._solver.execute(window=stage)
  File "/usr/local/lib/python3.10/site-packages/hcaptcha_challenger/agents/playwright/control.py", line 642, in execute
    await self._catch_all_binary_challenge(frame_challenge)
  File "/usr/local/lib/python3.10/site-packages/hcaptcha_challenger/agents/playwright/control.py", line 471, in _catch_all_binary_challenge
    model = register_pipline(self.modelhub)
  File "/usr/local/lib/python3.10/site-packages/hcaptcha_challenger/components/zero_shot_image_classifier.py", line 77, in register_pipline
    t_net = modelhub.match_net(textual_model, install_only=install_only)
  File "/usr/local/lib/python3.10/site-packages/hcaptcha_challenger/onnx/modelhub.py", line 468, in match_net
    net = self.active_net(focus_name)
  File "/usr/local/lib/python3.10/site-packages/hcaptcha_challenger/onnx/modelhub.py", line 429, in active_net
    net = onnxruntime.InferenceSession(
  File "/usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
  File "/usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 452, in _create_inference_session
    sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from /usr/local/lib/python3.10/site-packages/hcaptcha_challenger/onnx/models/textual_CLIP_RN50.openai.onnx failed:std::bad_alloc
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