-Поиск по дневнику

Поиск сообщений в rss_ruboard

 -Подписка по e-mail

 

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 18.11.2007
Записей:
Комментариев:
Написано: 10


Помогите скомпилировать из исходников (42) / Тема, где можно попросить помощи в компиляции проекта

Воскресенье, 09 Марта 2025 г. 01:23 + в цитатник
drmin:
Mavrikii
Перешел в папку D:\yt-dlp-master

При выполнении команды
Код:
python -m bundle.pyinstaller
показывает ошибку.

Код:
156 WARNING: Failed to collect submodules for 'urllib3.contrib.emscripten' because importing 'urllib3.contrib.emscripten' raised: ModuleNotFoundError: No module named 'js'


Код:

D:\yt-dlp-master>python devscripts/install_deps.py --include pyinstaller
Defaulting to user installation because normal site-packages is not writeable
Ignoring brotlicffi: markers 'implementation_name != "cpython"' don't match your environment
Requirement already satisfied: brotli in c:\users\comp\appdata\roaming\python\python310\site-packages (1.1.0)
Requirement already satisfied: certifi in c:\users\comp\appdata\roaming\python\python310\site-packages (2025.1.31)
Requirement already satisfied: mutagen in c:\users\comp\appdata\roaming\python\python310\site-packages (1.47.0)
Requirement already satisfied: pycryptodomex in c:\users\comp\appdata\roaming\python\python310\site-packages (3.22.0)
Requirement already satisfied: requests<3,>=2.32.2 in c:\users\comp\appdata\roaming\python\python310\site-packages (2.32.3)
Requirement already satisfied: urllib3<3,>=1.26.17 in c:\users\comp\appdata\roaming\python\python310\site-packages (2.3.0)
Requirement already satisfied: websockets>=13.0 in c:\users\comp\appdata\roaming\python\python310\site-packages (15.0.1)
Requirement already satisfied: pyinstaller>=6.11.1 in c:\users\comp\appdata\roaming\python\python310\site-packages (6.12.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\comp\appdata\roaming\python\python310\site-packages (from requests<3,>=2.32.2) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\comp\appdata\roaming\python\python310\site-packages (from requests<3,>=2.32.2) (3.10)
Requirement already satisfied: packaging>=22.0 in c:\users\comp\appdata\roaming\python\python310\site-packages (from pyinstaller>=6.11.1) (24.2)
Requirement already satisfied: pywin32-ctypes>=0.2.1 in c:\users\comp\appdata\roaming\python\python310\site-packages (from pyinstaller>=6.11.1) (0.2.3)
Requirement already satisfied: altgraph in c:\users\comp\appdata\roaming\python\python310\site-packages (from pyinstaller>=6.11.1) (0.17.4)
Requirement already satisfied: pyinstaller-hooks-contrib>=2025.1 in c:\users\comp\appdata\roaming\python\python310\site-packages (from pyinstaller>=6.11.1) (2025.2)
Requirement already satisfied: setuptools>=42.0.0 in c:\program files\python310\lib\site-packages (from pyinstaller>=6.11.1) (57.4.0)
Requirement already satisfied: pefile!=2024.8.26,>=2022.5.30 in c:\users\comp\appdata\roaming\python\python310\site-packages (from pyinstaller>=6.11.1) (2023.2.7)
WARNING: You are using pip version 21.2.3; however, version 25.0.1 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

D:\yt-dlp-master>python devscripts/make_lazy_extractors.py

D:\yt-dlp-master>python -m bundle.pyinstaller
Building yt-dlp v2025.03.27 for win32 AMD64 with options ['--onefile']
Remember to update the version using "devscripts/update-version.py"
Destination: dist/yt-dlp.exe

Running PyInstaller with ['--name=yt-dlp', '--icon=devscripts/logo.ico', '--upx-exclude=vcruntime140.dll', '--noconfirm', '--additional-hooks-dir=yt_dlp/__pyinstaller', '--onefile', 'yt_dlp/__main__.py']
203 INFO: PyInstaller: 6.12.0, contrib hooks: 2025.2
203 INFO: Python: 3.10.0
203 INFO: Platform: Windows-10-10.0.19045-SP0
203 INFO: Python environment: C:\Program Files\Python310
203 INFO: wrote D:\yt-dlp-master\yt-dlp.spec
218 INFO: Module search paths (PYTHONPATH):
['D:\\yt-dlp-master',
'D:\\yt-dlp-master',
'C:\\Program Files\\Python310\\python310.zip',
'C:\\Program Files\\Python310\\DLLs',
'C:\\Program Files\\Python310\\lib',
'C:\\Program Files\\Python310',
'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages',
'C:\\Program Files\\Python310\\lib\\site-packages',
'D:\\yt-dlp-master']
507 INFO: checking Analysis
507 INFO: Building Analysis because Analysis-00.toc is non existent
508 INFO: Running Analysis Analysis-00.toc
510 INFO: Target bytecode optimization level: 0
510 INFO: Initializing module dependency graph...
512 INFO: Initializing module graph hook caches...
576 INFO: Analyzing modules for base_library.zip ...
1311 INFO: Processing standard module hook 'hook-heapq.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
1405 INFO: Processing standard module hook 'hook-encodings.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
2781 INFO: Processing standard module hook 'hook-pickle.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
4872 INFO: Caching module dependency graph...
4904 INFO: Looking for Python shared library...
4919 INFO: Using Python shared library: C:\Program Files\Python310\python310.dll
4919 INFO: Analyzing D:\yt-dlp-master\yt_dlp\__main__.py
4950 INFO: Processing standard module hook 'hook-yt_dlp.py' from 'D:\\yt-dlp-master\\yt_dlp\\__pyinstaller'
156 WARNING: Failed to collect submodules for 'urllib3.contrib.emscripten' because importing 'urllib3.contrib.emscripten' raised: ModuleNotFoundError: No module named 'js'
Adding imports: ['yt_dlp.compat._legacy', 'yt_dlp.compat._deprecated', 'yt_dlp.utils._legacy', 'yt_dlp.utils._deprecated', 'Cryptodome', 'websockets', 'websockets.__main__', 'websockets.asyncio', 'websockets.asyncio.async_timeout', 'websockets.asyncio.client', 'websockets.asyncio.compatibility', 'websockets.asyncio.connection', 'websockets.asyncio.messages', 'websockets.asyncio.router', 'websockets.asyncio.server', 'websockets.auth', 'websockets.cli', 'websockets.client', 'websockets.connection', 'websockets.datastructures', 'websockets.exceptions', 'websockets.extensions', 'websockets.extensions.base', 'websockets.extensions.permessage_deflate', 'websockets.frames', 'websockets.headers', 'websockets.http', 'websockets.http11', 'websockets.imports', 'websockets.legacy', 'websockets.legacy.auth', 'websockets.legacy.client', 'websockets.legacy.exceptions', 'websockets.legacy.framing', 'websockets.legacy.handshake', 'websockets.legacy.http', 'websockets.legacy.protocol', 'websockets.legacy.server', 'websockets.protocol', 'websockets.server', 'websockets.speedups', 'websockets.streams', 'websockets.sync', 'websockets.sync.client', 'websockets.sync.connection', 'websockets.sync.messages', 'websockets.sync.router', 'websockets.sync.server', 'websockets.sync.utils', 'websockets.typing', 'websockets.uri', 'websockets.utils', 'websockets.version', 'requests', 'requests.__version__', 'requests._internal_utils', 'requests.adapters', 'requests.api', 'requests.auth', 'requests.certs', 'requests.compat', 'requests.cookies', 'requests.exceptions', 'requests.help', 'requests.hooks', 'requests.models', 'requests.packages', 'requests.sessions', 'requests.status_codes', 'requests.structures', 'requests.utils', 'urllib3', 'urllib3._base_connection', 'urllib3._collections', 'urllib3._request_methods', 'urllib3._version', 'urllib3.connection', 'urllib3.connectionpool', 'urllib3.contrib', 'urllib3.contrib.pyopenssl', 'urllib3.contrib.socks', 'urllib3.exceptions', 'urllib3.fields', 'urllib3.filepost', 'urllib3.http2', 'urllib3.http2.connection', 'urllib3.http2.probe', 'urllib3.poolmanager', 'urllib3.response', 'urllib3.util', 'urllib3.util.connection', 'urllib3.util.proxy', 'urllib3.util.request', 'urllib3.util.response', 'urllib3.util.retry', 'urllib3.util.ssl_', 'urllib3.util.ssl_match_hostname', 'urllib3.util.ssltransport', 'urllib3.util.timeout', 'urllib3.util.url', 'urllib3.util.util', 'urllib3.util.wait', 'mutagen', 'brotli', 'certifi', 'secretstorage', 'curl_cffi']
5810 WARNING: collect_data_files - skipping data collection for module 'curl_cffi' as it is not a package.
6312 INFO: Processing standard module hook 'hook-xml.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
6359 INFO: Processing standard module hook 'hook-xml.etree.cElementTree.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
6703 INFO: Processing standard module hook 'hook-platform.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
6719 INFO: Processing standard module hook 'hook-certifi.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
7453 INFO: Processing standard module hook 'hook-sqlite3.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
7724 INFO: Processing standard module hook 'hook-websockets.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
8177 INFO: Processing standard module hook 'hook-multiprocessing.util.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks'
9458 INFO: Processing pre-safe-import-module hook 'hook-typing_extensions.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
9458 INFO: SetuptoolsInfo: initializing cached setuptools info...
10356 INFO: Processing standard module hook 'hook-charset_normalizer.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
10668 INFO: Processing standard module hook 'hook-Cryptodome.py' from 'C:\\Users\\comp\\AppData\\Roaming\\Python\\Python310\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\yt-dlp-master\bundle\pyinstaller.py", line 132, in
main()
File "D:\yt-dlp-master\bundle\pyinstaller.py", line 46, in main
run_pyinstaller(opts)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\__main__.py", line 215, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\__main__.py", line 70, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\building\build_main.py", line 1270, in main
build(specfile, distpath, workpath, clean_build)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\building\build_main.py", line 1208, in build
exec(code, spec_namespace)
File "D:\yt-dlp-master\yt-dlp.spec", line 4, in
a = Analysis(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\building\build_main.py", line 582, in __init__
self.__postinit__()
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
self.assemble()
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\building\build_main.py", line 712, in assemble
program_scripts.append(self.graph.add_script(script))
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\depend\analysis.py", line 283, in add_script
self._top_script_node = super().add_script(pathname)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1177, in add_script
self._process_imports(n)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2608, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\depend\analysis.py", line 454, in _safe_import_hook
ret_modules = super()._safe_import_hook(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2065, in _safe_import_hook
target_modules = self.import_hook(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1249, in import_hook
target_package, target_module_partname = self._find_head_package(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1428, in _find_head_package
target_package = self._safe_import_module(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\depend\analysis.py", line 516, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1809, in _safe_import_module
self._process_imports(n)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2608, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\depend\analysis.py", line 454, in _safe_import_hook
ret_modules = super()._safe_import_hook(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2065, in _safe_import_hook
target_modules = self.import_hook(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1249, in import_hook
target_package, target_module_partname = self._find_head_package(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1428, in _find_head_package
target_package = self._safe_import_module(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\depend\analysis.py", line 516, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1808, in _safe_import_module
n = self._scan_code(module, co, co_ast)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2403, in _scan_code
self._scan_bytecode(
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2507, in _scan_bytecode
for inst in util.iterate_instructions(module_code_object):
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\util.py", line 21, in iterate_instructions
yield from iterate_instructions(constant)
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\util.py", line 13, in iterate_instructions
yield from (i for i in dis.get_instructions(code_object) if i.opname != "EXTENDED_ARG")
File "C:\Users\comp\AppData\Roaming\Python\Python310\site-packages\PyInstaller\lib\modulegraph\util.py", line 13, in
yield from (i for i in dis.get_instructions(code_object) if i.opname != "EXTENDED_ARG")
File "C:\Program Files\Python310\lib\dis.py", line 338, in _get_instructions_bytes
argval, argrepr = _get_const_info(arg, constants)
File "C:\Program Files\Python310\lib\dis.py", line 292, in _get_const_info
argval = const_list[const_index]
IndexError: tuple index out of range



[/more]

http://forum.ru-board.com/topic.cgi?forum=33&topic=14184&glp#lt

Метки:  

 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку