rwev / bible Goto Github PK
View Code? Open in Web Editor NEWRead the Bible from the terminal with python and curses.
License: GNU General Public License v3.0
Read the Bible from the terminal with python and curses.
License: GNU General Public License v3.0
I've installed according to your instructions (running on Arch Linux) and when I try to run the application I get the following:
Traceback (most recent call last):
File "/home/jman223/.local/bin/bible", line 5, in
from bible.main import main
File "/home/jman223/.local/lib/python3.9/site-packages/bible/main.py", line 6, in
from textwrap2 import wrap
ModuleNotFoundError: No module named 'textwrap2'
Suggestions?
Fixed. Unfortunately as a side effect, I had to remove the G
(jump to end) vim-style keybinding because it isn't compatible with how the displayed item boundaries are managed.
Right now, the beginning and end boundaries should always have a difference between them equal to the height of the viewport, curses.LINES - 2
, Otherwise, changing the book selection to one with more chapters would result in truncation.
Jumping to the end of the list and showing the last curses.LINES - 2
items may result in the beginning index becoming negative, depending on the length of the list, which would break the ListWindow.draw
routine and further boundary changes.
Originally posted by @rwev in #5 (comment)
Traceback (most recent call last):
File "/usr/local/bin/bible", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 203, in main
curses.wrapper(Main)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 37, in __init__
self.start_input_loop()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 199, in start_input_loop
self.update_text()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 123, in update_text
wrap(
File "/usr/local/lib/python3.9/site-packages/textwrap2/__init__.py", line 13, in wrap
return w.wrap(text)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/textwrap.py", line 354, in wrap
return self._wrap_chunks(chunks)
File "/usr/local/lib/python3.9/site-packages/textwrap2/python3.py", line 67, in _wrap_chunks
hyphenated_chunk = self.use_hyphenator.wrap(chunks[-1], width - cur_len)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 123, in wrap
p = self.pairs(word)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 81, in pairs
return self.apply(word, 1)
IndexError: list assignment index out of range
Traceback (most recent call last):
File "/home/jajpater/.local/bin/bible", line 5, in
from bible.main import main
File "/home/jajpater/.local/lib/python3.8/site-packages/bible/main.py", line 3, in
from reader import Reader
ModuleNotFoundError: No module named 'reader'
When a Biblebook has more chapters than numbers visible on the screen you can navigate to the chapternumber but the chapternumber will not become visible. For instance the book of Genesis has 50 chapters only numbers 1 to 47 are visible for me, I can reach 50 but I can't see the chapter number or the cursor.
Hi, I'm very interested in your app but when I try to run the app, my terminal says "AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' ". Is there something else I need to run this app? I have Python 3.9 if that's relevant. I dropped a picture of what my terminal spits out when I try to run the bible command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.