• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

youtube-dl problem

Status
Not open for further replies.

Wicherek

Member
Hello, I've spent 2 hours going through all the forums and all the solutions didn't help so I'll post my logs and everything here because im out of ideas. Everything works great, thanks for creating the bot but I can't get youtube-dl to work. Everything else works, I can manually upload stuff and I can use chat commands through TS3 but it gets stuck on downloading when I use any youtube-dl related commands and I can't clear "Download Files" in control panel, it says "error, youtube-dl not available".

Here's diagnostic scipt result:
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
 - Operating System: Ubuntu 14.04.4 LTS
 - OS x64 check: OK
 - Kernel: Linux 3.19.0-49-generic x86_64
 - Load Average: 0.21 0.43 0.45
 - Uptime: 56 days, 18 hours, 34 minutes, 39 seconds
 - OS Updates: 0 (well done!)
 - OS Missing Packages: None (v1)
 - OS APT Last Update: 07.06.2016 09:06:24 CEST +02:00:00
 - Bot Start Script: not found
 - DNS resolution check: google.com -> OK
 - CPU:
  Architecture:  x86_64
  CPU(s):  1
  Thread(s) per core:  1
  Core(s) per socket:  1
  Socket(s):  1
  CPU MHz:  2999.996
  Hypervisor vendor:  KVM
  Virtualization type:  full
 - RAM: 411.69 MB/993.25 MB in use (41%)
 - SWAP: 76.61 MB/508.99 MB in use (15%)
 - DISK: 3.13 GB/42.97 GB in use (7%)
 - Package versions:
  > libglib: 2.40.2-0ubuntu1

BOT INFORMATION
 - Status: running (PIDs: 13090 13089, User: sinusbot)
 - Webinterface: port locally reachable (Port: 8087)
 - Binary: /home/sinusbot/sinusbot (Hash: 8b94daaaf3ffd829669e70a3c6a5843d)
 - Version: 0.9.12-58b509d
 - TS3 Plugin: installed (md5 hash match)
  - Bot Plugin: 2c207af25e3000543d85b5f4275ef053
  - TS3 Client: 2c207af25e3000543d85b5f4275ef053
 - Config:
  - LogLevel = 10 (debug log active)
  - TS3Path = /home/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.19.1)
  - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2016.06.03)
 - Installed scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; covatar.js; dev.js; followme.js; idle.js; metadata.js; norecording.js; rememberChannel.js; showcase.js; sound.js; welcometext.js

OTHER INFORMATION
 - Report date: 07.06.2016 16:19:57 CEST +02:00:00 (timezone: Europe/Amsterdam)
 - TeamSpeak 3 Version: 3.0.19.1
 - youtube-dl Version: 2016.06.03
 - DiagScript version: 0.4.5
==========================================================

config.ini:
Code:
TS3Path = "/home/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
YoutubeDLPath = "/usr/local/bin/youtube-dl"
ListenHost = "127.0.0.1"
DataDir = "/home/sinusbot/data/"
ListenPort = 8087
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
EnableDebugConsole = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = false
SSLKeyFile = ""
SSLCertFile = ""
Hostname = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "8SNx1FJTIE2zJ1jCbRGTjwVpLnCLKrpB6Xdr4+fomxk="
IsProxied = false
DenyStreamURLs = []
Pragma = 0

[YoutubeDL]
  BufferSize = 524288
  MaxDownloadSize = 419430400
  MaxDownloadRate = 104857600
  CacheStreamed = true

[TS3]
  AvatarMaxWidth = 0
  AvatarMaxHeight = 0

[StreamRewrites]

[Scripts]
  AllowReload = false
  EnableTimer = false

[SpeechRecognition]
  Enable = false

[FFmpeg]
  UserAgent = "SinusBot (0.9.12-58b509d)"

[DAV]
  Enable = false

[XServer]
  Delay = 0
  Debug = false
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
try
Code:
sudo apt-get install python-pip
sudo pip install --upgrade youtube_dl
 
Last edited:

Wicherek

Member
Code:
The directory '/home/sinusbot/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/sinusbot/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already up-to-date: youtube-dl in /usr/local/lib/python2.7/dist-packages

after pip install
 

Lionpigster

New Member
I got the same problem (I can't clear "Download Files" in control panel, it says "error, youtube-dl not available".) but now it works. I got a to long message in one of the scripts (changed that) and I restarted the system completly.

After that it somehow worked.
 

Wicherek

Member
Well, im an idiot then, I thought I restarted my machine after installing everything, it works now, cheers.
 
Status
Not open for further replies.
Top