سلام همگی
$ uname -a
Linux mostafa-Inspiron-N5110 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64
x86_64 x86_64 GNU/Linux
من آناکوندا رو نصب کردم و طبق این صفحه
https://forum.ubuntu-ir.org/index.php?topic=146459.0 condapython رو با alias به مسیر آناکوندا لینک کردم تا همیشه به صورت پیشفرض آناکوندا فعال نباشه
mostafa@mostafa-Inspiron-N5110:~$ python
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
mostafa@mostafa-Inspiron-N5110:~$ condapython
Python 3.9.13 (main, Aug 25 2022, 23:26:10)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
من یه برنامه رو با condapython اجرا میکنم ولی همچنان بنظر از پکیج های اصلی سیستم داره استفاده میشه:
mostafa@mostafa-Inspiron-N5110:~/install_CCseg/afshani$ condapython CCSegProcess --do-all --save-graphics input output
Cholesky method not found, using LU decomposition, install scikits.sparse.cholmod
T1w_brain: midsag
Midsagittal extraction, symmetry method iterations
QObject::moveToThread: Current thread (0x3a92c20) is not the object's thread (0x3742e50).
Cannot move to target thread (0x3a92c20)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/mostafa/.local/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
با پایتون خود سیستم هم که اجرا میکنم مسیر خطا همین هست:
mostafa@mostafa-Inspiron-N5110:~/install_CCseg/afshani$ python CCSegProcess --do-all --save-graphics input output
Cholesky method not found, using LU decomposition, install scikits.sparse.cholmod
T1w_brain: midsag
Midsagittal extraction, symmetry method iterations
QObject::moveToThread: Current thread (0x34fe180) is not the object's thread (0x3509b60).
Cannot move to target thread (0x34fe180)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/mostafa/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
وقتی آناکوندا رو فعال میکنم, یعنی این حالت:
(base) mostafa@mostafa-Inspiron-N5110:~$
باز هم خطا رو به همین حالت دارم
بنظرتون مشکل چی هست؟ راستش من خیلی مهارت ندارم و این قسمت خطا مشکوکم کرد که از مسیر پایتون آناکوندا استفاده نشده:
..."xcb" in "/home/mostafa/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.