RuralHunter / CoreELEC

This is CoreELEC for Phicomm N1 device only. Run ./mkn1 to build.
https://coreelec.org
600 stars 102 forks source link

[BUG] ImportError: PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr #64

Closed nzhang9999 closed 2 years ago

nzhang9999 commented 2 years ago

Describe the bug

安装Emburay皮肤后,Embuary Helper频繁报错。

Pillow_imaging.so 好像有点问题? ImportError: /usr/lib/python3.8/site-packages/PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr

Log info

ERROR <general>: EXCEPTION Thrown (PythonToCppException) : 
-->Python callback/script returned the following error<--
 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'ImportError'>
Error Contents: /usr/lib/python3.8/site-packages/PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr
Traceback (most recent call last):
  File "/storage/.kodi/addons/script.embuary.helper/plugin.py", line 10, in <module>
    from resources.lib.plugin_content import *
  File "/storage/.kodi/addons/script.embuary.helper/resources/lib/plugin_content.py", line 11, in <module>
    from resources.lib.image import *
  File "/storage/.kodi/addons/script.embuary.helper/resources/lib/image.py", line 12, in <module>
    from PIL import ImageFilter,Image,ImageOps,ImageEnhance
  File "/usr/lib/python3.8/site-packages/PIL/Image.py", line 94, in <module>
     ImportError: /usr/lib/python3.8/site-packages/PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr
  -->End of Python script error report<--

Additional context

SSH到N1,用 python 确实无法 Import

CoreELEC (RuralHunter): 19.3 (Amlogic-ng.arm)
CoreELEC:~ # python
Python 3.8.11 (default, Oct  9 2021, 12:19:08)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/PIL/Image.py", line 94, in <module>
ImportError: /usr/lib/python3.8/site-packages/PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr
nzhang9999 commented 2 years ago

BTW, 9.2.7版本是正常的

yubanmeiqin9048 commented 2 years ago

同样的问题

RuralHunter commented 2 years ago

https://discourse.coreelec.org/t/python-is-broken-after-installing-entware/6293

ShicYang commented 2 years ago

怎么样,楼主解决了没

killbus commented 2 years ago

19.4 同

ihipop commented 2 years ago

https://discourse.coreelec.org/t/python-is-broken-after-installing-entware/6293

@RuralHunter 和ENTWARE没关系,我特意没装一样的错误。

RuralHunter commented 2 years ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

killbus commented 2 years ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

It works.

yukiChow commented 2 years ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

RuralHunter commented 2 years ago

cec的问题参考一下 #84

yukiChow commented 2 years ago

cec的问题参考一下

很遗憾我的cec问题不是这个,具体问题表现为coreelec启动一段时间后n1不再响应遥控器的按键,只能通过重启n1解决。我已经fork了您的项目想自己把python修复迁移到19.3,请问方案可行吗?只需要把19.4.1的提交复制到19.3的代码里就可以吗?顺便想请教下19.3最终release是到哪一条commit为止呢?

RuralHunter commented 2 years ago

应该可以的,你源代码checkout这个tag就可以:v19.3-N1

yukiChow commented 2 years ago

应该可以的,你源代码checkout这个tag就可以:v19.3-N1

大佬抱歉打扰了,我尝试用git actions编译修改版的19.3,前面遇到很多问题都自己搞定了,一直到第250步,提示找不到libbluray这个包,对比了很多文件都还是找不到问题,能不能抽空帮忙看看是什么问题呢。感谢! 报错日志如下:

2022-09-19T12:42:27.4863008Z >>> libbdplus:target seq 249 >>> 2022-09-19T12:42:27.7610117Z [249/352] [FAIL] install jre-libbluray:target 2022-09-19T12:42:27.7610492Z <<< jre-libbluray:target seq 250 <<< 2022-09-19T12:42:27.7611047Z UNPACK jre-libbluray 2022-09-19T12:42:27.7611569Z tar: /home/runner/work/CoreELEC/CoreELEC/sources/libbluray/libbluray-1.2.1.tar.bz2: Cannot open: No such file or directory 2022-09-19T12:42:27.7611953Z tar: Error is not recoverable: exiting now 2022-09-19T12:42:27.7612356Z FAILURE: scripts/unpack jre-libbluray during unpack (package.mk) 2022-09-19T12:42:27.7612658Z FAILED COMMAND 2022-09-19T12:42:27.7613113Z tar --strip-components=1 -xf ${SOURCES}/libbluray/libbluray-${PKG_VERSION}.tar.bz2 -C ${PKG_BUILD} 2022-09-19T12:42:27.7613417Z ** 2022-09-19T12:42:27.7613642Z FAILED COMMAND 2022-09-19T12:42:27.7613904Z ${SCRIPTS}/unpack "${PKG_NAME}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614143Z ** 2022-09-19T12:42:27.7614345Z FAILED COMMAND 2022-09-19T12:42:27.7614582Z ${SCRIPTS}/build "${1}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614808Z ** 2022-09-19T12:42:27.7615159Z FAILURE: scripts/install jre-libbluray:target has failed!

