Youtube-dl error messages & infinite looping - youtube-dl

I've used youtube-dl successfully for quite a while, until recently. Now it seems to me to be useless for grabbing videos off of YouTube or Odysee, which are the only platforms I really use.
I have already tried uninstalling & reinstalling.
Here are the error messages; similar errors occur regardless of the way I format the command, or which video I'm attempting to grab.
Here is an example from Odysee:
will#will-Inspiron-15-7579:~$ youtube-dl https://odysee.com/#betterthanfood:4/brave-new-world-aldous-huxley-book:f
[generic] brave-new-world-aldous-huxley-book:f: Requesting header
WARNING: Falling back on generic information extractor.
[generic] brave-new-world-aldous-huxley-book:f: Downloading webpage
[generic] brave-new-world-aldous-huxley-book:f: Extracting information
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10?: Requesting header
[redirect] Following redirect to https://odysee.com/$/embed/brave-new-world-aldous-huxley-book/f0338bc5ed0263d3832d5288807d43fb222e0a10
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10: Requesting header
WARNING: Falling back on generic information extractor.
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10: Downloading webpage
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10: Extracting information
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10?: Requesting header
[redirect] Following redirect to https://odysee.com/$/embed/brave-new-world-aldous-huxley-book/f0338bc5ed0263d3832d5288807d43fb222e0a10
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10: Requesting header
WARNING: Falling back on generic information extractor.
[generic] f0338bc5ed0263d3832d5288807d43fb222e0a10: Downloading webpage
^C
ERROR: Interrupted by user
As you can see, this command triggered infinite recursion/iteration which would have continued indefinitely; I had to manually terminate the program with CTRL+C
Here's an example from Youtube, which has a different problem:
will#will-Inspiron-15-7579:~$ youtube-dl https://www.youtube.com/watch?v=U5afsxvz75c
[youtube] U5afsxvz75c: Downloading webpage
[youtube] U5afsxvz75c: Downloading video info webpage
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 6, in <module>
youtube_dl.main()
File "/usr/lib/python3/dist-packages/youtube_dl/__init__.py", line 476, in main
_real_main(argv)
File "/usr/lib/python3/dist-packages/youtube_dl/__init__.py", line 466, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 1989, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1607, in _real_extract
token = video_info.get('token') or video_info.get('account_playback_token')
AttributeError: 'NoneType' object has no attribute 'get'
Again, I just uninstalled and reinstalled youtube-dl using apt, so this should be the latest version. Output of youtube-dl --version is 2018.03.14.
Thanks for any help you may be able to provide :)

You are using a very outdated version. First, uninstall apt package, then run:
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
and
sudo chmod a+rx /usr/local/bin/youtube-dl
Latest version is now 2021-05-16, and works well with your URL

Related

Build C++ project with Bazel offline (without internet connection)

I try to build the Bazel C++ Build Tutorial from the Bazel homepage (Getting Started) with this command but without any connection to the internet: bazel build //main:hello-world
The Jenkins Server will not have any connection to the internet so I can't do prefetching or similar. Is there a way how to prepare my C++ project on another computer and transfer the dependencies to the Jenkins Server to do it offline? How? I would just need what I got from the following error message respectively get the tutorial running:
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Repository rules_cc instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:267:6: in <toplevel>
C:/users/XXX/_bazel_XXX/dq2p42jq/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
C:/users/XXX/_bazel_XXX/dq2p42jq/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip failed: class java.io.IOException Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
WARNING: Download from https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip failed: class java.io.IOException Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
ERROR: An error occurred during the fetch of repository 'rules_cc':
Traceback (most recent call last):
File "C:/users/XXX/_bazel_XXX/dq2p42jq/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip, https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip] to C:/users/XXX/_bazel_XXX/dq2p42jq/external/rules_cc/temp1363696983472254851/b1c40e1de81913a3c40e5948f78719c28152486d.zip: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/users/XXX/_bazel_XXX/dq2p42jq/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip, https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip] to C:/users/XXX/_bazel_XXX/dq2p42jq/external/rules_cc/temp1363696983472254851/b1c40e1de81913a3c40e5948f78719c28152486d.zip: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
ERROR: Skipping '//main:hello-world': no such package '#rules_cc//cc': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip, https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip] to C:/users/XXX/_bazel_XXX/dq2p42jq/external/rules_cc/temp1363696983472254851/b1c40e1de81913a3c40e5948f78719c28152486d.zip: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
WARNING: Target pattern parsing failed.
ERROR: no such package '#rules_cc//cc': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip, https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip] to C:/users/XXX/_bazel_XXX/dq2p42jq/external/rules_cc/temp1363696983472254851/b1c40e1de81913a3c40e5948f78719c28152486d.zip: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 501 Not Implemented"
INFO: Elapsed time: 30.974s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: main
Update:
I tried prefetching and it doesn't work. What I did:
run bazel fetch //...
Copy the prefetched data from bazel info output_base directory from local to jenkins server (I had to recreate one sym link to the install dir).
I run bazel build --fetch=false //main:hello-world on jenkins without refatching. Now I get following error:
Loading:
Loading: 0 packages loaded
WARNING: /DEFAULT.WORKSPACE:1:17: External repository 'bazel_tools' is not up-to-date and fetching is disabled. To update, run the build without the '--nofetch' command line option.
ERROR: error loading package '': Every .bzl file must have a corresponding package, but '#bazel_tools//tools/build_defs/repo:http.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.
INFO: Elapsed time: 0.298s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
I found one solution for offline building a simple C++ projects with bazel.
First you have to download the rules_cc and rules_java libs, because these where the external dependent libs in the simple Bazel C++ tutorial project. I found no release for rules_cc so I downloaded the zip file from the url which was mentioned in the error message on the console when I was trying to use bazel build offline: https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip. The sha key was also mentioned in the error message when you try to use the lib locally with a wrong sha key (see below). The rules_java lib can be downloaded here: https://github.com/bazelbuild/rules_java/releases. The WORKSPACE specification is also mentioned there.
Then you have to add the following to your WORKSPACE file. Be aware, that you have to point to your local copy of the archive files for rules_cc and rules_java. And for rules_cc you have to mention in strip_prefix the root path of the archive file (the first and only root directory in the .zip file). The rules_java has no root directory:
load("#bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_cc",
urls = ["file:C:/tmp/b1c40e1de81913a3c40e5948f78719c28152486d.zip"],
strip_prefix = "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d",
sha256 = "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
)
http_archive(
name = "rules_java",
url = "file:C:/tmp/rules_java-4.0.0.tar.gz",
sha256 = "34b41ec683e67253043ab1a3d1e8b7c61e4e8edefbcad485381328c934d072fe",
)
You can run bazel fetch //... to fetch data locally on the machine, which has access to the internet. Then you can just copy prefetched data: from bazel info output_base directory on your local PC to bazel info output_base in the jenkins job.

