You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to run the docker command with the original trending example and got this error:
Traceback (most recent call last):
File "/TikTokApi/trending_example.py", line 1, in
from TikTokApi import TikTokApi
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/init.py", line 1, in
from TikTokApi.tiktok import TikTokApi
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 41, in
class TikTokApi:
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 197, in TikTokApi
ms_tokens: list[str] = None,
TypeError: 'type' object is not subscriptable
this is the docker command i run:
docker run -v /host_path_to_api/examples:/TikTokApi -e ms_token=my_ms_token --rm tiktokapi:latest python3 /TikTokApi/trending_example.py
The text was updated successfully, but these errors were encountered:
Tested locally with trending_example. I just changed the Dockerfile to:
FROM mcr.microsoft.com/playwright:focal
FROM python:3.10-slim
RUN apt-get update && apt-get install -y python3-pip
COPY . .
RUN pip3 install TikTokApi
RUN python3 -m playwright install
RUN playwright install-deps
Try to run the docker command with the original trending example and got this error:
Traceback (most recent call last):
File "/TikTokApi/trending_example.py", line 1, in
from TikTokApi import TikTokApi
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/init.py", line 1, in
from TikTokApi.tiktok import TikTokApi
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 41, in
class TikTokApi:
File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 197, in TikTokApi
ms_tokens: list[str] = None,
TypeError: 'type' object is not subscriptable
this is the docker command i run:
docker run -v /host_path_to_api/examples:/TikTokApi -e ms_token=my_ms_token --rm tiktokapi:latest python3 /TikTokApi/trending_example.py
The text was updated successfully, but these errors were encountered: