Brannydonowt / autoinsta

Python-Based Automated Instagram Accounts. Create and Grow Instagram Accounts Automatically.
MIT License
21 stars 3 forks source link

docker local build error on since apt-utils is not installed & Failed to build clarifai future emoji on ubuntu 20.04 server #7

Closed bugbounted closed 2 years ago

bugbounted commented 2 years ago

Hi Brannydonowt, after trying to run this docker project on local deploy type on my server , after clone your latest commit d7b8f31 & build with docker cmd get errors bellow : error 1 repeat many time: debconf: delaying package configuration, since apt-utils is not installed

error 2 at the end of build:

Building wheels for collected packages: clarifai, future, emoji
  Building wheel for clarifai (setup.py): started
  Building wheel for clarifai (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33m8nj3o/clarifai/setup.py'"'"'; __file__='"'"'/tmp/pip-install-33m8nj3o/clarifai/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-al4dxjw6
       cwd: /tmp/pip-install-33m8nj3o/clarifai/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for clarifai
  Running setup.py clean for clarifai
  Building wheel for future (setup.py): started
  Building wheel for future (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33m8nj3o/future/setup.py'"'"'; __file__='"'"'/tmp/pip-install-33m8nj3o/future/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4q_k97cd
       cwd: /tmp/pip-install-33m8nj3o/future/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for future
  Running setup.py clean for future
  Building wheel for emoji (setup.py): started
  Building wheel for emoji (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-33m8nj3o/emoji/setup.py'"'"'; __file__='"'"'/tmp/pip-install-33m8nj3o/emoji/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-b8j0ec11
       cwd: /tmp/pip-install-33m8nj3o/emoji/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for emoji
  Running setup.py clean for emoji
Failed to build clarifai future emoji

also full build log is :

root@ubuntu:~# cd autoinsta
root@ubuntu:~/autoinsta# docker build -t autoinsta .
Sending build context to Docker daemon  1.644MB
Step 1/17 : FROM mcr.microsoft.com/playwright:focal
 ---> e3aa83bb92bc
Step 2/17 : ENV FIREFOX_VER 87.0
 ---> Using cache
 ---> c4a34198a461
Step 3/17 : RUN apt-get update && apt-get install -y python3-pip
 ---> Using cache
 ---> c346cf5b086f
Step 4/17 : WORKDIR /
 ---> Using cache
 ---> c30a8af1956b
Step 5/17 : COPY autoinsta/src /autoinsta/src/
 ---> 4bf2bf7746c2
Step 6/17 : COPY autoinsta/cookies /autoinsta/cookies/
 ---> ce31fd0173c9
Step 7/17 : COPY autoinsta/profiles /autoinsta/profiles/
 ---> cd166a3b8e04
Step 8/17 : COPY autoinsta/videos /autoinsta/videos/
 ---> 1cc339737e61
Step 9/17 : RUN apt-get install firefox -y
 ---> Running in b246d0443da8
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libcanberra0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libltdl7 libtdb1
  sound-theme-freedesktop xul-ext-ubufox
Suggested packages:
  fonts-lyx libcanberra-gtk0 libcanberra-pulse
The following NEW packages will be installed:
  firefox libcanberra0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libltdl7 libtdb1
  sound-theme-freedesktop xul-ext-ubufox
0 upgraded, 8 newly installed, 0 to remove and 20 not upgraded.
Need to get 59.0 MB of archives.
After this operation, 236 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 firefox amd64 102.0+build2-0ubuntu0.20.04.1 [58.4 MB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libltdl7 amd64 2.4.6-14 [38.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libtdb1 amd64 1.4.3-0ubuntu0.20.04.1 [44.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 sound-theme-freedesktop all 0.8-2ubuntu1 [384 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libcanberra0 amd64 0.30-7ubuntu1 [38.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libdbusmenu-glib4 amd64 16.04.1+18.10.20180917-0ubuntu6 [41.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libdbusmenu-gtk3-4 amd64 16.04.1+18.10.20180917-0ubuntu6 [27.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 xul-ext-ubufox all 3.4-0ubuntu1.17.10.1 [3320 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 59.0 MB in 1s (72.2 MB/s)
Selecting previously unselected package firefox.
(Reading database ... 40084 files and directories currently installed.)
Preparing to unpack .../0-firefox_102.0+build2-0ubuntu0.20.04.1_amd64.deb ...
Unpacking firefox (102.0+build2-0ubuntu0.20.04.1) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../1-libltdl7_2.4.6-14_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-14) ...
Selecting previously unselected package libtdb1:amd64.
Preparing to unpack .../2-libtdb1_1.4.3-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libtdb1:amd64 (1.4.3-0ubuntu0.20.04.1) ...
Selecting previously unselected package sound-theme-freedesktop.
Preparing to unpack .../3-sound-theme-freedesktop_0.8-2ubuntu1_all.deb ...
Unpacking sound-theme-freedesktop (0.8-2ubuntu1) ...
Selecting previously unselected package libcanberra0:amd64.
Preparing to unpack .../4-libcanberra0_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra0:amd64 (0.30-7ubuntu1) ...
Selecting previously unselected package libdbusmenu-glib4:amd64.
Preparing to unpack .../5-libdbusmenu-glib4_16.04.1+18.10.20180917-0ubuntu6_amd64.deb ...
Unpacking libdbusmenu-glib4:amd64 (16.04.1+18.10.20180917-0ubuntu6) ...
Selecting previously unselected package libdbusmenu-gtk3-4:amd64.
Preparing to unpack .../6-libdbusmenu-gtk3-4_16.04.1+18.10.20180917-0ubuntu6_amd64.deb ...
Unpacking libdbusmenu-gtk3-4:amd64 (16.04.1+18.10.20180917-0ubuntu6) ...
Selecting previously unselected package xul-ext-ubufox.
Preparing to unpack .../7-xul-ext-ubufox_3.4-0ubuntu1.17.10.1_all.deb ...
Unpacking xul-ext-ubufox (3.4-0ubuntu1.17.10.1) ...
Setting up firefox (102.0+build2-0ubuntu0.20.04.1) ...
update-alternatives: using /usr/bin/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/firefox to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
Please restart all running instances of firefox, or you will experience problems.
Setting up libtdb1:amd64 (1.4.3-0ubuntu0.20.04.1) ...
Setting up libdbusmenu-glib4:amd64 (16.04.1+18.10.20180917-0ubuntu6) ...
Setting up libltdl7:amd64 (2.4.6-14) ...
Setting up sound-theme-freedesktop (0.8-2ubuntu1) ...
Setting up xul-ext-ubufox (3.4-0ubuntu1.17.10.1) ...
Setting up libcanberra0:amd64 (0.30-7ubuntu1) ...
Setting up libdbusmenu-gtk3-4:amd64 (16.04.1+18.10.20180917-0ubuntu6) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Removing intermediate container b246d0443da8
 ---> 0a5443d8f474
Step 10/17 : RUN apt install python3.8-venv
 ---> Running in 6781d653c735

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  python3.8-venv
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 5448 B of archives.
After this operation, 27.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3.8-venv amd64 3.8.10-0ubuntu1~20.04.4 [5448 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 5448 B in 0s (200 kB/s)
Selecting previously unselected package python3.8-venv.
(Reading database ... 40269 files and directories currently installed.)
Preparing to unpack .../python3.8-venv_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking python3.8-venv (3.8.10-0ubuntu1~20.04.4) ...
Setting up python3.8-venv (3.8.10-0ubuntu1~20.04.4) ...
Removing intermediate container 6781d653c735
 ---> d8561c7d052f
Step 11/17 : ENV VIRTUAL_ENV=/opt/venv
 ---> Running in 455510632cbf
Removing intermediate container 455510632cbf
 ---> b28a48d3afa3
Step 12/17 : RUN python3 -m venv $VIRTUAL_ENV
 ---> Running in 73deab5c6cd5
Removing intermediate container 73deab5c6cd5
 ---> a88a3af94fc7
Step 13/17 : ENV PATH="$VIRTUAL_ENV/bin:$PATH"
 ---> Running in 151cb87ac83f
Removing intermediate container 151cb87ac83f
 ---> 73b86069e508
Step 14/17 : COPY requirements.txt .
 ---> 3dfe41cd765b
Step 15/17 : RUN pip3 install -r requirements.txt
 ---> Running in f5e15d031952
Collecting selenium
  Downloading selenium-4.3.0-py3-none-any.whl (981 kB)
Collecting instapy
  Downloading instapy-0.6.16-py2.py3-none-any.whl (246 kB)
Collecting TikTokApi==5.1.1
  Downloading TikTokApi-5.1.1.tar.gz (64 kB)
Collecting schedule
  Downloading schedule-1.1.0-py2.py3-none-any.whl (10 kB)
Collecting webdriver-manager
  Downloading webdriver_manager-3.8.0-py2.py3-none-any.whl (25 kB)
Collecting trio-websocket~=0.9
  Downloading trio_websocket-0.9.2-py3-none-any.whl (16 kB)
Collecting trio~=0.17
  Downloading trio-0.21.0-py3-none-any.whl (358 kB)
Collecting urllib3[secure,socks]~=1.26
  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting chardet<4,>=3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting certifi>=2018.10.15
  Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting EasyProcess>=0.2.3
  Downloading EasyProcess-1.1-py3-none-any.whl (8.7 kB)
Collecting future>=0.17.1
  Downloading future-0.18.2.tar.gz (829 kB)
Collecting setuptools-rust>=0.11.6
  Downloading setuptools_rust-1.4.1-py3-none-any.whl (23 kB)
Collecting grpcio>=1.16.1
  Downloading grpcio-1.47.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
Collecting PyYAML>=3.13
  Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
Collecting webdriverdownloader>=1.1.0.3
  Downloading webdriverdownloader-1.1.0.3-py2.py3-none-any.whl (10 kB)
Collecting jsonschema<3,>=2.6.0
  Downloading jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Collecting plyer>=1.3.1
  Downloading plyer-2.0.0-py2.py3-none-any.whl (131 kB)
Collecting configparser<4,>=3.5.0
  Downloading configparser-3.8.1-py2.py3-none-any.whl (22 kB)
Collecting python-telegram-bot>=12.0.0; python_version > "3.6"
  Downloading python_telegram_bot-13.13-py3-none-any.whl (513 kB)
Collecting api-display-purposes>=0.0.3; python_version > "3.5"
  Downloading api_display_purposes-0.0.3-py3-none-any.whl (4.7 kB)
Collecting clarifai>=2.4.1
  Downloading clarifai-2.6.2.tar.gz (125 kB)
Collecting emoji>=0.5.1
  Downloading emoji-1.7.0.tar.gz (175 kB)
Collecting six>=1.11.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting protobuf<4,>=3.6.1
  Downloading protobuf-3.20.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Collecting requests>=2.20.1
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
Collecting idna<3,>=2.7
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting PyVirtualDisplay>=0.2.1; sys_platform != "win32"
  Downloading PyVirtualDisplay-3.0-py3-none-any.whl (15 kB)
Collecting MeaningCloud-python>=1.1.1
  Downloading MeaningCloud_python-2.0.0-py2.py3-none-any.whl (21 kB)
Collecting regex>=2018.11.22
  Downloading regex-2022.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (764 kB)
Collecting playwright
  Downloading playwright-1.23.0-py3-none-manylinux1_x86_64.whl (32.3 MB)
Collecting python-dotenv
  Downloading python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pybrowsers
  Downloading pybrowsers-0.4.1-py3-none-any.whl (7.9 kB)
Collecting wsproto>=0.14
  Downloading wsproto-1.1.0-py3-none-any.whl (24 kB)
Collecting async-generator>=1.10
  Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Collecting sortedcontainers
  Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting sniffio
  Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting attrs>=19.2.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting outcome
  Downloading outcome-1.2.0-py2.py3-none-any.whl (9.7 kB)
Collecting pyOpenSSL>=0.14; extra == "secure"
  Downloading pyOpenSSL-22.0.0-py2.py3-none-any.whl (55 kB)
Collecting cryptography>=1.3.4; extra == "secure"
  Downloading cryptography-37.0.4-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB)
Collecting PySocks!=1.5.7,<2.0,>=1.5.6; extra == "socks"
  Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting setuptools>=62.4
  Downloading setuptools-63.1.0-py3-none-any.whl (1.2 MB)
Collecting typing-extensions>=3.7.4.3
  Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting semantic-version<3,>=2.8.2
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting tqdm
  Downloading tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
Collecting pytz>=2018.6
  Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting APScheduler==3.6.3
  Downloading APScheduler-3.6.3-py2.py3-none-any.whl (58 kB)
Collecting tornado>=6.1
  Downloading tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423 kB)
Collecting cachetools==4.2.2
  Downloading cachetools-4.2.2-py3-none-any.whl (11 kB)
Collecting googleapis-common-protos<2,>=1.5.0
  Downloading googleapis_common_protos-1.56.3-py2.py3-none-any.whl (211 kB)
Collecting charset-normalizer<3,>=2
  Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting greenlet==1.1.2
  Downloading greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)
Collecting websockets==10.1
  Downloading websockets-10.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (110 kB)
Collecting pyee==8.1.0
  Downloading pyee-8.1.0-py2.py3-none-any.whl (12 kB)
Collecting pyxdg<0.28,>=0.27; sys_platform == "linux"
  Downloading pyxdg-0.27-py2.py3-none-any.whl (49 kB)
Collecting h11<1,>=0.9.0
  Downloading h11-0.13.0-py3-none-any.whl (58 kB)
Collecting cffi>=1.12
  Downloading cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442 kB)
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting tzlocal>=1.2
  Downloading tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting pycparser
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting backports.zoneinfo; python_version < "3.9"
  Downloading backports.zoneinfo-0.2.1-cp38-cp38-manylinux1_x86_64.whl (74 kB)
Collecting pytz-deprecation-shim
  Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting tzdata; python_version >= "3.6"
  Downloading tzdata-2022.1-py2.py3-none-any.whl (339 kB)
Building wheels for collected packages: TikTokApi, future, clarifai, emoji
  Building wheel for TikTokApi (setup.py): started
  Building wheel for TikTokApi (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nh8ksdzr/TikTokApi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nh8ksdzr/TikTokApi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wx2qzp48
       cwd: /tmp/pip-install-nh8ksdzr/TikTokApi/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for TikTokApi
  Running setup.py clean for TikTokApi
  Building wheel for future (setup.py): started
  Building wheel for future (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nh8ksdzr/future/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nh8ksdzr/future/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-cnii2hhp
       cwd: /tmp/pip-install-nh8ksdzr/future/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for future
  Running setup.py clean for future
  Building wheel for clarifai (setup.py): started
  Building wheel for clarifai (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nh8ksdzr/clarifai/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nh8ksdzr/clarifai/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-aly1xcjx
       cwd: /tmp/pip-install-nh8ksdzr/clarifai/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for clarifai
  Running setup.py clean for clarifai
  Building wheel for emoji (setup.py): started
  Building wheel for emoji (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nh8ksdzr/emoji/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nh8ksdzr/emoji/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-w34l_5l2
       cwd: /tmp/pip-install-nh8ksdzr/emoji/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  Running setup.py clean for emoji
  ERROR: Failed building wheel for emoji
Failed to build TikTokApi future clarifai emoji
Installing collected packages: h11, wsproto, sortedcontainers, sniffio, async-generator, idna, attrs, outcome, trio, trio-websocket, certifi, pycparser, cffi, cryptography, pyOpenSSL, PySocks, urllib3, selenium, chardet, EasyProcess, future, setuptools, typing-extensions, semantic-version, setuptools-rust, six, grpcio, PyYAML, charset-normalizer, requests, tqdm, soupsieve, beautifulsoup4, webdriverdownloader, jsonschema, plyer, configparser, pytz, backports.zoneinfo, tzdata, pytz-deprecation-shim, tzlocal, APScheduler, tornado, cachetools, python-telegram-bot, api-display-purposes, protobuf, googleapis-common-protos, clarifai, emoji, PyVirtualDisplay, MeaningCloud-python, regex, instapy, greenlet, websockets, pyee, playwright, TikTokApi, schedule, python-dotenv, pyxdg, pybrowsers, webdriver-manager
    Running setup.py install for future: started
    Running setup.py install for future: finished with status 'done'
  Attempting uninstall: setuptools
    Found existing installation: setuptools 44.0.0
    Uninstalling setuptools-44.0.0:
      Successfully uninstalled setuptools-44.0.0
    Running setup.py install for clarifai: started
    Running setup.py install for clarifai: finished with status 'done'
    Running setup.py install for emoji: started
    Running setup.py install for emoji: finished with status 'done'
    Running setup.py install for TikTokApi: started
    Running setup.py install for TikTokApi: finished with status 'done'
Successfully installed APScheduler-3.6.3 EasyProcess-1.1 MeaningCloud-python-2.0.0 PySocks-1.7.1 PyVirtualDisplay-3.0 PyYAML-6.0 TikTokApi-5.1.1 api-display-purposes-0.0.3 async-generator-1.10 attrs-21.4.0 backports.zoneinfo-0.2.1 beautifulsoup4-4.11.1 cachetools-4.2.2 certifi-2022.6.15 cffi-1.15.1 chardet-3.0.4 charset-normalizer-2.1.0 clarifai-2.6.2 configparser-3.8.1 cryptography-37.0.4 emoji-1.7.0 future-0.18.2 googleapis-common-protos-1.56.3 greenlet-1.1.2 grpcio-1.47.0 h11-0.13.0 idna-2.10 instapy-0.6.16 jsonschema-2.6.0 outcome-1.2.0 playwright-1.23.0 plyer-2.0.0 protobuf-3.20.1 pyOpenSSL-22.0.0 pybrowsers-0.4.1 pycparser-2.21 pyee-8.1.0 python-dotenv-0.20.0 python-telegram-bot-13.13 pytz-2022.1 pytz-deprecation-shim-0.1.0.post0 pyxdg-0.27 regex-2022.6.2 requests-2.28.1 schedule-1.1.0 selenium-4.3.0 semantic-version-2.10.0 setuptools-63.1.0 setuptools-rust-1.4.1 six-1.16.0 sniffio-1.2.0 sortedcontainers-2.4.0 soupsieve-2.3.2.post1 tornado-6.2 tqdm-4.64.0 trio-0.21.0 trio-websocket-0.9.2 typing-extensions-4.3.0 tzdata-2022.1 tzlocal-4.2 urllib3-1.26.9 webdriver-manager-3.8.0 webdriverdownloader-1.1.0.3 websockets-10.1 wsproto-1.1.0
Removing intermediate container f5e15d031952
 ---> d31bef0bb228
Step 16/17 : RUN python3 -m playwright install
 ---> Running in 9da1537beaac
Removing intermediate container 9da1537beaac
 ---> 7b53f0654ce6
Step 17/17 : CMD exec python autoinsta/src/bot.py
 ---> Running in e12d073b31b6
Removing intermediate container e12d073b31b6
 ---> fea4d5be4c44
Successfully built fea4d5be4c44
Successfully tagged autoinsta:latest
root@ubuntu:~/autoinsta#
bugbounted commented 2 years ago

I'm take a look on TikTok-Api at https://github.com/davidteather/TikTok-Api & see :

Docker Installation

Clone this repository onto a local machine (or just the Dockerfile since it installs TikTokApi from pip) then run the following commands.

docker pull mcr.microsoft.com/playwright:focal
docker build . -t tiktokapi:latest
docker run -v TikTokApi --rm tiktokapi:latest python3 your_script.py

Note this assumes your script is named your_script.py and lives in the root of this directory. source:https://github.com/davidteather/TikTok-Api#docker-installation I think can help you to resolve

bugbounted commented 2 years ago

error loop log of docker in runtime https://gist.github.com/elmirarokni/8897d5fadaec8e3f0d59071c8997f26b