gst python cairo

Junarwohn·2021년 9월 20일
0

anaconda 환경문제가 빈번히 발생.

native는 돌아가나 env에선 안돌아 가는 문제.

gi 모듈 의심

https://stackoverflow.com/questions/37526026/how-to-install-gi-module-for-anaconda-python3

아예 native모듈로 링크해버리는 방법 -> (내경우엔 아니었음) 이게 맞았다.

자세한 작동원리는 뜯어봐야 알겠지만, 위 방법대로 링크해도 anaconda로 깐 모듈을 1차로 잡는듯하다.

conda remove --force gstreamer glib gst-plugins-base cairo

관련 모듈(gst에 관련된 모든 것)을 지우고 (되도록이면 환경을 새로 파자) 내경우 gi와 cairo를 링크해주니 동작한다.

require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

================================================================

ubuntu 18.04 CAIRO ERROR

(eg, AttributeError: 'Context' object has no attribute 'set_source_rgb')

cairo import error.

install dependencies

https://pygobject.readthedocs.io/en/latest/getting_started.html

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0

then add top of python file

gi.require_foreign('cairo')

should work

================================================================

문제시

https://stackoverflow.com/questions/61778993/ubuntu-anaconda-2020-02-namespace-gtk-not-available

conda install -c conda-forge gtk3

anaconda 설치 후 gstreamer를 bash에서 실행했을 때, plugin을 못찾을 때,
https://stackoverflow.com/questions/53065043/cant-find-gstreamer-plugins-after-installing-them

which gst-launch-1.0 해보면 anaconda로 잡혀서 그렇다는데, conda install plugin해도 안되나?

==================================================================

무엇을 설치하는지 dependency 확인 요함

arm/ aarch-64 에서도 도는가? 문제 확인 요망

profile
Fake It Till You Make It

0개의 댓글