Comments (4)
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.
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.
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.
On windows 11, just deleted all emojis in the .py files, everything works great!
from redditvideomakerbot.
Related Issues (20)
- [Bug]: TTS.TikTok.TikTokTTSException: Code: 2, reason: the text is too long, message: Text too long to create speech audio HOT 1
- [Feature]: Word by Word caption for reader mode HOT 2
- [Bug]: Keyerror: "tag_name" HOT 2
- [Feature]: Update screenshots to beta layout
- [Bug]: Timeout during the screenshots downloading #1898 HOT 4
- [Bug]: TTS skips words when there is a line between text HOT 4
- AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY' HOT 3
- [Feature]: Copy to clipboard mp4 title
- [Bug]: waiting for locator("[name="username"]") HOT 8
- [Bug]: Which file to modify Story mode !? HOT 2
- [Bug]: screenshot timeout after Skipping translation HOT 4
- Timeout 30000ms exceeded even after new UI layout when taking screenshots HOT 21
- CI revamp. HOT 2
- [Bug]: `KeyError: 'tag_name'` because of GitHub API's rate limit HOT 2
- [Bug]: Stream specifier '' in filtergraph description [0]crop=ih*(1080/1920):ih[s0] matches no streams.
- [Bug]: Problem with merging AI audio HOT 3
- [Bug]: Faceplate error HOT 2
- [Bug]: Screenshot eยท HOT 6
- [Bug]: HOT 2
- [Experimental Bug] Linux/Mac Installer script did not install correctly. HOT 4
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 redditvideomakerbot.