Git Product home page Git Product logo

Comments (11)

soraxas avatar soraxas commented on August 16, 2024 1

fixed in 8d19dae.

from echo360.

soraxas avatar soraxas commented on August 16, 2024

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.

soraxas avatar soraxas commented on August 16, 2024

fixed in #8

from echo360.

Aposke avatar Aposke commented on August 16, 2024

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.

soraxas avatar soraxas commented on August 16, 2024

@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.

Aposke avatar Aposke commented on August 16, 2024

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.

soraxas avatar soraxas commented on August 16, 2024

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.

Aposke avatar Aposke commented on August 16, 2024

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.

soraxas avatar soraxas commented on August 16, 2024

Hi apology about all the madness with the python2 encoding issues. Can you try to run with the latest commit?

from echo360.

Aposke avatar Aposke commented on August 16, 2024

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.

soraxas avatar soraxas commented on August 16, 2024

@Aposke Yes that probably would make this process easier

from echo360.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.