lukas-blecher / LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code.
https://lukas-blecher.github.io/LaTeX-OCR/
MIT License
12.85k stars 1.04k forks source link

Can not open GUI with latexcor #405

Open VIRTUALWORLDHEAD0CAICAI opened 3 days ago

VIRTUALWORLDHEAD0CAICAI commented 3 days ago

(p9) PS D:\LaTeX-OCR> latexocr

Traceback (most recent call last): File "C:\Users\50332\anaconda3\envs\p9\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\50332\anaconda3\envs\p9\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\50332\anaconda3\envs\p9\Scripts\latexocr.exe__main.py", line 7, in File "C:\Users\50332\anaconda3\envs\p9\lib\site-packages\pix2tex\main__.py", line 25, in main from .gui import main File "C:\Users\50332\anaconda3\envs\p9\lib\site-packages\pix2tex\gui.py", line 21, in import pix2tex.resources.resources File "C:\Users\50332\anaconda3\envs\p9\lib\site-packages\pix2tex\resources\resources.py", line 6, in from PySide6 import QtCore ImportError: DLL load failed while importing QtCore: 找不到指定的程序。

CuiOrange commented 3 days ago

exactly same problem!do you fix that?

CuiOrange commented 3 days ago

exactly same problem!do you fix that?

by the way,my pyqt6==6.6.1

VIRTUALWORLDHEAD0CAICAI commented 3 days ago

exactly same problem!do you fix that?

by the way,my pyqt6==6.6.1

my pyqt6 = = 6.7.1

xAlpharax commented 3 days ago

same problem here

Traceback (most recent call last): File "/home/alphara/.pyenv/versions/menu_gather/bin/latexocr", line 8, in sys.exit(main()) File "/home/alphara/.pyenv/versions/3.10.14/envs/menu_gather/lib/python3.10/site-packages/pix2tex/main.py", line 25, in main from .gui import main File "/home/alphara/.pyenv/versions/3.10.14/envs/menu_gather/lib/python3.10/site-packages/pix2tex/gui.py", line 21, in import pix2tex.resources.resources File "/home/alphara/.pyenv/versions/3.10.14/envs/menu_gather/lib/python3.10/site-packages/pix2tex/resources/resources.py", line 6, in from PySide6 import QtCore ImportError: /home/alphara/.pyenv/versions/3.10.14/envs/menu_gather/lib/python3.10/site-packages/PySide6/libpyside6.abi3.so.6.8: undefined symbol: _Z8qmemrchrPKvim, version Qt_6

Neither pix2tex_gui or latexocr working

zrggw commented 3 days ago

After downgrading the version of PySide6 to the same version of PyQt6==6.7.3, I resolved the issue.

FreshGerry commented 3 hours ago

From the issues “Conflinct between libraries PyQt6 and PySide6, when lunching the GUI #389”, they have give the solution. 在 envs\pytorch\Lib\site-packages\pix2tex\resources的路径,将resources\resources.py ,把“from PySide6 import QtCore”修复为“from PyQt6 import QtCore”