Open DonaldTsang opened 4 years ago
This project works on windows.
Is it possible to give a guide on how to use the releases zip file?
Prebuilt binaries for windows?
@codevenkat good idea, the thing is that the zips are not "open to use" @thomasjeung.
I really think you should get prebuilt binaries; I don't see anyone other than developers being able to build this application otherwise
Do you have problem compiling for windows? I was able to compile and run without any major hassel. Let me know where you got stuck, I might be able to help.
I have problems trying to get djvu support, the library doesn't seem to install for me
@thomasjeung @codevenkat any news? would like something like this to be included for windows first to gain interest. DjVU bugs seems minor as the majority uses MOBI and EPUB.
@BrandonKMLee If you are still struggling, try the below step.
For Step 3
ERROR: Could not find a version that satisfies the requirement PyMuPDF==1.14.8 (from versions: 1.11.2, 1.12.5, 1.13.20, 1.14.19.post2, 1.14.20, 1.14.21, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.16.7, 1.16.8, 1.16.9, 1.16.10, 1.16.11, 1.16.12, 1.16.13, 1.16.14, 1.16.15, 1.16.16, 1.16.17, 1.16.18, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.17.6, 1.17.7, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.18.6, 1.18.7, 1.18.8, 1.18.9, 1.18.10, 1.18.11, 1.18.12, 1.18.13, 1.18.14)
ERROR: No matching distribution found for PyMuPDF==1.14.8
When attempting to install
pip install PyMuPDF
Collecting PyMuPDF
Downloading PyMuPDF-1.18.14-cp39-cp39-win_amd64.whl (5.4 MB)
|████████████████████████████████| 5.4 MB 3.3 MB/s
Installing collected packages: PyMuPDF
Successfully installed PyMuPDF-1.18.14
pip install PyMuPDF==1.14.8
ERROR: Could not find a version that satisfies the requirement PyMuPDF==1.14.8 (from versions: 1.11.2, 1.12.5, 1.13.20, 1.14.19.post2, 1.14.20, 1.14.21, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.16.7, 1.16.8, 1.16.9, 1.16.10, 1.16.11, 1.16.12, 1.16.13, 1.16.14, 1.16.15, 1.16.16, 1.16.17, 1.16.18, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.17.6, 1.17.7, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.18.6, 1.18.7, 1.18.8, 1.18.9, 1.18.10, 1.18.11, 1.18.12, 1.18.13, 1.18.14)
ERROR: No matching distribution found for PyMuPDF==1.14.8
python setup.py build & python setup.py install
C:\Python39\lib\site-packages\setuptools\dist.py:477: UserWarning: The version specified ('0.5.GittyGittyBangBang') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
warnings.warn(
running build
running build_py
running egg_info
writing lector.egg-info\PKG-INFO
writing dependency_links to lector.egg-info\dependency_links.txt
writing entry points to lector.egg-info\entry_points.txt
writing requirements to lector.egg-info\requires.txt
writing top-level names to lector.egg-info\top_level.txt
adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
adding license file 'AUTHORS' (matched pattern 'AUTHORS*')
reading manifest file 'lector.egg-info\SOURCES.txt'
writing manifest file 'lector.egg-info\SOURCES.txt'
C:\Python39\lib\site-packages\setuptools\dist.py:477: UserWarning: The version specified ('0.5.GittyGittyBangBang') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
warnings.warn(
running install
running bdist_egg
running egg_info
writing lector.egg-info\PKG-INFO
writing dependency_links to lector.egg-info\dependency_links.txt
writing entry points to lector.egg-info\entry_points.txt
writing requirements to lector.egg-info\requires.txt
writing top-level names to lector.egg-info\top_level.txt
adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
adding license file 'AUTHORS' (matched pattern 'AUTHORS*')
reading manifest file 'lector.egg-info\SOURCES.txt'
writing manifest file 'lector.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\lector
copying build\lib\lector\annotations.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\contentwidgets.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\database.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\definitionsdialog.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\delegates.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\dockwidgets.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\guifunctions.py -> build\bdist.win-amd64\egg\lector
creating build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\compatibility_utils.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\kindleunpack.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_cover.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_dict.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_header.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_html.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_index.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_k8proc.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_k8resc.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_nav.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_ncx.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_opf.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_pagemap.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_sectioner.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_split.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_uncompress.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\mobi_utils.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\unipath.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\unpack_structure.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\KindleUnpack\__init__.py -> build\bdist.win-amd64\egg\lector\KindleUnpack
copying build\lib\lector\library.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\logger.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\metadatadialog.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\models.py -> build\bdist.win-amd64\egg\lector
creating build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\comicbooks.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\djvu.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\epub.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\fb2.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\markdown.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\mobi.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\pdf.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\txt.py -> build\bdist.win-amd64\egg\lector\parsers
copying build\lib\lector\parsers\__init__.py -> build\bdist.win-amd64\egg\lector\parsers
creating build\bdist.win-amd64\egg\lector\rarfile
copying build\lib\lector\rarfile\dumprar.py -> build\bdist.win-amd64\egg\lector\rarfile
copying build\lib\lector\rarfile\rarfile.py -> build\bdist.win-amd64\egg\lector\rarfile
copying build\lib\lector\rarfile\__init__.py -> build\bdist.win-amd64\egg\lector\rarfile
creating build\bdist.win-amd64\egg\lector\readers
copying build\lib\lector\readers\read_epub.py -> build\bdist.win-amd64\egg\lector\readers
copying build\lib\lector\readers\read_fb2.py -> build\bdist.win-amd64\egg\lector\readers
copying build\lib\lector\readers\__init__.py -> build\bdist.win-amd64\egg\lector\readers
creating build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\about.html -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\annotationswindow.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\definitions.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\mainwindow.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\metadata.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\pie_chart.py -> build\bdist.win-amd64\egg\lector\resources
creating build\bdist.win-amd64\egg\lector\resources\raw
copying build\lib\lector\resources\raw\io.github.BasioMeusPuga.Lector.desktop -> build\bdist.win-amd64\egg\lector\resources\raw
copying build\lib\lector\resources\raw\Lector.png -> build\bdist.win-amd64\egg\lector\resources\raw
copying build\lib\lector\resources\resources.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\settingswindow.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\resources\__init__.py -> build\bdist.win-amd64\egg\lector\resources
copying build\lib\lector\settings.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\settingsdialog.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\sorter.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\threaded.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\toolbars.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\widgets.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\__init__.py -> build\bdist.win-amd64\egg\lector
copying build\lib\lector\__main__.py -> build\bdist.win-amd64\egg\lector
byte-compiling build\bdist.win-amd64\egg\lector\annotations.py to annotations.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\contentwidgets.py to contentwidgets.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\database.py to database.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\definitionsdialog.py to definitionsdialog.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\delegates.py to delegates.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\dockwidgets.py to dockwidgets.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\guifunctions.py to guifunctions.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\compatibility_utils.py to compatibility_utils.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\kindleunpack.py to kindleunpack.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_cover.py to mobi_cover.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_dict.py to mobi_dict.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_header.py to mobi_header.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_html.py to mobi_html.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_index.py to mobi_index.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_k8proc.py to mobi_k8proc.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_k8resc.py to mobi_k8resc.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_nav.py to mobi_nav.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_ncx.py to mobi_ncx.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_opf.py to mobi_opf.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_pagemap.py to mobi_pagemap.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_sectioner.py to mobi_sectioner.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_split.py to mobi_split.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_uncompress.py to mobi_uncompress.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\mobi_utils.py to mobi_utils.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\unipath.py to unipath.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\unpack_structure.py to unpack_structure.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\KindleUnpack\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\library.py to library.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\logger.py to logger.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\metadatadialog.py to metadatadialog.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\models.py to models.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\comicbooks.py to comicbooks.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\djvu.py to djvu.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\epub.py to epub.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\fb2.py to fb2.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\markdown.py to markdown.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\mobi.py to mobi.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\pdf.py to pdf.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\txt.py to txt.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\parsers\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\rarfile\dumprar.py to dumprar.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\rarfile\rarfile.py to rarfile.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\rarfile\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\readers\read_epub.py to read_epub.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\readers\read_fb2.py to read_fb2.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\readers\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\annotationswindow.py to annotationswindow.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\definitions.py to definitions.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\mainwindow.py to mainwindow.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\metadata.py to metadata.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\pie_chart.py to pie_chart.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\resources.py to resources.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\settingswindow.py to settingswindow.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\resources\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\settings.py to settings.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\settingsdialog.py to settingsdialog.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\sorter.py to sorter.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\threaded.py to threaded.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\toolbars.py to toolbars.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\widgets.py to widgets.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\lector\__main__.py to __main__.cpython-39.pyc
installing package data to build\bdist.win-amd64\egg
running install_data
creating build\bdist.win-amd64\egg\share
creating build\bdist.win-amd64\egg\share\icons
creating build\bdist.win-amd64\egg\share\icons\hicolor
creating build\bdist.win-amd64\egg\share\icons\hicolor\scalable
creating build\bdist.win-amd64\egg\share\icons\hicolor\scalable\apps
copying lector\resources\raw\Lector.png -> build\bdist.win-amd64\egg\share\icons\hicolor\scalable\apps
creating build\bdist.win-amd64\egg\share\applications
copying lector\resources\raw\io.github.BasioMeusPuga.Lector.desktop -> build\bdist.win-amd64\egg\share\applications
creating build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying lector.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
lector.KindleUnpack.__pycache__.kindleunpack.cpython-39: module references __file__
lector.KindleUnpack.__pycache__.kindleunpack.cpython-39: module references __path__
lector.__pycache__.__main__.cpython-39: module references __file__
lector.__pycache__.settingsdialog.cpython-39: module references __file__
creating 'dist\lector-0.5.GittyGittyBangBang-py3.9.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing lector-0.5.GittyGittyBangBang-py3.9.egg
removing 'c:\python39\lib\site-packages\lector-0.5.GittyGittyBangBang-py3.9.egg' (and everything under it)
creating c:\python39\lib\site-packages\lector-0.5.GittyGittyBangBang-py3.9.egg
Extracting lector-0.5.GittyGittyBangBang-py3.9.egg to c:\python39\lib\site-packages
lector 0.5.GittyGittyBangBang is already the active version in easy-install.pth
Installing lector-script.pyw script to C:\Python39\Scripts
Installing lector.exe script to C:\Python39\Scripts
Installed c:\python39\lib\site-packages\lector-0.5.gittygittybangbang-py3.9.egg
Processing dependencies for lector===0.5.GittyGittyBangBang
Searching for beautifulsoup4==4.9.3
Best match: beautifulsoup4 4.9.3
Adding beautifulsoup4 4.9.3 to easy-install.pth file
Using c:\python39\lib\site-packages
Searching for soupsieve==2.1
Best match: soupsieve 2.1
Adding soupsieve 2.1 to easy-install.pth file
Using c:\python39\lib\site-packages
Finished processing dependencies for lector===0.5.GittyGittyBangBang
writing list of installed files to 'install.txt'
Some feedback:
To run this on Windows we only need to fix some of the requirements version
python
and git
git clone https://github.com/BasioMeusPuga/Lector
cd Lector
python -m pip install beautifulsoup4==4.7.1 lxml==4.6.5 PyMuPDF PyQt5 PyQt5-sip soupsieve==1.7.3 xmltodict==0.11.0
python -m lector
Some impressions on this app
QTextBrowserView
rather than QWebEngineView
which should use less resource and the rendering result is suprisingly pretty good
Does this repo work on windows, since Qt does work on windows? If not, what changes would need to be in place to allow for that?