Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32-bit Python MemoryError #14

Open
IamEld3st opened this issue Oct 16, 2020 · 0 comments
Open

32-bit Python MemoryError #14

IamEld3st opened this issue Oct 16, 2020 · 0 comments
Labels
backlog Might be fixed, not a priority

Comments

@IamEld3st
Copy link
Owner

Messaged by a discord user about MemoryError...

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "main", mod_spec)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\Scripts\yt_ddl.exe__main.py", line 7, in <module>
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py", line 829, in call__
    return self.main(args, **kwargs)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, ctx.params)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py", line 610, in invoke
    return callback(args, **kwargs)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\yt_ddl\yt_ddl.py", line 305, in main
    v_data = download(v[kwargs["vf"]], range(start_segment, end_segment), download_threads)
  File "c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\yt_ddl\yt_ddl.py", line 117, in download
    combined_file.write(res)
MemoryError

Upon further investigation found this issue redis/redis-py#205 which talks about BytesIO/StringIO objects not handling a lot of data at once... a fix one of the comments proposed is chunking the data manually before writing to the IO object...
There was also a temporary/permanent possible fix of just installing 64-bit python...

This issue is not a priority as we can safely assume most users use a 64-bit system.

@IamEld3st IamEld3st added the backlog Might be fixed, not a priority label Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Might be fixed, not a priority
Projects
None yet
Development

No branches or pull requests

1 participant