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

Python Codecs Plugin failed to load. View Console for more information. #840

Closed
doraid131 opened this issue Jun 2, 2023 · 0 comments
Closed

Comments

@doraid131
Copy link

Scripted docker alongside Hombridge

linux arm #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023
server version: 0.23.0
plugin version: @scrypted/python-codecs 0.1.58
full
########################
6/2/2023, 10:29:22 AM
########################

Python machine vs architecture mismatch detected. Plugin installation may fail.
This issue occurs if a 32bit system was upgraded to a 64bit kernel.
Reverting to the 32bit kernel (or reflashing as native 64 bit is recommended.
#678

python version: python3.9
python prefix: /server/volume/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64-20230329
Removing old dependencies: /server/volume/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64-20230329
requirements.txt (outdated)

needed by libav to_ndarray

numpy>=1.16.2

gobject instrospection for gstreamer.

PyGObject>=3.30.4; sys_platform != 'win32'

libav doesnt work on arm7

av>=10.0.0; sys_platform != 'linux' or platform_machine == 'x86_64' or platform_machine == 'aarch64'

pyvips is not available on windows, and is preinstalled as part of the installer scripts on

mac and linux.

pyvips; sys_platform != 'win32'

in case pyvips fails to load, use a pillow fallback.

pillow for anything not intel linux, pillow-simd is available on x64 linux

Pillow>=5.4.1; sys_platform != 'linux' or platform_machine != 'x86_64'
pillow-simd; sys_platform == 'linux' and platform_machine == 'x86_64'

Ignoring pillow-simd: markers 'sys_platform == "linux" and platform_machine == "x86_64"' don't match your environment
Requirement already satisfied: numpy>=1.16.2 in /usr/lib/python3/dist-packages (from -r /server/volume/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64-20230329/requirements.txt (line 2)) (1.19.5)
Requirement already satisfied: PyGObject>=3.30.4 in /usr/lib/python3/dist-packages (from -r /server/volume/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64-20230329/requirements.txt (line 5)) (3.38.0)
Collecting av>=10.0.0 (from -r /server/volume/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64-20230329/requirements.txt (line 8))
Using cached av-10.0.0.tar.gz (2.4 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing libavformat.pc' to the PKG_CONFIG_PATH environment variable No package 'libavformat' found Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavdevice was not found in the pkg-config search path.
Perhaps you should add the directory containing libavdevice.pc' to the PKG_CONFIG_PATH environment variable No package 'libavdevice' found Package libavutil was not found in the pkg-config search path. Perhaps you should add the directory containing libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libavfilter was not found in the pkg-config search path.
Perhaps you should add the directory containing libavfilter.pc' to the PKG_CONFIG_PATH environment variable No package 'libavfilter' found Package libswscale was not found in the pkg-config search path. Perhaps you should add the directory containing libswscale.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libswscale' found
Package libswresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libswresample.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libswresample' found
pkg-config could not find libraries ['avformat', 'avcodec', 'avdevice', 'avutil', 'avfilter', 'swscale', 'swresample']
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
pip install result 1
plugin start/fork failed
Traceback (most recent call last):
File "/server/node_modules/@scrypted/server/python/plugin_remote.py", line 380, in loadZip
return await self.loadZipWrapped(packageJson, zipData, options)
File "/server/node_modules/@scrypted/server/python/plugin_remote.py", line 617, in loadZipWrapped
raise Exception('non-zero result from pip %s' % result)
Exception: non-zero result from pip 1

thank you

@koush koush closed this as completed Jun 2, 2023
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

2 participants