horennel / LaTex-OCR_for_macOS

一个基于Pix2Text的识别文字和数学公式的macOS菜单栏应用程序
MIT License
12 stars 1 forks source link

something wrong with the first attempt of installation #5

Open keeplearning-again opened 4 days ago

keeplearning-again commented 4 days ago

Thanks for your repo! I met with some problems for the first time installing. After compelling, I move the application to the folder. But after I click the button, the error arises

image

I am wondering if there is any problem in my installation process!

(latex)LaTex-OCR_for_macOS % python setup.py py2app -A
miniconda3/envs/latex/lib/python3.8/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
running py2app
creating Desktop/latex_ocr/LaTex-OCR_for_macOS/build/bdist.macosx-11.1-arm64/python3.8-standalone/app
creating Desktop/latex_ocr/LaTex-OCR_for_macOS/build/bdist.macosx-11.1-arm64/python3.8-standalone/app/collect
creating Desktop/latex_ocr/LaTex-OCR_for_macOS/build/bdist.macosx-11.1-arm64/python3.8-standalone/app/temp
creating build/bdist.macosx-11.1-arm64/python3.8-standalone/app/lib-dynload
creating build/bdist.macosx-11.1-arm64/python3.8-standalone/app/Frameworks
*** creating application bundle: MyLatexOCR ***
Copy 'miniconda3/envs/latex/lib/python3.8/site-packages/py2app/apptemplate/prebuilt/main-arm64' -> 'Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app/Contents/MacOS/MyLatexOCR'
sign ['Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app/Contents/MacOS/MyLatexOCR']
Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app/Contents/MacOS/MyLatexOCR: replacing existing signature
Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app/Contents/MacOS/MyLatexOCR: signed app bundle with Mach-O thin (arm64) [MyLatexOCR]
Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app: replacing existing signature
Desktop/latex_ocr/LaTex-OCR_for_macOS/dist/MyLatexOCR.app: signed app bundle with Mach-O thin (arm64) [MyLatexOCR]
Done!
horennel commented 3 days ago

You might have deleted your virtual environment or project folder (LaTex-OCR_for_macOS), which is not recommended. MyLatexOCR.app still depends on them to run, as mentioned in the README.md. You can clone this project into a folder you don’t use frequently and redo the installation steps. By the way, are you a macOS 15 user? Based on my platform tests, the program is still functioning normally. There might be some bugs, but simply restarting the app should resolve them.

你可能删除了你的虚拟环境或项目文件夹(LaTex-OCR_for_macOS),这是不行的。因为MyLatexOCR.app运行时依旧依赖他们,这一点在README.md中有提到。 你可以将此项目克隆到不经常使用的文件夹下,然后重新执行安装步骤。 另外请问你是macOS15的用户吗,经过我自己的平台测试后,此程序依旧正常使用,或许会有一些bug,但只需要重启app即可。