Skip to content

[INSTALLATION] - Docker Installation ConnectionRefusedError: [Errno 111] Connection refused #883

Open
@Hy77

Description

@Hy77

Hi all, I'm new to Python, so if my problem statement is unclear, please let me know and I'll do my best to explain it thoroughly. Thank you for any assistance.

Describe the error

ERROR [5/5] RUN python -m playwright install

The buggy code

PS E:\Python_codes\TikTok-Api-master> docker build . -t tiktokapi:latest
[+] Building 387.8s (9/9) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/playwright:focal 0.0s
=> [1/5] FROM mcr.microsoft.com/playwright:focal 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 12.35kB 0.0s
=> CACHED [2/5] RUN apt-get update && apt-get install -y python3-pip 0.0s
=> [3/5] COPY . . 0.0s
=> [4/5] RUN pip3 install TikTokApi 387.1s
=> ERROR [5/5] RUN python -m playwright install 0.5s

[5/5] RUN python -m playwright install:
#9 0.530 /bin/sh: 1: python: not found


executor failed running [/bin/sh -c python -m playwright install]: exit code: 127

Error Trace (if any)

Put the error trace below if there's any error thrown.

# Error Trace Here

Desktop (please complete the following information):

  • OS: [Windows 10]
  • TikTokApi Version [5.1.1]

Additional context

pip install TikTokApi & python -m playwright install both were working properly
But when I'm trying to run "docker build . -t tiktokapi:latest", it seems like can not run RUN python -m playwright install" properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    installation_helpSomeone is having problems installing the api

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions