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
Hey Jake, just recently found your project that uses pysword to generate JSON from the sword files. I ran into this error and wondered if you'd seen it before? I'm going to download the pysword code and see what I can find, but thought I'd also ask, just in case it was a known issue.
I am using Python 3.7.1, just in case that has bearing, but I tried it in Python 2.7 as well. I'm running a virtualenv to do this.
Sorry forgot to note. I had to install the package future. Not trying to be a pain, but a requirements.txt file for your required libs, which is only 2, but that way you could keep a list and people could just pip install -r requirements.txt.
Anyway, thank you so much for this project. I greatly appreciate seeing these out there. The digital Bible is just as powerful as the paper Bible. Still the Word of God!
ANYWAY! So here is the bug I ran into. Like I said, I'm also going to start with seeing where it is failing in pysword.
Traceback (most recent call last):
File "sword_to_json.py", line 56, in
if name == "main": main()
File "sword_to_json.py", line 53, in main
bible_dict = generate_dict(args.source_file, args.bible_version)
File "sword_to_json.py", line 27, in generate_dict
'text': bible.get(books=[book.name], chapters=[chapter], verses=[verse])
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 208, in get
output.extend(list(self.get_iter(books=books, chapters=chapters, verses=verses, clean=clean)))
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 189, in get_iter
text = self._text_for_index(testament, idx)
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 334, in _text_for_index
uncompressed_text = self._uncompressed_text(testament, buf_num)
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 355, in _uncompressed_text
return zlib.decompress(compressed_data)
zlib.error: Error -3 while decompressing data: incorrect header check
The text was updated successfully, but these errors were encountered:
Not sure what the difference was, but I cloned the pysword repo and ran it locally with your script instead of installing it, and it converted the ESV2011 file. Possible version difference than what they have in the pip repo. Not sure yet.... I'll let you know when I figure it out.
Ok, got a response from the pysword dev. The fix is already in the current codebase, but has not been re-deployed to the PIP service. So, you can close the issue.
Hey Jake, just recently found your project that uses pysword to generate JSON from the sword files. I ran into this error and wondered if you'd seen it before? I'm going to download the pysword code and see what I can find, but thought I'd also ask, just in case it was a known issue.
I am using Python 3.7.1, just in case that has bearing, but I tried it in Python 2.7 as well. I'm running a virtualenv to do this.
Sorry forgot to note. I had to install the package future. Not trying to be a pain, but a requirements.txt file for your required libs, which is only 2, but that way you could keep a list and people could just pip install -r requirements.txt.
Anyway, thank you so much for this project. I greatly appreciate seeing these out there. The digital Bible is just as powerful as the paper Bible. Still the Word of God!
ANYWAY! So here is the bug I ran into. Like I said, I'm also going to start with seeing where it is failing in pysword.
Traceback (most recent call last):
File "sword_to_json.py", line 56, in
if name == "main": main()
File "sword_to_json.py", line 53, in main
bible_dict = generate_dict(args.source_file, args.bible_version)
File "sword_to_json.py", line 27, in generate_dict
'text': bible.get(books=[book.name], chapters=[chapter], verses=[verse])
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 208, in get
output.extend(list(self.get_iter(books=books, chapters=chapters, verses=verses, clean=clean)))
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 189, in get_iter
text = self._text_for_index(testament, idx)
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 334, in _text_for_index
uncompressed_text = self._uncompressed_text(testament, buf_num)
File "/Users/rkeyes/git/personal/SWORD-to-JSON/venv/lib/python3.7/site-packages/pysword/bible.py", line 355, in _uncompressed_text
return zlib.decompress(compressed_data)
zlib.error: Error -3 while decompressing data: incorrect header check
The text was updated successfully, but these errors were encountered: