Skip to content
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

youtube-dl and Codeblocks IDE #2618

Closed
zegarnek opened this issue Mar 24, 2014 · 4 comments
Closed

youtube-dl and Codeblocks IDE #2618

zegarnek opened this issue Mar 24, 2014 · 4 comments

Comments

@zegarnek
Copy link

@zegarnek zegarnek commented Mar 24, 2014

I have encountered weird problems with youtube-dl and CodeBlocks being installed at the same time.

Kubuntu 12.04 LTS, 32 bit, KDE 4.12.3
youtube-dl working with no problems over months until:

after the install of codeblocks from .deb packages (Release 113.12 rev 9501 (2013-12-25 18:25:45 gcc 4.6.3 Linux/unicode - 32 bit) codeblocks works well but:

but trying to run "youtube-dl" I get:

$:_youtube-dl -f 18 https://www.youtube.com/watch?v=oyPrYygsum8
[youtube] Setting language
[youtube] oyPrYygsum8: Downloading video webpage
[youtube] oyPrYygsum8: Downloading video info webpage
[youtube] oyPrYygsum8: Extracting video information
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4645, in
main()
File "/usr/bin/youtube-dl", line 4636, in main
_real_main()
File "/usr/bin/youtube-dl", line 4620, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl", line 869, in download
ie.extract(url)
File "/usr/bin/youtube-dl", line 1135, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl", line 1406, in _real_extract
url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
File "/usr/bin/youtube-dl", line 1406, in
url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
KeyError: 'sig'

So now youtube-dl is not runnig any more.

I tried to (re)install youtube-dl again and:

$:_sudo apt-get install youtube-dl
[sudo] password for xxxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
youtube-dl is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
codeblocks-contrib-dbg : Depends: codeblocks-contrib (= 13.12-0ubuntu1precise) but it is not going to be installed
codeblocks-wxcontrib-dev : Depends: codeblocks-libwxcontrib0 (= 13.12-0ubuntu1
precise) but 12.11-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I tried to run the apt-get -f install and:

$:_sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
codeblocks-contrib-dbg codeblocks-wxcontrib-dev codeblocks-wxcontrib-headers
0 to upgrade, 0 to newly install, 3 to remove and 19 not to upgrade.
3 not fully installed or removed.
After this operation, 121 MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
Saying 'Yes' to the aboves removes vital parts of CodeBlocks!
Can you tell me what is in common with these two pieces of seemingly different software and why I am not able to use them both at different times?

Thank you
Zenon

@phihag
Copy link
Contributor

@phihag phihag commented Mar 24, 2014

The two problems are unrelated. It looks like a CodeBlocks installation was aborted in between. Your problem is far simpler; the version of youtube-dl is too old. Unless you want to update to a newer distribution or use a ppa of some kind, the easiest way to get a current youtube-dl is probably to remove the package-installed version and use our manual installation method:

sudo apt-get remove -y youtube-dl
sudo curl https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r   # Clear bash shell location cache

If the problem persists after that, please post the output you get when running

which youtube-dl
youtube-dl -v -f 18 https://www.youtube.com/watch?v=oyPrYygsum8

and we will reopen this issue.

@phihag phihag closed this Mar 24, 2014
@zegarnek
Copy link
Author

@zegarnek zegarnek commented Mar 24, 2014

Thank you for your quick replay phihang.

I am not able to run:
$:_sudo apt-get remove -y youtube-dl
[sudo] password for xxxxx
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
codeblocks-contrib-dbg : Depends: codeblocks-contrib (= 13.12-0ubuntu1precise) but it is not going to be installed
codeblocks-wxcontrib-dev : Depends: codeblocks-libwxcontrib0 (= 13.12-0ubuntu1
precise) but 12.11-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

So I am stuck. apt-get -f install will remove my codeblocks (it did happen before and made quite a mess).
Just before your response I tried to install, through Software Centre, FatRat or Slimrat and I got the same "Remove" the above three packages warning.

The other suggested commands:
$:_youtube-dl -v -f https://www.youtube.com/watch?v=oyPrYygsum8
[debug] Proxy map: {}
Usage: youtube-dl [options] url [url...]

youtube-dl: error: you must provide at least one URL

$:_which youtube-dl
/usr/bin/youtube-dl

I am not an advanced Linux user. Thanks.

@zegarnek
Copy link
Author

@zegarnek zegarnek commented Mar 24, 2014

UPDATE!

Things are really weird. Any attempt to install any software gives me this warning. So it seems that a problem with the apt rather then youtube-dl. I will try to get it working. Thanks

@phihag
Copy link
Contributor

@phihag phihag commented Mar 24, 2014

I'd suggest you first uninstall codeblocks via sudo apt-get -f install and then sort out that. In a pinch, instead of using apt-get, you can also remove youtube-dl with sudo rm /usr/bin/youtube-dl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.