Comments (15)
they sometimes don't have uniform structure / conform to standards.
would you then at least notify the user or do something , instead of just nothing, no pop up , no notification ???
So basically its hit and miss ? not very good .. whats the point in this ..
I've download mutiple epub books and only 1 worked ..
would you not encorported to rebuild the ebook or try to fix the format if it does'nt meet your stringent requirements
pdf's are very easily created yet I dont have a problem creating a pdf from text file and using okular to open it .. it works fine a good programmer always blames someone else 👍
from lector.
@vendforce
The fuck are you on about? All software has a development process and time. Add to the fact that I'm doing this for free. Consider yourself blocked.
from lector.
I've made some additions that will allow launching with __main__.py
. I've also shaken my fist at the sky and muttered unintelligible cuss words to no one in particular.
from lector.
I had to install also lxml but still doesn't add any epub to the library.
Database returned no paths for settings...
Available parsers: *.epub *.mobi *.azw *.azw3 *.azw4 *.prc *.cbz *.cbr
Finished processing in 0.12314081192016602
Finished processing in 0.12201285362243652
Finished processing in 0.12334322929382324
Finished processing in 0.12205934524536133
Saving settings...
from lector.
Could you please link me to that epub? Since they're so easily created, they sometimes don't have uniform structure / conform to standards.
It'll let me know for certain if there's something wrong with the code.
from lector.
When adding this book: https://www.gutenberg.org/ebooks/1342 (the no images version), nothing appeared in the gui. I restarted, it still wasn't there.
Then I ran Settings > Scan library. It started scanning 3000 books, so i just restarted. But then the book I'd initially added finally did show up in the gui, and adding new books now works.
Some books work, but I can't open the Gutenberg book. When i double click it, i get...
Available parsers: *.epub *.mobi *.azw *.azw3 *.azw4 *.prc *.cbz *.cbr
Attempting to open: C:/Downloads/pg1342.epub
Exception in thread Thread-1:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "C:\Pythons\Python3\lib\multiprocessing\pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "C:\Pythons\Python3\lib\multiprocessing\pool.py", line 44, in mapstar
return list(map(*args))
File "C:\Pythons\Lector\lector\sorter.py", line 209, in read_book
all_content = book_ref.get_contents()
File "C:\Pythons\Lector\parsers\epub.py", line 65, in get_contents
self.book_ref.parse_chapters(temp_dir=self.temp_dir)
File "C:\Pythons\Lector\ePub\read_epub.py", line 239, in parse_chapters
cover_temp.write(self.book['cover'])
TypeError: a bytes-like object is required, not 'NoneType'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Pythons\Python3\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Pythons\Python3\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Pythons\Lector\lector\sorter.py", line 253, in pool_creator
self.read_book, self.file_list)
File "C:\Pythons\Python3\lib\multiprocessing\pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Pythons\Python3\lib\multiprocessing\pool.py", line 644, in get
raise self._value
TypeError: a bytes-like object is required, not 'NoneType'
This is on Windows with Anaconda 3.6.2/PyQt 5.6.0
from lector.
@jojurgens
It was an oversight on my end considering all the books I'd added had at least one image in them. That book is working now. It's chapters aren't split properly, but I'll fix that soon.
For future reference, please create a new issue even if there's a book that doesn't work. I'd like to be able to tell the reasons apart.
from lector.
@BasioMeusPuga I tried the following epub/Kindle https://www.gutenberg.org/ebooks/345 images/no images.
Still doesn't show anything. I did a rebase, I'll try to do a clean clone later.
~/p/Lector> python ./lector/main.py
Database returned no paths for settings...
Available parsers: *.epub *.mobi *.azw *.azw3 *.azw4 *.prc *.cbz *.cbr
Finished processing in 0.12171006202697754
Finished processing in 0.1214146614074707
Finished processing in 0.12045741081237793
Saving settings...
from lector.
@delfino-nunez
That book is working for me. A clean clone would be a good idea, yes. In case it still doesn't function, make sure your installations of Lector's requirements are up to date. Please also furnish details of your platform.
from lector.
@BasioMeusPuga I did a new clone, but the issue wasn't that.
The issue was that I didn't "scan" the library, after scanning the library it show up some files, but then I found other bugs.
You can see what is happening in the next gif: https://imgur.com/a/rKx4X
If you want I can open other bugs.
Platform:
Linux Neon 5.12
KDE Plasma 5.12.3
QT 5.10.0
Kernel 4.13.0.36-generic
Python 3.6.3
from lector.
@delfino-nunez
I've pushed some fixes. Please see if you can replicate those errors.
from lector.
@BasioMeusPuga I just pulled the latest changes and you introduced a new bug :)
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> git pull
Already up-to-date.
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> python ./lector/__main__.py
Traceback (most recent call last):
File "./lector/__main__.py", line 31, in <module>
from lector.guifunctions import QImageFactory
ModuleNotFoundError: No module named 'lector.guifunctions'
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> ls -lrt ./lector/guifunctions.py
-rw-rw-r-- 1 delfino delfino 1116 Mar 14 21:31 ./lector/guifunctions.py
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> grep "QImageFactory" ./lector/guifunctions.py
class QImageFactory:
from lector.
@BasioMeusPuga I wonder if I'm doing something wrong my self, just pulled latest changes but still get the same error:
delfino@delfino-pc ~/p/Lector> git pull
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 3), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/BasioMeusPuga/Lector
5d3ce17..55545f6 master -> origin/master
Updating 5d3ce17..55545f6
Fast-forward
README.md | 10 ++++++++++
lector/__main__.py | 8 ++++++++
2 files changed, 18 insertions(+)
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> python ./lector/__main__.py
Traceback (most recent call last):
File "./lector/__main__.py", line 39, in <module>
from lector.guifunctions import QImageFactory
ModuleNotFoundError: No module named 'lector.guifunctions'
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> git pull
Already up-to-date.
(Lector-qOw1XMLY) delfino@delfino-pc ~/p/Lector> python ./lector/__main__.py
Traceback (most recent call last):
File "./lector/__main__.py", line 39, in <module>
from lector.guifunctions import QImageFactory
ModuleNotFoundError: No module named 'lector.guifunctions'
I'll check again tomorrow...
from lector.
I'm a little confused myself. When you try next, could you just install it instead with the instructions in the README? I would actually recommend that.
from lector.
Is working now. I did a clean clone and make sure I was using python 3.6 in my virtual environment.
I found 2 other bugs, but I will create new ones.
I'll close this one.
Thanks
from lector.
Related Issues (20)
- Consider using fbs to streamline release? HOT 2
- Cannot use annotator and search option [Ubuntu 18.04] HOT 1
- Install error - pip install -r requirements.txt (Could not find a version that satisfies the requirement) HOT 1
- Price-matching Koreader HOT 2
- Question: Windows support HOT 13
- Ubuntu 20.04 HOT 3
- epub _ best fit HOT 2
- Pdf file support
- Can't Open .epub Files HOT 1
- "scalable" icons directory should only be used for scalable (vector) image formats HOT 1
- Two columns?
- Define not working
- /usr/lib/python3.8/site-packages/fitz/_fitz.cpython-38-x86_64-linux-gnu.so: undefined symbol: jbig2_page_out HOT 1
- Is this project still active?
- Feature Request: Metadata download
- Flash back occurs when reading PDF
- Cannot click links inside ebooks
- Error in sizeHint, bad arguments HOT 5
- ThePyMuPDF version in requirement.txt can't be installed HOT 2
- How to use epub_reader
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 lector.