soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
261 stars 51 forks source link

Python error in line 7 & 320 #46

Closed zac8978 closed 2 years ago

zac8978 commented 2 years ago

Been tried to deleted the existing file and unzip all the file. Then followed the instruction but failed. It worked few weeks ago. Not sure what happened.

 Please login with your SSO details and type continue when logged in.
-----------------------------------------------------------------
=================================================================
Binary file of chromedriver not found, will initiate a download process now...
>> Downloading chromedriver binary file for "win32"
100% [..........................................................................] 3378230 / 3378230
>> Extracting archive file "chromedriver_win32.zip"
Done!
=================================================================
Traceback (most recent call last):
  File "C:\download\echo360-master\echo360-master\echo360.py", line 7, in <module>
    sys.exit(main())
  File "C:\download\echo360-master\echo360-master\echo360\main.py", line 320, in main
    course_uuid = re.search(
AttributeError: 'NoneType' object has no attribute 'group'
soraxas commented 2 years ago

The information that you had provided is useless as it conveys nothing.

What are the inputs and any logs? (from enabling --debug)

zac8978 commented 2 years ago

Thank you Soraxas. The Input was "echo360.py https://echo360.net.au/" and directed to the login page. So i tried the debug and it was attached below.

C:\download\echo360-master\echo360-master>echo360.py https://echo360.net.au/ --debug

Echo360 Cloud platform detected This implies setup_credential, and using web_driver

Please login with your SSO details and type continue when logged in.

DEBUG: binary_downloader link: ('https://chromedriver.storage.googleapis.com/2.38/chromedriver_win32.zip', 'chromedriver_win32.zip'), bin path: C:\download\echo360-master\echo360-master/bin/chromedriver.exe Traceback (most recent call last): File "C:\download\echo360-master\echo360-master\echo360.py", line 7, in sys.exit(main()) File "C:\download\echo360-master\echo360-master\echo360\main.py", line 320, in main course_uuid = re.search( AttributeError: 'NoneType' object has no attribute 'group'

soraxas commented 2 years ago

Please see README file. The URL should be in the format of

https://echo360.<org|net>[.xx]/section/$(UUID)/home
zac8978 commented 2 years ago

Hi Soraxas,

i tried but still failed><

File "C:\download\echo360-master\echo360-master_echo360venv\lib\site-packages\ffmpy.py", line 93, in run self.process = subprocess.Popen( File "C:\Users\zac\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\zac\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\download\echo360-master\echo360-master\echo360.py", line 7, in sys.exit(main()) File "C:\download\echo360-master\echo360-master\echo360\main.py", line 356, in main downloader.download_all() File "C:\download\echo360-master\echo360-master\echo360\downloader.py", line 235, in download_all if video.download(self._output_dir, filename): File "C:\download\echo360-master\echo360-master\echo360\videos.py", line 269, in download result = self.download_single(session, single_url, output_dir, new_filename, pool_size) File "C:\download\echo360-master\echo360-master\echo360\videos.py", line 317, in download_single self.combine_audio_video( File "C:\download\echo360-master\echo360-master\echo360\videos.py", line 359, in combine_audio_video ff.run() File "C:\download\echo360-master\echo360-master_echo360venv\lib\site-packages\ffmpy.py", line 98, in run raise FFExecutableNotFoundError( ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg' not found

soraxas commented 2 years ago

Have you installed ffmpeg?

https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg

zac8978 commented 2 years ago

Yes and put in on Path. But showed it is not executable

soraxas commented 2 years ago

Please follow the guide to install ffmpeg properly in windows, as I cannot help you debug things related to your ffmpeg installs.

Perhaps this guide would be useful?
https://www.wikihow.com/Install-FFmpeg-on-Windows

It also stated that if the install is successful, you should be able to run

ffmpeg -version

in the commandline (cmd.exe)

zac8978 commented 2 years ago

Thank you Soraxas, i have reinstall the ffmpeg and it is working now. Appericiate!