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

Conflinct between libraries PyQt6 and PySide6, when lunching the GUI #389

Open
EljesaBrahimaj opened this issue Jul 30, 2024 · 7 comments
Open

Comments

@EljesaBrahimaj
Copy link

after installing all the dependencies using the following commands in my new conda enviroment:

  • pip3 install torch torchvision torchaudio
  • pip install "pix2tex[gui]"
  • pip install --upgrade pip setuptools

this last one was needed to resolve the following error found while running the pip install "pix2tex[gui]":

× Getting requirements to build wheel did not run successfully.
│ exit code: 1

Sorry for the long prelude i thought it was better to give as much information as possible.
After finishing all this, i finally download the latest issue and in the folder i run: latexocr

now this error occurs:

objc[2828]: Class QDarwinBluetoothPermissionHandler is implemented in both /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/QtCore.abi3.so (0x10dee5e60) and /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PySide6/QtCore.abi3.so (0x1525151c0). One of the two will be used. Which one is undefined.
objc[2828]: Class QDarwinCalendarPermissionHandler is implemented in both /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/QtCore.abi3.so (0x10dee5ed8) and /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PySide6/QtCore.abi3.so (0x152515238). One of the two will be used. Which one is undefined.
objc[2828]: Class QDarwinCameraPermissionHandler is implemented in both /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/QtCore.abi3.so (0x10dee5f28) and /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PySide6/QtCore.abi3.so (0x152515288). One of the two will be used. Which one is undefined.
objc[2828]: Class QDarwinContactsPermissionHandler is implemented in both /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/QtCore.abi3.so (0x10dee5f78) and /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PySide6/QtCore.abi3.so (0x1525152d8). One of the two will be used. Which one is undefined.
objc[2828]: Class QDarwinMicrophonePermissionHandler is implemented in both /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/QtCore.abi3.so (0x10dee6018) and /opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PySide6/QtCore.abi3.so (0x152515328). One of the two will be used. Which one is undefined.
Sandboxing disabled by user.
Path override failed for key base::DIR_APP_DICTIONARIES and path '/opt/anaconda3/envs/pix2tex_env/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/opt/anaconda3/envs/pix2tex_env/lib/python3.11/site-packages/PyQt6/Qt6/lib/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/qtwebengine_dictionaries'
zsh: trace trap latexocr

Does anyone knows how to fix this ? i'm running zsh with a macOS 12.7.4

@dreamycloud
Copy link

in resources\resources.py, try fix 'from PySide6 import QtCore' to 'from PyQt6 import QtCore'

@Novhare
Copy link

Novhare commented Oct 23, 2024

in resources\resources.py, try fix 'from PySide6 import QtCore' to 'from PyQt6 import QtCore'

Thank you. That's very helpful.

@WayneWang23
Copy link

in resources\resources.py, try fix 'from PySide6 import QtCore' to 'from PyQt6 import QtCore'

Thanks. It works for me.

@Octopus058
Copy link

Thx, Really helpful ❤️

@hrtan99
Copy link

hrtan99 commented Nov 15, 2024

This works, could anyone open a PR to fix this?

@15921483570
Copy link

in resources\resources.py, try fix 'from PySide6 import QtCore' to 'from PyQt6 import QtCore'

thanks!!! you save my life!!!

@bryanjuho
Copy link

bryanjuho commented Nov 19, 2024

This works, could anyone open a PR to fix this?

#402

Somebody did, but not being merged yet

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

8 participants