BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.51k stars 208 forks source link

Not opening any book on Ubuntu 18.04 #87

Open shamim2018 opened 5 years ago

shamim2018 commented 5 years ago

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.

BasioMeusPuga commented 5 years ago

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

avago621 commented 5 years ago

its not opening any files and no errors in terminal

krystalxiao666 commented 5 years ago

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

BasioMeusPuga commented 5 years ago

@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 commented 5 years ago

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

avago621 commented 5 years ago

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

avago621 commented 5 years ago

python-lxml is installed

BasioMeusPuga commented 5 years ago

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

avago621 commented 5 years ago

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

avago621 commented 5 years ago

@BasioMeusPuga

avago621 commented 5 years ago

but its a bit slow

krystalxiao666 commented 5 years ago

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

krystalxiao666 commented 5 years ago

@BasioMeusPuga capture

krystalxiao666 commented 5 years ago

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

krystalxiao666 commented 5 years ago

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

jameskentTX commented 5 years ago

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

LordUbuntu commented 5 years ago

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.

BasioMeusPuga commented 5 years ago
  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.

LordUbuntu commented 5 years ago
  1. Apologies, i was not aware of this.
  2. Thank you.
  3. Thank you.