Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not open GUI with latexcor #405

Open
VIRTUALWORLDHEAD0CAICAI opened this issue Nov 27, 2024 · 6 comments
Open

Can not open GUI with latexcor #405

VIRTUALWORLDHEAD0CAICAI opened this issue Nov 27, 2024 · 6 comments

Comments

@VIRTUALWORLDHEAD0CAICAI

(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
Copy link

exactly same problem!do you fix that?

@CuiOrange
Copy link

exactly same problem!do you fix that?

by the way,my pyqt6==6.6.1

@VIRTUALWORLDHEAD0CAICAI
Copy link
Author

exactly same problem!do you fix that?

by the way,my pyqt6==6.6.1

my pyqt6 = = 6.7.1

@xAlpharax
Copy link

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
Copy link

zrggw commented Nov 28, 2024

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

@FreshGerry
Copy link

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”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants