eliranwong / UniqueBible

A cross-platform bible application, integrated with high-quality resources and amazing features, running offline in Windows, macOS and Linux, ChromeOS, Android, iOS. Various running modes are supported.
https://UniqueBible.app
GNU General Public License v3.0
131 stars 37 forks source link

Create a pip package #1448

Closed eliranwong closed 2 weeks ago

eliranwong commented 3 weeks ago

Create a pip package

For integration with ToolMate AI

eliranwong commented 3 weeks ago

First run with errors:

pip tool updated!
Installing 'html-text' ...
Module 'html-text' is installed!
Installed!
Installing 'mammoth' ...
Module 'mammoth' is installed!
Installed!
Installing 'htmldocx' ...
Module 'htmldocx' is installed!
Installed!
Installing 'diff_match_patch' ...
Module 'diff_match_patch' is installed!
Installed!
Installing 'pygithub' ...
Module 'pygithub' is installed!
Installed!
Installing 'qt-material' ...
Module 'qt-material' is installed!
Installed!
Installing 'telnetlib3' ...
Module 'telnetlib3' is installed!
Installed!
Installing 'ibm-watson' ...
Module 'ibm-watson' is installed!
Installed!
Installing 'translate' ...
Module 'translate' is installed!
Installed!
[nltk_data] Downloading package wordnet to /home/ubuntu/nltk_data...
[nltk_data] Downloading package omw-1.4 to /home/ubuntu/nltk_data...
Installing 'word-forms' ...
Module 'word-forms' is installed!
Installed!
Installing 'lemmagen3' ...
Module 'lemmagen3' is installed!
Installed!
Installing 'chinese-english-lookup' ...
Module 'chinese-english-lookup' is installed!
Installed!
Installing 'textract' ...
b"WARNING: Ignoring version 1.6.5 of textract since it has invalid metadata:\nRequested textract from https://files.pythonhosted.org/packages/6b/3e/ac16b6bf28edf78296aea7d0cb416b49ed30282ac8c711662541015ee6f3/textract-1.6.5-py3-none-any.whl has invalid metadata: .* suffix can only be used with `==` or `!=` operators\n    extract-msg (<=0.29.*)\n                 ~~~~~~~^\nPlease use pip<24.1 if you need to use this version.\n  error: subprocess-exited-with-error\n  \n  \xc3\x97 python setup.py egg_info did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [3 lines of output]\n      error in textract setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; .* suffix can only be used with `==` or `!=` operators\n          extract-msg<=0.29.*\n                     ~~~~~~~^\n      [end of output]\n  \n  note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: metadata-generation-failed\n\n\xc3\x97 Encountered error while generating package metadata.\n\xe2\x95\xb0\xe2\x94\x80> See above for output.\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for details.\n"
Optional feature 'Extract text from document' is not enabled.
Run 'pip3 install textract' to install it first.
Installing 'pyluach' ...
Module 'pyluach' is installed!
Installed!
Installing 'gmplot' ...
Module 'gmplot' is installed!
Installed!
Installing 'haversine' ...
Module 'haversine' is installed!
Installed!
Installing 'pickley' ...
Module 'pickley' is installed!
Installed!
Installing 'asyncssh' ...
Module 'asyncssh' is installed!
Installed!
Installing 'validators' ...
Module 'validators' is installed!
Installed!
Installing 'llama-index' ...
Module 'llama-index' is installed!
Optional feature 'Lama Index (GPT Index)' is not enabled.
Run 'pip3 install llama-index' to install it first.
Installing 'pocketsphinx' ...
Module 'pocketsphinx' is installed!
Installed!
Installing 'duckduckgo-search' ...
Module 'duckduckgo-search' is installed!
Optional feature 'DuckDuckGo.com search' is not enabled.
Run 'pip3 install duckduckgo-search' to install it first.
Installing '--upgrade gdown' ...
Module '--upgrade gdown' is installed!
Downloading initial content 'images.sqlite' ...
Downloaded!
Unpacking ...
'images.sqlite' is installed!
Downloading initial content 'cCBSC.commentary' ...
Downloaded!
Unpacking ...
'cCBSC.commentary' is installed!
Failed to run 'addHoverFeatureToBibleLinks.py'!
Error in sys.excepthook:
Traceback (most recent call last):
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/startup/share.py", line 64, in global_excepthook
    print(traceback.format_exc())
AttributeError: 'traceback' object has no attribute 'format_exc'

Original exception was:
Traceback (most recent call last):
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/main.py", line 147, in <module>
    from uniquebible.startup.guiQt import *
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/startup/guiQt.py", line 301, in <module>
    runStartupPlugins()
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/startup/share.py", line 18, in runStartupPlugins
    config.mainWindow.execPythonFile(script)
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/gui/MainWindow.py", line 5399, in execPythonFile
    self.crossPlatform.execPythonFile(script)
  File "/home/ubuntu/eliran/apps/toolmate/lib/python3.10/site-packages/uniquebible/util/CrossPlatform.py", line 212, in execPythonFile
    if config.developer:
AttributeError: module 'config' has no attribute 'developer'
eliranwong commented 3 weeks ago

Screenshot from 2024-10-10 18-51-23 Screenshot from 2024-10-10 18-52-24 Screenshot from 2024-10-10 18-54-20

@otseng can you help check what is the issue that the app does not launch?

eliranwong commented 3 weeks ago

ok, I finally figured out. will fix

eliranwong commented 3 weeks ago

managed to launch, will fix missing icons

Screenshot from 2024-10-10 19-55-58

eliranwong commented 2 weeks ago

missing icons added