LZAA
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Я в программировании ничего не смыслю. Пытаюсь получить результат методом тыка. Есть сценарий py. Часть кода: # -*- coding: utf-8 -*- from subprocess import call import subprocess import re import xmltodict import json import re import requests import base64 import time import os import argparse import binascii import configparser import sys from requests import Request, Session currentFile = __file__ realPath = os.path.realpath(currentFile) dirPath = os.path.dirname(realPath) dirName = os.path.basename(dirPath) wvDecrypterexe = dirPath + "/binaries/wvDecrypter.exe" challengeBIN = dirPath + "/binaries/challenge.bin" licenceBIN = dirPath + "/binaries/licence.bin" mp4dump = dirPath + "/binaries/mp4dump.exe" if os.path.isfile(challengeBIN) : os.remove (challengeBIN) if os.path.isfile(licenceBIN) : os.remove (licenceBIN) WV_SYSTEM_ID = 'ed ef 8b a9 79 d6 4a ce a3 c8 27 dc d5 1d 21 ed' FInput = "a.mp4" FOutput = "b.mp4" KID = "96431904-687c-5940-9a2e-333b163af8d1" pssh = None mp4_data = subprocess.check_output ([mp4dump, '--format', 'json', '--verbosity', '3', FInput]) mp4_data = json.loads(mp4_data) Результат cmd: python s.py Traceback (most recent call last): File "s.py", line 35, in <module> mp4_data = subprocess.check_output ([mp4dump, '--format', 'json', '--verbosity', '3', FInput]) File "D:\Program Files\Python 3.8\lib\subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "D:\Program Files\Python 3.8\lib\subprocess.py", line 489, in run with Popen(*popenargs, **kwargs) as process: File "D:\Program Files\Python 3.8\lib\subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "D:\Program Files\Python 3.8\lib\subprocess.py", line 1307, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified Можно ли из этого понять, почему система не может создать файл? | Всего записей: 2200 | Зарегистр. 09-01-2010 | Отправлено: 23:27 16-11-2019 | Исправлено: LZAA, 23:29 16-11-2019 |
|