ihipop commented 2 years ago

https://github.com/RuralHunter/CoreELEC/pull/56

请手工合并这个PR

clandyuki @.***> 于 2022年9月19日周一 下午9:28写道:

应该可以的,你源代码checkout这个tag就可以:v19.3-N1

大佬抱歉打扰了,我尝试用git actions编译修改版的19.3,前面遇到很多问题都自己搞定了,一直到第250步,提示找不到libbluray这个包,对比了很多文件都还是找不到问题,能不能抽空帮忙看看是什么问题呢。感谢! 报错日志如下: 2022-09-19T12:42:27.4863008Z >>> libbdplus:target seq 249 >>> 2022-09-19T12:42:27.7610117Z [249/352] [FAIL] install jre-libbluray:target 2022-09-19T12:42:27.7610492Z <<< jre-libbluray:target seq 250 <<< 2022-09-19T12:42:27.7611047Z �[1;36mUNPACK�[0m jre-libbluray 2022-09-19T12:42:27.7611569Z tar: /home/runner/work/CoreELEC/CoreELEC/sources/libbluray/libbluray-1.2.1.tar.bz2: Cannot open: No such file or directory 2022-09-19T12:42:27.7611953Z tar: Error is not recoverable: exiting now 2022-09-19T12:42:27.7612356Z �[1;31mFAILURE: scripts/unpack jre-libbluray during unpack (package.mk)�[0m 2022-09-19T12:42:27.7612658Z FAILED COMMAND 2022-09-19T12:42:27.7613113Z tar --strip-components=1 -xf ${SOURCES}/libbluray/libbluray-${PKG_VERSION}.tar.bz2 -C ${PKG_BUILD} 2022-09-19T12:42:27.7613417Z ** 2022-09-19T12:42:27.7613642Z FAILED COMMAND 2022-09-19T12:42:27.7613904Z ${SCRIPTS}/unpack "${PKG_NAME}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614143Z ** 2022-09-19T12:42:27.7614345Z FAILED COMMAND 2022-09-19T12:42:27.7614582Z ${SCRIPTS}/build "${1}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614808Z ** 2022-09-19T12:42:27.7615159Z �[1;31mFAILURE: scripts/install jre-libbluray:target has failed!�[0m

— Reply to this email directly, view it on GitHub https://github.com/RuralHunter/CoreELEC/issues/64#issuecomment-1251021484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADHJJO3CWGF63KH2LMNDJTV7BS6FANCNFSM5MTNOAAQ . You are receiving this because you commented.Message ID: @.***>

yukiChow commented 2 years ago

56 请手工合并这个PR clandyuki @.***> 于 2022年9月19日周一 下午9:28写道:

应该可以的,你源代码checkout这个tag就可以:v19.3-N1 大佬抱歉打扰了,我尝试用git actions编译修改版的19.3,前面遇到很多问题都自己搞定了,一直到第250步,提示找不到libbluray这个包,对比了很多文件都还是找不到问题,能不能抽空帮忙看看是什么问题呢。感谢! 报错日志如下: 2022-09-19T12:42:27.4863008Z >>> libbdplus:target seq 249 >>> 2022-09-19T12:42:27.7610117Z [249/352] [FAIL] install jre-libbluray:target 2022-09-19T12:42:27.7610492Z <<< jre-libbluray:target seq 250 <<< 2022-09-19T12:42:27.7611047Z �[1;36mUNPACK�[0m jre-libbluray 2022-09-19T12:42:27.7611569Z tar: /home/runner/work/CoreELEC/CoreELEC/sources/libbluray/libbluray-1.2.1.tar.bz2: Cannot open: No such file or directory 2022-09-19T12:42:27.7611953Z tar: Error is not recoverable: exiting now 2022-09-19T12:42:27.7612356Z �[1;31mFAILURE: scripts/unpack jre-libbluray during unpack (package.mk)�[0m 2022-09-19T12:42:27.7612658Z FAILED COMMAND 2022-09-19T12:42:27.7613113Z tar --strip-components=1 -xf ${SOURCES}/libbluray/libbluray-${PKG_VERSION}.tar.bz2 -C ${PKG_BUILD} 2022-09-19T12:42:27.7613417Z ** 2022-09-19T12:42:27.7613642Z FAILED COMMAND 2022-09-19T12:42:27.7613904Z ${SCRIPTS}/unpack "${PKG_NAME}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614143Z ** 2022-09-19T12:42:27.7614345Z FAILED COMMAND 2022-09-19T12:42:27.7614582Z ${SCRIPTS}/build "${1}" "${PARENT_PKG}" 2022-09-19T12:42:27.7614808Z ** 2022-09-19T12:42:27.7615159Z �[1;31mFAILURE: scripts/install jre-libbluray:target has failed!�[0m — Reply to this email directly, view it on GitHub <#64 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADHJJO3CWGF63KH2LMNDJTV7BS6FANCNFSM5MTNOAAQ . You are receiving this because you commented.Message ID: @.***>

❤非常感谢!我刚才也发现了好像是这个问题,重试编译中

sqyfd1 commented 2 years ago

大家我19.41连接不了插件库呢 同网络下电脑版KODI可以连接 科学也连不上呢 有遇到的吗

gaodq commented 1 year ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

yukiChow commented 1 year ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

是的,我自己编译了一版19.3的包,需要我可以发你一份,我自己使用到现在没什么问题

sqyfd1 commented 1 year ago

你俩是大佬啊  是N1的包吗  

191394209 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年2月21日(星期二) 下午5:18 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [RuralHunter/CoreELEC] [BUG] ImportError: PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr (Issue #64)

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

是的,我自己编译了一版19.3的包,需要我可以发你一份,我自己使用到现在没什么问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

gaodq commented 1 year ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

是的,我自己编译了一版19.3的包,需要我可以发你一份,我自己使用到现在没什么问题

@yukiChow 方便的话发我一份吧,谢谢您,我试着自己编译发现好多问题需要解决,好多包都download不了,gaodq7c7@gmail.com

yukiChow commented 1 year ago

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

是的,我自己编译了一版19.3的包,需要我可以发你一份,我自己使用到现在没什么问题

@yukiChow 方便的话发我一份吧,谢谢您,我试着自己编译发现好多问题需要解决,好多包都download不了,gaodq7c7@gmail.com

已发送,请注意查收

sqyfd1 commented 1 year ago

是N1使用吗?  

191394209 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Gao @.>; 发送时间: 2023年2月21日(星期二) 下午5:39 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [RuralHunter/CoreELEC] [BUG] ImportError: PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr (Issue #64)

try this: https://pan.baidu.com/s/16zZ4Gg5LRa8LhwUI5Pqj6Q?pwd=16s4

大佬能不能给19.3合并下这个python修复啊,19.4以上的版本我自己使用一直有hdmi-cec的问题,降级到19.3一切正常,除了这个python导致的emby皮肤报错,感谢!

@yukiChow 请问是Sony电视吗,我的也是这个问题,Sony 9500g, 19.5

是的,我自己编译了一版19.3的包,需要我可以发你一份,我自己使用到现在没什么问题

@yukiChow @.***

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

yukiChow commented 1 year ago

是N1使用吗?   191394209 @.***  

是的,基于R大的19.3改的

sqyfd1 commented 1 year ago

请教下N1刷了COREELEC后播放DIY原盘有点卡,怎么设置缓存啊 看到现在没有缓存  

191394209 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年2月21日(星期二) 晚上6:17 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [RuralHunter/CoreELEC] [BUG] ImportError: PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr (Issue #64)

是N1使用吗?   191394209 @.***   …

是的,基于R大的19.3改的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

yukiChow commented 1 year ago

请教下N1刷了COREELEC后播放DIY原盘有点卡,怎么设置缓存啊 看到现在没有缓存   191394209 @.   ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年2月21日(星期二) 晚上6:17 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [RuralHunter/CoreELEC] [BUG] ImportError: PIL/_imaging.so: undefined symbol: XauGetBestAuthByAddr (Issue #64) 是N1使用吗?   191394209 @.   … 是的,基于R大的19.3改的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

不好意思没有设置过,我也不知道