Giter VIP home page Giter VIP logo

Comments (4)

JasonLovesDoggo avatar JasonLovesDoggo commented on August 16, 2024

I'm on my phone right now so I cant actually help you but as far as I can tell to fix this just comment out the print_md function call in the beginning of main.py

from redditvideomakerbot.

IStayThatWayCoding avatar IStayThatWayCoding commented on August 16, 2024

Now this happens::

$ python3 main.py
+-----------------------------------------------------------------------------+
| Getting AskReddit threads... |
+-----------------------------------------------------------------------------+
Video will be: What slang word did you hear that let you know you are no longer
Traceback (most recent call last):
File "C:\Users\justi\Desktop\RedditVideoMakerBot\main.py", line 16, in
reddit_object = get_askreddit_threads()
File "C:\Users\justi\Desktop\RedditVideoMakerBot\reddit\askreddit.py", line 27, in get_askreddit_threads
print_substep(f"Video will be: {submission.title} ๐Ÿ‘")
File "C:\Users\justi\Desktop\RedditVideoMakerBot\utils\console.py", line 26, in print_substep
console.print(text, style=style)
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1635, in print
with self:
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 838, in exit
self._exit_buffer()
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 796, in _exit_buffer
self._check_buffer()
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich\console.py", line 1988, in _check_buffer
legacy_windows_render(
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_windows_renderer.py", line 19, in legacy_windows_render
term.write_text(text)
File "C:\Users\justi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\rich_win32_console.py", line 379, in write_text
self.write(text)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f44d' in position 7: character maps to

from redditvideomakerbot.

SpaYco avatar SpaYco commented on August 16, 2024
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f44d' in position 7: character maps to

@IStayThatWayCoding it looks like whatever title you're receiving includes some special characters that fail to encode, \U0001f44d is an emoji (๐Ÿ‘), however when i try on my end, those work fine for me, i think this is an issue in your OS, what OS are you using?

try removing :thumbsup: on askreddit.py line 27, also ๐Ÿ˜Ž from background.py line 23, see if that helps.

from redditvideomakerbot.

IStayThatWayCoding avatar IStayThatWayCoding commented on August 16, 2024

On windows 11, just deleted all emojis in the .py files, everything works great!

from redditvideomakerbot.

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.