Stopping Bt-Panel... done
/usr/bin/bt: line 117: lsof: command not found
/usr/bin/bt: line 168: lsof: command not found
Starting Bt-Panel............failed
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 10, in <module>
from gevent import monkey
ModuleNotFoundError: No module named 'gevent'
Error: BT-Panel service startup failed.
done
equirement already satisfied: pycparser in ./pyenv/lib/python3.7/site-packages (from cffi==1.12.3) (2.21)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing
libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing
libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-wxoy6p_n/cffi_449a9a07bfec463590f2fd88d9a26292/setup.py", line 248, in <module>
'Programming Language :: Python :: Implementation :: PyPy',
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/distutils/core.py", line 164, in setup
ok = dist.parse_command_line()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/distutils/dist.py", line 474, in parse_command_line
args = self._parse_command_opts(parser, args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 1107, in _parse_command_opts
nargs = Distribution.parse_command_opts(self, parser, args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 533, in parse_command_opts
cmd_class = self.get_command_class(command)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 954, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/vendor/importlib_metadata/init.py", line 194, in load
module = import_module(match.group('module'))
File "/www/server/panel/pyenv/lib/python3.7/importlib/init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in gcd_import
File "<frozen importlib.bootstrap>", line 983, in find_and_load
File "<frozen importlib.bootstrap>", line 967, in find_and_load_unlocked
File "<frozen importlib.bootstrap>", line 677, in load_unlocked
File "<frozen importlib.bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 24, in <module>
from .pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/pep425tags.py", line 10, in <module>
from .macosx_libfile import extract_macosx_min_system_version
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/macosx_libfile.py", line 38, in <module>
import ctypes
File "/www/server/panel/pyenv/lib/python3.7/ctypes/init.py", line 7, in <module>
from ctypes import Union, Structure, Array
ModuleNotFoundError: No module named 'ctypes'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi
Attempting uninstall: cffi
Found existing installation: cffi 1.15.1
Uninstalling cffi-1.15.1:
Successfully uninstalled cffi-1.15.1
Running setup.py install for cffi ... error
error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing
libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing
libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running install
/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/model.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/error.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/init.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/api.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/cffi_include.h -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/embedding.h -> build/lib.linux-aarch64-cpython-37/cffi
copying cffi/cffi_errors.h -> build/lib.linux-aarch64-cpython-37/cffi
running build_ext
building 'cffi_backend' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/c
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/www/server/panel/pyenv/include/python3.7m -c c/cffi_backend.c -o build/temp.linux-aarch64-cpython-37/c/cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ~~~
compilation terminated.
error: command '/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of cffi
Moving to /www/server/panel/pyenv/lib/python3.7/site-packages/cffi_backend.cpython-37m-aarch64-linux-gnu.so
from /tmp/pip-uninstall-i00o6xfo/cffi_backend.cpython-37m-aarch64-linux-gnu.so
Moving to /www/server/panel/pyenv/lib/python3.7/site-packages/cffi-1.15.1.dist-info/
from /www/server/panel/pyenv/lib/python3.7/site-packages/ffi-1.15.1.dist-info
Moving to /www/server/panel/pyenv/lib/python3.7/site-packages/cffi.libs/
from /www/server/panel/pyenv/lib/python3.7/site-packages/ffi.libs
Moving to /www/server/panel/pyenv/lib/python3.7/site-packages/cffi/
from /www/server/panel/pyenv/lib/python3.7/site-packages/ffi
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cffi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting pymysql
Using cached https://mirrors.aliyun.com/pypi/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43 kB)
Installing collected packages: pymysql
Successfully installed pymysql-1.0.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting psutil
Downloading https://mirrors.aliyun.com/pypi/packages/d6/de/0999ea2562b96d7165812606b18f7169307b60cd378bc29cf3673322c7e9/psutil-5.9.1.tar.gz (479 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 479.1/479.1 kB 1.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
running dist_info
creating /tmp/pip-modern-metadata-k81yoso0/psutil.egg-info
writing /tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/dependency_links.txt
writing requirements to /tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/requires.txt
writing top-level names to /tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-k81yoso0/psutil.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-k81yoso0/psutil-5.9.1.dist-info'
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/vendor/pep517/in_process/in_process.py", line 363, in <module>
main()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/vendor/pep517/in_process/in_process.py", line 345, in main
json_out['return_val'] = hook(hook_input['kwargs'])
File "/www/server/panel/pyenv/lib/python3.7/site-packages/pip/vendor/pep517/in_process/in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 282, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(code, locals())
File "<string>", line 449, in <module>
File "<string>", line 421, in main
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(attrs)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/core.py", line 177, in setup
return run_commands(dist)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/core.py", line 193, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/command/dist_info.py", line 42, in run
bdist_wheel = self.get_finalized_command('bdist_wheel')
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/cmd.py", line 303, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/distutils/dist.py", line 859, in get_command_obj
klass = self.get_command_class(command)
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 954, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 194, in load
module = import_module(match.group('module'))
File "/www/server/panel/pyenv/lib/python3.7/importlib/init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in gcd_import
File "<frozen importlib.bootstrap>", line 983, in find_and_load
File "<frozen importlib.bootstrap>", line 967, in find_and_load_unlocked
File "<frozen importlib.bootstrap>", line 677, in load_unlocked
File "<frozen importlib.bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 26, in <module>
from .macosx_libfile import calculate_macosx_platform_tag
File "/tmp/pip-build-env-ui28s9kn/overlay/lib/python3.7/site-packages/wheel/macosx_libfile.py", line 41, in <module>
import ctypes
File "/www/server/panel/pyenv/lib/python3.7/ctypes/init.py", line 7, in <module>
from ctypes import Union, Structure, Array
ModuleNotFoundError: No module named 'ctypes'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting telegram
Downloading https://mirrors.aliyun.com/pypi/packages/9d/ca/8bdf2deb93b9f6971dabf2ddc827c2a98ce23e13582a15b37e9bc169f226/telegram-0.0.1.tar.gz (879 bytes)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: telegram
Building wheel for telegram (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
Warning: 'keywords' should be a list, got type 'tuple'
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-kp_7kdu6/telegram_f3bf011603c249da8f6ffe121b8c72db/setup.py", line 17, in <module>
include_package_data=True)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/distutils/core.py", line 164, in setup
ok = dist.parse_command_line()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/distutils/dist.py", line 474, in parse_command_line
args = self._parse_command_opts(parser, args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 1107, in _parse_command_opts
nargs = Distribution.parse_command_opts(self, parser, args)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 533, in parse_command_opts
cmd_class = self.get_command_class(command)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 954, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/vendor/importlib_metadata/init.py", line 194, in load
module = import_module(match.group('module'))
File "/www/server/panel/pyenv/lib/python3.7/importlib/init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in gcd_import
File "<frozen importlib.bootstrap>", line 983, in find_and_load
File "<frozen importlib.bootstrap>", line 967, in find_and_load_unlocked
File "<frozen importlib.bootstrap>", line 677, in load_unlocked
File "<frozen importlib.bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 24, in <module>
from .pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/pep425tags.py", line 10, in <module>
from .macosx_libfile import extract_macosx_min_system_version
File "/www/server/panel/pyenv/lib/python3.7/site-packages/wheel/macosx_libfile.py", line 38, in <module>
import ctypes
File "/www/server/panel/pyenv/lib/python3.7/ctypes/init.py", line 7, in <module>
from ctypes import Union, Structure, Array
ModuleNotFoundError: No module named 'ctypes'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for telegram
Running setup.py clean for telegram
Failed to build telegram
Installing collected packages: telegram
Running setup.py install for telegram ... done
Successfully installed telegram-0.0.1
help pls thank you very much 😃