Comments (11)
fixed in 8d19dae.
from echo360.
Hi @YoBii thanks for your reporting and PR! I did not consider unicode encoding at all before so thanks for letting me know.
from echo360.
fixed in #8
from echo360.
Still have this error using 1.4, but the last line is slightly different:
Traceback (most recent call last):
File "echo360.py", line 269, in
main()
File "echo360.py", line 223, in main
downloader.download_all()
File "/home/liquidcrystal/Desktop/Hilfskraft/echo360-1.3/echo360/downloader.py", line 187, in download_all
title = "Lecture {} [{}]".format(lecture_number + 1, video.title)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 17: ordinal not in range(128)
Got this when trying to download a course which had the German letter "ΓΌ" in the title.
from echo360.
@Aposke This problem probably occurs because of python2's encoding issues.
Can you try to pull the latest commit to see if it fixes it?
On a side note, from your log /home/liquidcrystal/Desktop/Hilfskraft/echo360-1.3/echo360/downloader.py
it seems like you aren't using 1.4 previously as you stated
from echo360.
Hi, thanks for the response and commit! I checked 1.4 first and got the same error, so I tried 1.3 instead, thinking maybe something broke inbetween the updates (since 1.3 was the one that supposedly fixed the UTF encoding).
Upon running echo360 again with the changes from the latest commit, I get this:
File "/home/liquidcrystal/Desktop/Hilfskraft/echo360-1.4/echo360/downloader.py", line 170, in download_all
self._course.course_id, self._course.course_name).strip())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
from echo360.
Hi! Sorry are you sure you are using the latest commit (i.e. the master branch)? The download link is https://github.com/soraxas/echo360/archive/master.zip and it should have a folder named echo360-master
from echo360.
Yup! I simply downloaded the new updated files manually and overwrote the old ones. I also tried using the zip you linked just now, but I'm still getting the same error.
Traceback (most recent call last):
File "echo360.py", line 269, in
main()
File "echo360.py", line 223, in main
downloader.download_all()
File "/home/liquidcrystal/Desktop/Hilfskraft/echo360-master/echo360/downloader.py", line 170, in download_all
self._course.course_id, self._course.course_name).strip())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)
from echo360.
Hi apology about all the madness with the python2 encoding issues. Can you try to run with the latest commit?
from echo360.
Yet another decoding error:
Traceback (most recent call last):
File "echo360.py", line 269, in
main()
File "echo360.py", line 223, in main
downloader.download_all()
File "/home/liquidcrystal/.local/share/Trash/files/echo360-master/echo360/downloader.py", line 170, in download_all
self._course.course_id, self._course.course_name).strip())
File "/home/liquidcrystal/.local/share/Trash/files/echo360-master/echo360/course.py", line 76, in course_name
return self._course_name.decode('utf-8').encode('utf-8')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 6: ordinal not in range(128)
If you want, I can PM you the URL for the course and you can do some bugtesting yourself? I don't mind doing it, but going through me every time might be a pretty slow process.
from echo360.
@Aposke Yes that probably would make this process easier
from echo360.
Related Issues (20)
- Unable to download for Canadian Echo360 HOT 2
- --after-date and --before-date don't work HOT 4
- Chrome driver fails to launch Chrome HOT 1
- After downloading the files, they get deleted. Result is empty download folder. HOT 3
- echo360.py cant find the video as there is no home page for it HOT 6
- Failed to get m3u8 info for EchoCourse! HOT 2
- PHANTOMJS removed in selenium v4 HOT 3
- Doesn't work for UNSW HOT 2
- Ways to download single media file HOT 1
- Missing or invalid capabilities in selenium HOT 6
- Outdated chromedriver HOT 4
- how to download public video HOT 1
- SSL Error HOT 2
- chromedriver for M1 mac? HOT 7
- transcript download? HOT 4
- Bump selenium to 4.16.0. HOT 3
- Running pip install echo360 installs a selenium version incompatible with chrome version HOT 1
- Update pypi version
- Use cookies for authentication HOT 1
- Some Error in downloader.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echo360.