-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[INSTALLATION] - Docker Installation ConnectionRefusedError: [Errno 111] Connection refused #883
Comments
I think there might be some issues with downloading playwright-1.21.0-py3-none-manylinux1_x86_64.whl
|
Change |
Thank you for your response; it works!!! Thank you incredibly much. If you don't mind, I have another question... "docker run -v TikTokApi —rm tiktokapi:latest python3 your script.py" I'm not sure what I should replace with "your script.py," do I need to create something to replace it? If so, how should I write the code in that .py file? Thank you for your patienceeee! I attempted to use the codes in the example file. However, it claims that no such file exists. PS E:\Python_codes\TikTok-Api-master> docker run -v TikTokApi --rm tiktokapi:latest python3 user_example.py PS E:\Python_codes\TikTok-Api-master> docker run -v TikTokApi --rm tiktokapi:latest python3 E:\Python_codes\TikTok-Api-master\examples\user |
Because I created myScript.py before I created the container, that's why it says no such file. And I copy and paste the code from the example files into myScript.py. However, when I try to run it, I encounter the following bug:
Thanks for any help |
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
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.
Desktop (please complete the following information):
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
The text was updated successfully, but these errors were encountered: