question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unreachable files and 'NoneType' error

See original GitHub issue

I try to download a course “Course 'Docker for DevOps - From Development to Production”, but get the error (all other courses downloads works fine):

[*] : Course 'Docker for DevOps - From Development to Production'.
Traceback (most recent call last):on .. 
  File "acloud-dl.py", line 334, in <module>
    main()
  File "acloud-dl.py", line 327, in main
    acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
  File "acloud-dl.py", line 209, in course_download
    course = course.get_course(keep_alive=download_all)
  File "/home/pride/acloud-dl-master/acloud/_shared.py", line 88, in get_course
    self._process_course(keep_alive=keep_alive)
  File "/home/pride/acloud-dl-master/acloud/_internal.py", line 69, in _process_course
    self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
  File "/home/pride/acloud-dl-master/acloud/_internal.py", line 79, in __init__
    super(InternCloudGuruCourse, self).__init__()
  File "/home/pride/acloud-dl-master/acloud/_shared.py", line 109, in __init__
    self._fetch_course()
  File "/home/pride/acloud-dl-master/acloud/_internal.py", line 85, in _fetch_course
    self._info              =       self._real_extract(course_id=course_id)        
  File "/home/pride/acloud-dl-master/acloud/_extract.py", line 486, in _real_extract
    'lectures' : self._extract_lectures(lectures)
  File "/home/pride/acloud-dl-master/acloud/_extract.py", line 381, in _extract_lectures
    sub_id = self._extract_sub_id(videoposter)
  File "/home/pride/acloud-dl-master/acloud/_extract.py", line 358, in _extract_sub_id
    videoposter = videoposter.rsplit("/", 1)[-1]
AttributeError: 'NoneType' object has no attribute 'rsplit'

The same situation with the course “Introduction to Ansible”.

For the course “AZ-103 Microsoft Azure Administrator 2020” most files are unreachable. But some of them I can download.

Course 'AZ-103 Microsoft Azure Administrator 2020'.
[*] : Downloaded course information .. (done)
[+] : Chapter(s) (24).
[*] : Lecture(s) (100).

[*] : Downloading chapter : (1 of 24)
[+] : Chapter (01 Course Introduction and Resources)
[*] : Found (2) lectures ...

[*] : Lecture(s) : (1 of 2)
[*] : Downloading (001 Welcome)
[*] : Lecture : '001 Welcome' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request

[*] : Lecture(s) : (2 of 2)
[*] : Downloading (002 Azure High Level Overview)
[*] : Lecture : '002 Azure High Level Overview' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request

[*] : Downloading chapter : (2 of 24)
[+] : Chapter (02 Manage Azure Subscriptions)
[*] : Found (6) lectures ...

[*] : Lecture(s) : (1 of 6)
[*] : Downloading (001 Intro to Accounts and Subscriptions)
[*] : Lecture : '001 Intro to Accounts and Subscriptions' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request

[*] : Lecture(s) : (2 of 6)
[*] : Downloading (002 Accessing Azure)
[*] : 30.11MB/30.11MB 100.00% |##############################| 5.74MB/s 
[+] : Downloaded  (002 Accessing Azure)

The same situation with courses “Google Kubernetes Engine (GKE)_ Beginner to Pro” but on that course all files are unreachable.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mavericksrinicommented, Jul 31, 2020
          __                __          ____

____ / / __ / / ____/ / / / __ `/ / / __ / / / / __ // __ / / / // / // / // / // / // // // / / _,_/_//_/_,/_,/ _,/_/

                             Version : 0.1
                             Author  : Nasir Khan (r0ot h3x49)
                             Github  : https://github.com/r0oth3x49

[*] : Downloading accessible courses information … (done) [1] : AWS Certified Cloud Practitioner 2020 [2] : AWS Certified DevOps Engineer - Professional 2020 [3] : AWS Certified Solutions Architect Associate SAA-CO2 [4] : AWS ECS - Scaling Docker [5] : Introduction to AWS [6] : S3 Masterclass [7] : Serverless for Beginners [8] : Mastering the AWS Well-Architected Framework [9] : Coding for Cloud 101 [10] : Docker Fundamentals [11] : LPI DevOps Tools Engineer Certification [12] : Introduction to Ansible [13] : Kubernetes Deep Dive [14] : Kubernetes Fundamentals [?] : select course number or range (1/14/range):

And when Downloading Introduction to Ansible it throws the following error

Traceback (most recent call last):on … File “acloud-dl.py”, line 334, in <module> main() File “acloud-dl.py”, line 327, in main acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all) File “acloud-dl.py”, line 209, in course_download course = course.get_course(keep_alive=download_all) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_shared.py”, line 88, in get_course self._process_course(keep_alive=keep_alive) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_internal.py”, line 69, in _process_course self._course = InternCloudGuruCourse(self._info, self._session, keep_alive) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_internal.py”, line 79, in init super(InternCloudGuruCourse, self).init() File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_shared.py”, line 109, in init self._fetch_course() File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_internal.py”, line 85, in _fetch_course self._info = self._real_extract(course_id=course_id) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_extract.py”, line 486, in _real_extract ‘lectures’ : self._extract_lectures(lectures) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_extract.py”, line 405, in _extract_lectures sources = self._extract_sources(sources) File “C:\Users@@@@\Downloads\acloud-dl-master\acloud_extract.py”, line 246, in _extract_sources ‘height’ : height, UnboundLocalError: local variable ‘height’ referenced before assignment

0reactions
sakkumitscommented, Aug 22, 2020

I also have same issue. Getting this error for few videos inside a course or sometime for all videos inside a course.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoneType error when opening file - python - Stack Overflow
Your open_file function has no return statement, so it returns None . You should try something like def open_file(): while True: file ...
Read more >
How to Fix TypeError: NoneType Object is not iterable
Are you looking to learn How to Fix TypeError: NoneType Object is not iterable? This error occurs because you are trying to loop...
Read more >
How to Fix TypeError in Python: NoneType Object Is Not Iterable
The Python TypeError: NoneType Object Is Not Iterable error can be avoided by checking if a value is None or not before iterating...
Read more >
AttributeError: 'NoneType' object has no attribute 'getReleases'
Hi there, I am currently trying to get my experiment to integrate with our Biopac shock hardware via parallel port. I am running...
Read more >
Unexpected attribute error - Mac - Insync Forums
... drive I get an error that reads: Unexpected error AttributeError: 'NoneType' object has no attribute 'new_op Any help is appreciated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found