You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want use only the parser part of this library but instead of ti, it is loading all the bible data and my server is crashing because of memory amount:
avinuteologia-1 | import pythonbible as pb
avinuteologia-1 | File "/usr/local/lib/python3.10/site-packages/pythonbible/__init__.py", line 30, in <module>
avinuteologia-1 | from .formatter import format_scripture_references
avinuteologia-1 | File "/usr/local/lib/python3.10/site-packages/pythonbible/formatter.py", line 8, in <module>
avinuteologia-1 | from pythonbible.bible.bibles import get_bible
avinuteologia-1 | File "/usr/local/lib/python3.10/site-packages/pythonbible/bible/bibles.py", line 5, in <module>
avinuteologia-1 | import pythonbible.bible.asv.html as asv_html
avinuteologia-1 | File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
avinuteologia-1 | File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
avinuteologia-1 | File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
avinuteologia-1 | File "<frozen importlib._bootstrap_external>", line 879, in exec_module
avinuteologia-1 | File "<frozen importlib._bootstrap_external>", line 975, in get_code
avinuteologia-1 | File "<frozen importlib._bootstrap_external>", line 1074, in get_data
avinuteologia-1 | MemoryError
I'm hoping that the draft PR that I linked to this issue will fix this. It introduces lazy-loading of the version texts (along with a lot more versions), and should be more memory-efficient as long as you aren't actually looking up the text from multiple versions all at the same time.
Activity
avendesora commentedon Jul 30, 2024
I'm hoping that the draft PR that I linked to this issue will fix this. It introduces lazy-loading of the version texts (along with a lot more versions), and should be more memory-efficient as long as you aren't actually looking up the text from multiple versions all at the same time.