Lector icon indicating copy to clipboard operation
Lector copied to clipboard

Not opening any book on Ubuntu 18.04

Open shamim2018 opened this issue 6 years ago • 19 comments
trafficstars

I followed these instructions:

#!/bin/bash

sudo apt install qt5-default pyqt5-dev pyqt5-dev-tools python3-poppler-qt5 libpoppler-qt5-1 libpoppler-qt5-dev python3-pip

pip3 install beautifulsoup4

mkdir git

cd git

git clone https://github.com/BasioMeusPuga/Lector.git

cd Lector/

python3 setup.py build

sudo python3 setup.py install

And it installed successfully. But not opening any books.

shamim2018 avatar Jan 08 '19 14:01 shamim2018

Can you tell me what errors you're getting in the terminal?

BasioMeusPuga avatar Jan 09 '19 00:01 BasioMeusPuga

its not opening any files and no errors in terminal

avago621 avatar Jan 16 '19 20:01 avago621

I run the program in windows platform. When i touch the "Add book" button, and then i choose a file which format is *.azw3, next i click open and it failed to add into the interface. In the main window, I just see a whole black. capture

krystalxiao666 avatar Jan 17 '19 07:01 krystalxiao666

@avago621 I'm going to need a little more information to go on. What platform are you running on? What did you do for dependencies? Can you include a copy of the book?

@krystalxiao666 Can you please include a copy of the book so I can make sure it's the code that's the issue?

BasioMeusPuga avatar Jan 17 '19 11:01 BasioMeusPuga

Everyone in this thread, will you please check if python-lxml is installed?

BasioMeusPuga avatar Jan 18 '19 19:01 BasioMeusPuga

@BasioMeusPuga Ubuntu 18.04 64bit installed the dependencies from Synaptic package manager Learn German .pdf

avago621 avatar Jan 18 '19 20:01 avago621

python-lxml is installed

avago621 avatar Jan 18 '19 20:01 avago621

@avago621 Does the terminal / log say you don't have python-poppler-qt5 installed? Because that's needed to parse pdf files.

BasioMeusPuga avatar Jan 19 '19 17:01 BasioMeusPuga

it works now after installed the python3-lxml do i uninstall python-lxml ? python-poppler-qt5 is installed

avago621 avatar Jan 19 '19 18:01 avago621

@BasioMeusPuga

avago621 avatar Jan 19 '19 18:01 avago621

but its a bit slow

avago621 avatar Jan 19 '19 18:01 avago621

@BasioMeusPuga I can't upload the file which format is .azw3 python-lxml is installed .

krystalxiao666 avatar Jan 21 '19 02:01 krystalxiao666

@BasioMeusPuga capture

krystalxiao666 avatar Jan 21 '19 02:01 krystalxiao666

@BasioMeusPuga as last picture shows, i add a file .azw3 ,but the main window has nothing

krystalxiao666 avatar Jan 21 '19 02:01 krystalxiao666

@BasioMeusPuga another problem , i can't install python_poppler_qt5 in my windows pc error_pythonpopper

krystalxiao666 avatar Jan 21 '19 02:01 krystalxiao666

I successfully installed Lector on Debian Buster (with newest packages). I have Anaconda3 installed on my system.

  1. git clone https://github.com/BasioMeusPuga/Lector.git
  2. cd Lector
  3. pip install xmltodict
  4. Using Synaptic I added: python-xmltodict, python3-xmltodict, python-pyqt5, python3-pyqt5, python-lxml, python3-lxml, python3-poppler-qt5
  5. python setup.py build
  6. python setup.py install

Lector was installed in ~/anaconda3/lib/python3.7/site-packages/lector directory. Open terminal in that folder and type: python3 main.py (write correct program name, not "main"! I wite something, github deletes double underlines).

I have other necessary packages already installed. So message is... program is possible to install and run. Even on newest testing version.

Program works fast, pictures looks good, reads many format, like azw3 for example.

My lector.desktop:

[Desktop Entry] Categories=Qt;KDE;Graphics;Viewer; Comment=A Qt based ebook reader Exec=python3 /home/jameskent/anaconda3/lib/python3.7/site-packages/lector/main.py GenericName=eBook Reader Icon=/home/jameskent/anaconda3/lib/python3.7/site-packages/lector/resources/raw/Lector.png MimeType=application/pdf;application/x-cbr;application/ereader;application/x-mobipocket-subscription;application/x-mobipocket-ebook;application/x$ Name=Lector Type=Application X-KDE-StartupNotify=false X-Desktop-File-Install-Version=0.23

"main" is not really "main", has double underline before and after

jameskentTX avatar Feb 21 '19 11:02 jameskentTX

I followed these instructions: #!/bin/bash sudo apt install qt5-default pyqt5-dev pyqt5-dev-tools python3-poppler-qt5 libpoppler-qt5-1 libpoppler-qt5-dev python3-pip pip3 install beautifulsoup4 mkdir git cd git git clone https://github.com/BasioMeusPuga/Lector.git cd Lector/ python3 setup.py build sudo python3 setup.py install

I was going to post an issue but this guide solved it. The instructions are clearer about which version of python is being used, whereas the instructions for the manual install in the readme is not and might lead to confusion. It might be worthwhile to amend those instructions.

My E-Book repository is immense and as a result, I've stored it in an entire file-system. It might be nice to add the ability to import entire folders worth of books instead of having to do it one-at-a-time as it currently is.

The page selector drop-down menu might make sense for a manga or comic book, but it feels clunky compared to a simple scroll-down read like in Okular. I will admit that i am unfamiliar with Lector so if there is a way to do it in a scroll-down fashion then please let me know. If no feature exists though, then it may be worth considering.

LordUbuntu avatar Feb 22 '19 07:02 LordUbuntu

  1. Different distros have different conventions about what they want to call their packages. Which is why python3 is not a version, and 3.6 is. Which is also why the README says what the minimum version is. I also don't recommend installing python packages systemwide using pip because of potential conflicts. Which is why I'm working on a .deb / snap package for next release.

  2. Press the Settings button in the toolbar. The first thing it'll show you is the Library. Select whatever directory your ebooks are in.

  3. I'll think about the scroll down.

BasioMeusPuga avatar Feb 22 '19 08:02 BasioMeusPuga

  1. Apologies, i was not aware of this.
  2. Thank you.
  3. Thank you.

LordUbuntu avatar Feb 22 '19 18:02 LordUbuntu