benjaminguinaudeau / tiktokr

An R Scraper for Tiktok
Other
49 stars 7 forks source link

Error with "creating container" #39

Open adamk528 opened 3 years ago

adamk528 commented 3 years ago

Hello! I hope this message finds you well. I previously was able to run this code, but am now having trouble. When I ran the test to see if a docker was needed, it said it was. But after installing it and trying running tk_init() as copied from the code provided, I receive the following errors:

Screen Shot 2021-01-06 at 11 58 56 PM
mkermanim commented 2 years ago

I also encounter a similar problem trying to initialize tiktokr. When I run the code, I get this error message:

executor failed running [/bin/sh -c apt-get update && apt-get install -y libcurl4-openssl-dev libssl-dev libssh2-1-dev libxml2-dev zlib1g-dev gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && R -e "install.packages(c('devtools'))" R -e "devtools::install_github('benjaminguinaudeau/tiktokr')" R -e "install.packages('plumber')" R -e "reticulate::install_miniconda()" R -e "tiktokr::tk_install()" R -e "tiktokr::tk_init() ; tiktokr::get_signature('test')"]: exit code: 1 ✖ Unable to install image tiktoksignature Creating containertiktoksignatureand hosting plumber-API on port localhost:32768 Unable to find image 'tiktoksignature:latest' locally docker: Error response from daemon: pull access denied for tiktoksignature, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'. ✖ Unable to create containertiktoksignature` Container was stopped. Starting container Error response from daemon: No such container: tiktoksignature Error: failed to start containers: tiktoksignature Error in curl::curl_fetch_memory(url, handle = handle) : Failed to connect to localhost port 32768: Connection refused In addition: Warning messages: 1: In system("docker run -dt -p 32768:6543 --name tiktoksignature tiktoksignature:latest", : running command 'docker run -dt -p 32768:6543 --name tiktoksignature tiktoksignature:latest' had status 125 2: In system("docker start tiktoksignature", intern = T) : running command 'docker start tiktoksignature' had status 1 Error response from daemon: No such container: tiktoksignature Error response from daemon: No such container: tiktoksignature Error: failed to start containers: tiktoksignature Error in curl::curl_fetch_memory(url, handle = handle) : Failed to connect to localhost port 32768: Connection refused In addition: Warning messages: 1: In system("docker stop tiktoksignature", intern = T) : running command 'docker stop tiktoksignature' had status 1 2: In system("docker start tiktoksignature", intern = T) : running command 'docker start tiktoksignature' had status 1 Error: $ operator is invalid for atomic vectors