Akeeba Kickstart with Joomla 2.5.13 throws 403 Error

Everytime I start to extract my Akeeba Backup, I get a 403 error and an Uncaught ReferenceError as such
POST http://maxnathaniel.com/joomla/kickstart.php 403 (Forbidden)
kickstart.php:1119 Uncaught ReferenceError: Response is not defined
Versions
Joomla - 2.5.13
Akeeba Kickstart - 4.0.0
File Permissions
Joomla subdirectory folder is on 755
Files within the joomla folder is 644
Included in my /public_html/joomla are en-GB.kickstart.ini, index.html (a sample index file), kickstart.php and my backup file in .jpa format (file size is 1GB).
Appreciate any help, thank you!
Instead of using Akeeba Kickstart, I used Akeeba eXtract Wizard. Unpacked the .jpa file on my local machine, and uploaded it via FTP to my server. It worked without any problems.

Could not find any downloads that satisfy the requirement django-1.6.1

I am going through this tutorial on Django. I have Django installed outside of the virtualenv, but inside, I try to use the same version as the linked video. I use the command
pip install django--1.6.1
but get the following error message:
(skillshare)skillshare$ pip install django--1.6.1
Downloading/unpacking django-1.6.1
Could not find any downloads that satisfy the requirement django-1.6.1
Cleaning up...
No distributions at all found for django-1.6.1
Storing debug log for failure in /Users/NAThompson/.pip/pip.log
The log file reads:
Getting page https://pypi.python.org/simple/django--1.6.1/
Could not fetch URL https://pypi.python.org/simple/django--1.6.1/:
404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/django--1.6.1/ when looking for
download
links for django-1.6.1
Getting page https://pypi.python.org/simple/
URLs to search for versions for django-1.6.1:
* https://pypi.python.org/simple/django--1.6.1/
Getting page https://pypi.python.org/simple/django--1.6.1/
Could not fetch URL https://pypi.python.org/simple/django--1.6.1/:
404 Client Error: Not Found
How can this be fixed?
your command is wrong, that's right:
pip install django==1.6.1

getting error while uploading on server using web application opencart

I need a help on this problem. I uploaded my site using web application, I am using opencart. This is my first time that I encounter this problem. My website is http://www.almadina-adv.com. I cannot solve it.
Error found:
Warning: require_once(/home/almadina-adv/public_html/system/startup.php): failed to
open stream: No such file or directory in /home/mohamedb/public_html/index.php on line 19
Fatal error: require_once(): Failed opening required '/home/almadina-adv/public_html/system/startup.php' (include_path='.:/usr/local/lib/php') in /home/mohamedb/public_html/index.php on line 19
Did you setup the config files to point to the right place on the server rather than on your development machine:
/admin/config.php
/config.php
This post has more details on how to setup the opencart config files

django-crm install

I am trying to install django-crm. I am using pip to install it:
pip install django-crm
I am getting:
Downloading/unpacking django-crm
Could not find any downloads that satisfy the requirements django-crm
No distributions at all found for django-crm
Storing complete log in C:\users\User\AppData\Roaming\pip\pip.log
Edit:
The log file includes the following:
------------------------------------------------------------
C:\Python27\Scripts\pip-script.py run on 06/27/12 00:33:50
Downloading/unpacking django-crm
Getting page http://pypi.python.org/simple/django_crm
Could not fetch URL http://pypi.python.org/simple/django_crm: HTTP Error 404: Not Found
Will skip URL http://pypi.python.org/simple/django_crm when looking for download links for django-crm
Getting page http://pypi.python.org/simple/
URLs to search for versions for django-crm:
* http://pypi.python.org/simple/django_crm/
Getting page http://pypi.python.org/simple/django_crm/
Could not fetch URL http://pypi.python.org/simple/django_crm/: HTTP Error 404: Not Found
Will skip URL http://pypi.python.org/simple/django_crm/ when looking for download links for django-crm
Could not find any downloads that satisfy the requirement django-crm
No distributions at all found for django-crm
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 126, in main
self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip\req.py", line 954, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "C:\Python27\lib\site-packages\pip\index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for django-crm
Can anyone help me out? How do I install django-crm? Is there anywhere I can see a demo of it instead of installing it myself?
Thanks!!
Since there is no PyPI entry for Django CRM, give pip the location where it could find the package:
$ pip install svn+http://django-crm.googlecode.com/svn/trunk/#egg=django-crm
It works for me.
try all new django crm in github
https://github.com/MicroPyramid/Django-CRM