after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def dex_2_jar(app_path, app_dir, tools_dir): """Run dex2jar.""" try: logger.info("DEX -> JAR") working_dir = None args = [] if settings.JAR_CONVERTER == "d2j": logger.info("Using JAR converter - dex2jar") dexes = get_dex_files(app_dir) for idx...
def dex_2_jar(app_path, app_dir, tools_dir): """Run dex2jar.""" try: logger.info("DEX -> JAR") working_dir = None args = [] if settings.JAR_CONVERTER == "d2j": logger.info("Using JAR converter - dex2jar") dexes = get_dex_files(app_dir) for idx...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def dex_2_smali(app_dir, tools_dir): """Run dex2smali""" try: logger.info("DEX -> SMALI") dexes = get_dex_files(app_dir) for dex_path in dexes: logger.info("Converting " + dex_path + " to Smali Code") if len(settings.BACKSMALI_BINARY) > 0 and isFileExists( ...
def dex_2_smali(app_dir, tools_dir): """Run dex2smali""" try: logger.info("DEX -> SMALI") dexes = get_dex_files(app_dir) for dex_path in dexes: logger.info("Converting " + dex_path + " to Smali Code") if len(settings.BACKSMALI_BINARY) > 0 and isFileExists( ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def jar_2_java(app_dir, tools_dir): """Conver jar to java.""" try: logger.info("JAR -> JAVA") jar_files = get_jar_files(app_dir) output = os.path.join(app_dir, "java_source/") for jar_path in jar_files: logger.info("Decompiling {} to Java Code".format(jar_path)) ...
def jar_2_java(app_dir, tools_dir): """Conver jar to java.""" try: logger.info("JAR -> JAVA") jar_files = get_jar_files(app_dir) output = os.path.join(app_dir, "java_source/") for jar_path in jar_files: logger.info("Decompiling {} to Java Code".format(jar_path)) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_db_entry(db_entry: QuerySet) -> dict: """Return the context for APK/ZIP from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "name": db_entry[0].APP_NAME, "size": db...
def get_context_from_db_entry(db_entry: QuerySet) -> dict: """Return the context for APK/ZIP from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "name": db_entry[0].APP_NAME, "size": db...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_analysis( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> dict: """Get the context for APK/ZIP from analysis results""" try: context = { "title": "Static Analysis", "name": app_dic["app_name"], "size": app_dic["...
def get_context_from_analysis( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> dict: """Get the context for APK/ZIP from analysis results""" try: context = { "title": "Static Analysis", "name": app_dic["app_name"], "size": app_dic["...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def update_db_entry( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> None: """Update an APK/ZIP DB entry""" try: # pylint: disable=E1101 StaticAnalyzerAndroid.objects.filter(MD5=app_dic["md5"]).update( TITLE="Static Analysis", APP_NAME=...
def update_db_entry( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> None: """Update an APK/ZIP DB entry""" try: # pylint: disable=E1101 StaticAnalyzerAndroid.objects.filter(MD5=app_dic["md5"]).update( TITLE="Static Analysis", APP_NAME=...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def create_db_entry( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> None: """Create a new DB-Entry for APK/ZIP""" try: static_db = StaticAnalyzerAndroid( TITLE="Static Analysis", APP_NAME=app_dic["app_name"], SIZE=app_dic["size"], ...
def create_db_entry( app_dic, man_data_dic, man_an_dic, code_an_dic, cert_dic, bin_anal, apk_id ) -> None: """Create a new DB-Entry for APK/ZIP""" try: static_db = StaticAnalyzerAndroid( TITLE="Static Analysis", APP_NAME=app_dic["app_name"], SIZE=app_dic["size"], ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def run(request): """Find in source files.""" try: match = re.match("^[0-9a-f]{32}$", request.POST["md5"]) if match: md5 = request.POST["md5"] query = request.POST["q"] code = request.POST["code"] matches = [] if code == "java": ...
def run(request): """Find in source files.""" try: match = re.match("^[0-9a-f]{32}$", request.POST["md5"]) if match: md5 = request.POST["md5"] query = request.POST["q"] code = request.POST["code"] matches = [] if code == "java": ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def find_icon_path_zip(res_dir, icon_paths_from_manifest): """Tries to find an icon, based on paths fetched from the manifest and by global search returns an empty string on fail or a full path""" global KNOWN_MIPMAP_SIZES try: logger.info("Guessing icon path") for icon_path in icon_path...
def find_icon_path_zip(res_dir, icon_paths_from_manifest): """Tries to find an icon, based on paths fetched from the manifest and by global search returns an empty string on fail or a full path""" global KNOWN_MIPMAP_SIZES try: logger.info("Guessing icon path") for icon_path in icon_path...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_icon(apk_path, res_dir): """Returns a dict with isHidden boolean and a relative path path is a full path (not relative to resource folder)""" try: logger.info("Fetching icon path") a = apk.APK(apk_path) icon_resolution = 0xFFFE - 1 icon_name = a.get_app_icon(max_dpi=i...
def get_icon(apk_path, res_dir): """Returns a dict with isHidden boolean and a relative path path is a full path (not relative to resource folder)""" try: logger.info("Fetching icon path") a = apk.APK(apk_path) icon_resolution = 0xFFFE - 1 icon_name = a.get_app_icon(max_dpi=i...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def run(request): """Show the java code.""" try: logger.debug("showing java code for request : {}".format(request)) match = re.match("^[0-9a-f]{32}$", request.GET["md5"]) typ = request.GET["type"] if match: md5 = request.GET["md5"] if typ == "eclipse": ...
def run(request): """Show the java code.""" try: logger.debug("showing java code for request : {}".format(request)) match = re.match("^[0-9a-f]{32}$", request.GET["md5"]) typ = request.GET["type"] if match: md5 = request.GET["md5"] if typ == "eclipse": ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_manifest(app_path, app_dir, tools_dir, typ, binary): """Get the manifest file.""" try: manifest = None dat = read_manifest(app_dir, app_path, tools_dir, typ, binary) try: logger.info("Parsing AndroidManifest.xml") manifest = minidom.parseString(dat) ...
def get_manifest(app_path, app_dir, tools_dir, typ, binary): """Get the manifest file.""" try: manifest = None dat = read_manifest(app_dir, app_path, tools_dir, typ, binary) try: logger.info("Parsing AndroidManifest.xml") manifest = minidom.parseString(dat) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def manifest_data(mfxml): """Extract manifest data.""" try: logger.info("Extracting Manifest Data") svc = [] act = [] brd = [] cnp = [] lib = [] perm = [] cat = [] icons = [] dvm_perm = {} package = "" minsdk = "" ...
def manifest_data(mfxml): """Extract manifest data.""" try: logger.info("Extracting Manifest Data") svc = [] act = [] brd = [] cnp = [] lib = [] perm = [] cat = [] icons = [] dvm_perm = {} package = "" minsdk = "" ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_browsable_activities(node): """Get Browsable Activities""" try: browse_dic = {} schemes = [] mime_types = [] hosts = [] ports = [] paths = [] path_prefixs = [] path_patterns = [] catg = node.getElementsByTagName("category") ...
def get_browsable_activities(node): """Get Browsable Activities""" try: browse_dic = {} schemes = [] mime_types = [] hosts = [] ports = [] paths = [] path_prefixs = [] path_patterns = [] catg = node.getElementsByTagName("category") ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def manifest_analysis(mfxml, man_data_dic): """Analyse manifest file.""" # pylint: disable=C0301 try: logger.info("Manifest Analysis Started") exp_count = dict.fromkeys(["act", "ser", "bro", "cnt"], 0) applications = mfxml.getElementsByTagName("application") datas = mfxml.get...
def manifest_analysis(mfxml, man_data_dic): """Analyse manifest file.""" # pylint: disable=C0301 try: logger.info("Manifest Analysis Started") exp_count = dict.fromkeys(["act", "ser", "bro", "cnt"], 0) applications = mfxml.getElementsByTagName("application") datas = mfxml.get...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def read_manifest(app_dir, app_path, tools_dir, typ, apk): """Read the manifest file.""" try: dat = "" manifest = "" if apk: manifest = get_manifest_file(app_path, app_dir, tools_dir) if isFileExists(manifest): logger.info("Reading Android Manifest...
def read_manifest(app_dir, app_path, tools_dir, typ, apk): """Read the manifest file.""" try: dat = "" manifest = "" if apk: manifest = get_manifest_file(app_path, app_dir, tools_dir) if isFileExists(manifest): logger.info("Reading Android Manifest...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_manifest_file(app_path, app_dir, tools_dir): """Get readable AndroidManifest.xml""" try: manifest = None if len(settings.APKTOOL_BINARY) > 0 and isFileExists(settings.APKTOOL_BINARY): apktool_path = settings.APKTOOL_BINARY else: apktool_path = os.path.join...
def get_manifest_file(app_path, app_dir, tools_dir): """Get readable AndroidManifest.xml""" try: manifest = None if len(settings.APKTOOL_BINARY) > 0 and isFileExists(settings.APKTOOL_BINARY): apktool_path = settings.APKTOOL_BINARY else: apktool_path = os.path.join...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def run(request): """View the manifest.""" try: directory = settings.BASE_DIR # BASE DIR md5 = request.GET["md5"] # MD5 typ = request.GET["type"] # APK or SOURCE binary = request.GET["bin"] match = re.match("^[0-9a-f]{32}$", md5) if match and (typ in ["eclipse"...
def run(request): """View the manifest.""" try: directory = settings.BASE_DIR # BASE DIR md5 = request.GET["md5"] # MD5 typ = request.GET["type"] # APK or SOURCE binary = request.GET["bin"] match = re.match("^[0-9a-f]{32}$", md5) if match and (typ in ["eclipse"...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def run(request): """Show the smali code.""" try: match = re.match("^[0-9a-f]{32}$", request.GET["md5"]) if match: md5 = request.GET["md5"] src = os.path.join(settings.UPLD_DIR, md5 + "/smali_source/") html = "" # pylint: disable=unused-variable ...
def run(request): """Show the smali code.""" try: match = re.match("^[0-9a-f]{32}$", request.GET["md5"]) if match: md5 = request.GET["md5"] src = os.path.join(settings.UPLD_DIR, md5 + "/smali_source/") html = "" # pylint: disable=unused-variable ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def static_analyzer(request, api=False): """Do static analysis on an request and save to db.""" try: if api: typ = request.POST["scan_type"] checksum = request.POST["hash"] filename = request.POST["file_name"] rescan = str(request.POST.get("re_scan", 0)) ...
def static_analyzer(request, api=False): """Do static analysis on an request and save to db.""" try: if api: typ = request.POST["scan_type"] checksum = request.POST["hash"] filename = request.POST["file_name"] rescan = str(request.POST.get("re_scan", 0)) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def valid_android_zip(app_dir): """Test if this is an valid android zip.""" try: logger.info("Checking for ZIP Validity and Mode") # Eclipse man = os.path.isfile(os.path.join(app_dir, "AndroidManifest.xml")) src = os.path.exists(os.path.join(app_dir, "src/")) if man and s...
def valid_android_zip(app_dir): """Test if this is an valid android zip.""" try: logger.info("Checking for ZIP Validity and Mode") # Eclipse man = os.path.isfile(os.path.join(app_dir, "AndroidManifest.xml")) src = os.path.exists(os.path.join(app_dir, "src/")) if man and s...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def gen_downloads(app_dir, md5, icon_path=""): """Generate downloads for java and smali.""" try: logger.info("Generating Downloads") # For Java directory = os.path.join(app_dir, "java_source/") dwd_dir = os.path.join(settings.DWD_DIR, md5 + "-java.zip") zipf = zipfile.Zip...
def gen_downloads(app_dir, md5, icon_path=""): """Generate downloads for java and smali.""" try: logger.info("Generating Downloads") # For Java directory = os.path.join(app_dir, "java_source/") dwd_dir = os.path.join(settings.DWD_DIR, md5 + "-java.zip") zipf = zipfile.Zip...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def strings_jar(app_file, app_dir): """Extract the strings from an app.""" try: logger.info("Extracting Strings from APK") dat = [] apk_file = os.path.join(app_dir, app_file) and_a = apk.APK(apk_file) rsrc = and_a.get_android_resources() pkg = rsrc.get_packages_na...
def strings_jar(app_file, app_dir): """Extract the strings from an app.""" try: logger.info("Extracting Strings from APK") dat = [] apk_file = os.path.join(app_dir, app_file) and_a = apk.APK(apk_file) rsrc = and_a.get_android_resources() pkg = rsrc.get_packages_na...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def win_fix_java(tools_dir): """Runn JAVA path fix in Windows""" try: logger.info("Running JAVA path fix in Windows") dmy = os.path.join(tools_dir, "d2j2/d2j_invoke.tmp") org = os.path.join(tools_dir, "d2j2/d2j_invoke.bat") dat = "" with open(dmy, "r") as file_pointer: ...
def win_fix_java(tools_dir): """Runn JAVA path fix in Windows""" try: logger.info("Running JAVA path fix in Windows") dmy = os.path.join(tools_dir, "d2j2/d2j_invoke.tmp") org = os.path.join(tools_dir, "d2j2/d2j_invoke.bat") dat = "" with open(dmy, "r") as file_pointer: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def win_fix_python3(tools_dir): """Runn Python 3 path fix in Windows.""" try: logger.info("Running Python 3 path fix in Windows") python3_path = "" if len(settings.PYTHON3_PATH) > 2: python3_path = settings.python3_path else: pathenv = os.environ["path"] ...
def win_fix_python3(tools_dir): """Runn Python 3 path fix in Windows.""" try: logger.info("Running Python 3 path fix in Windows") python3_path = "" if len(settings.PYTHON3_PATH) > 2: python3_path = settings.python3_path else: pathenv = os.environ["path"] ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def otool_analysis(tools_dir, bin_name, bin_path, bin_dir): """OTOOL Analysis of Binary""" try: otool_dict = {"libs": [], "anal": []} logger.info("Running Object Analysis of Binary : " + bin_name) otool_dict["libs"] = get_otool_out(tools_dir, "libs", bin_path, bin_dir) # PIE ...
def otool_analysis(tools_dir, bin_name, bin_path, bin_dir): """OTOOL Analysis of Binary""" try: otool_dict = {"libs": [], "anal": []} logger.info("Running Object Analysis of Binary : " + bin_name) otool_dict["libs"] = get_otool_out(tools_dir, "libs", bin_path, bin_dir) # PIE ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def class_dump_z(tools_dir, bin_path, app_dir): """Running Classdumpz on binary""" try: webview = {} if platform.system() == "Darwin": logger.info("Running class-dump-z against the binary for dumping classes") if len(settings.CLASSDUMPZ_BINARY) > 0 and isFileExists( ...
def class_dump_z(tools_dir, bin_path, app_dir): """Running Classdumpz on binary""" try: webview = {} if platform.system() == "Darwin": logger.info("Running class-dump-z against the binary for dumping classes") if len(settings.CLASSDUMPZ_BINARY) > 0 and isFileExists( ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def strings_on_ipa(bin_path): """Extract Strings from IPA""" try: logger.info("Running strings against the Binary") unique_str = [] unique_str = list(set(strings_util(bin_path))) # Make unique unique_str = [escape(ip_str) for ip_str in unique_str] # Escape evil strings ...
def strings_on_ipa(bin_path): """Extract Strings from IPA""" try: logger.info("Running strings against the Binary") unique_str = [] unique_str = list(set(strings_util(bin_path))) # Make unique unique_str = [escape(ip_str) for ip_str in unique_str] # Escape evil strings ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def binary_analysis(src, tools_dir, app_dir, executable_name): """Binary Analysis of IPA""" try: binary_analysis_dict = {} logger.info("Starting Binary Analysis") dirs = os.listdir(src) dot_app_dir = "" for dir_ in dirs: if dir_.endswith(".app"): ...
def binary_analysis(src, tools_dir, app_dir, executable_name): """Binary Analysis of IPA""" try: binary_analysis_dict = {} logger.info("Starting Binary Analysis") dirs = os.listdir(src) dot_app_dir = "" for dir_ in dirs: if dir_.endswith(".app"): ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def ios_source_analysis(src): """iOS Objective-C Code Analysis""" try: logger.info("Starting iOS Source Code and PLIST Analysis") api_rules = ios_apis.CODE_APIS code_rules = ios_rules.CODE_RULES code_findings = {} api_findings = {} email_n_file = [] url_n_...
def ios_source_analysis(src): """iOS Objective-C Code Analysis""" try: logger.info("Starting iOS Source Code and PLIST Analysis") api_rules = ios_apis.CODE_APIS code_rules = ios_rules.CODE_RULES code_findings = {} api_findings = {} email_n_file = [] url_n_...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_analysis_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Get the context for IPA from analysis results""" try: context = { "title": "Static Analysis", "file_name": app_dict["file_name"], "size": app_dict["size"], "md5": app_dict[...
def get_context_from_analysis_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Get the context for IPA from analysis results""" try: context = { "title": "Static Analysis", "file_name": app_dict["file_name"], "size": app_dict["size"], "md5": app_dict[...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_db_entry_ipa(db_entry): """Return the context for IPA from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "file_name": db_entry[0].FILE_NAME, "size": db_entry[0].SIZ...
def get_context_from_db_entry_ipa(db_entry): """Return the context for IPA from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "file_name": db_entry[0].FILE_NAME, "size": db_entry[0].SIZ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def update_db_entry_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Update an IPA DB entry""" try: # pylint: disable=E1101 StaticAnalyzerIPA.objects.filter(MD5=app_dict["md5_hash"]).update( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=a...
def update_db_entry_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Update an IPA DB entry""" try: # pylint: disable=E1101 StaticAnalyzerIPA.objects.filter(MD5=app_dict["md5_hash"]).update( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=a...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def create_db_entry_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Save an IOS IPA DB entry""" try: static_db = StaticAnalyzerIPA( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=app_dict["size"], MD5=app_dict["md5_hash"], ...
def create_db_entry_ipa(app_dict, info_dict, bin_dict, files, sfiles): """Save an IOS IPA DB entry""" try: static_db = StaticAnalyzerIPA( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=app_dict["size"], MD5=app_dict["md5_hash"], ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_analysis_ios(app_dict, info_dict, code_dict, files, sfiles): """Get the context for IOS ZIP from analysis results""" try: context = { "title": "Static Analysis", "file_name": app_dict["file_name"], "size": app_dict["size"], "md5": app_...
def get_context_from_analysis_ios(app_dict, info_dict, code_dict, files, sfiles): """Get the context for IOS ZIP from analysis results""" try: context = { "title": "Static Analysis", "file_name": app_dict["file_name"], "size": app_dict["size"], "md5": app_...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_context_from_db_entry_ios(db_entry): """Return the context for IOS ZIP from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "file_name": db_entry[0].FILE_NAME, "size": db_entry[0]...
def get_context_from_db_entry_ios(db_entry): """Return the context for IOS ZIP from DB""" try: logger.info("Analysis is already Done. Fetching data from the DB...") context = { "title": db_entry[0].TITLE, "file_name": db_entry[0].FILE_NAME, "size": db_entry[0]...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def update_db_entry_ios(app_dict, info_dict, code_dict, files, sfiles): """Update an IOS ZIP DB entry""" try: # pylint: disable=E1101 StaticAnalyzerIOSZIP.objects.filter(MD5=app_dict["md5_hash"]).update( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], ...
def update_db_entry_ios(app_dict, info_dict, code_dict, files, sfiles): """Update an IOS ZIP DB entry""" try: # pylint: disable=E1101 StaticAnalyzerIOSZIP.objects.filter(MD5=app_dict["md5_hash"]).update( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def create_db_entry_ios(app_dict, info_dict, code_dict, files, sfiles): """Save an IOS ZIP DB entry""" try: # pylint: disable=E1101 static_db = StaticAnalyzerIOSZIP( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=app_dict["size"], M...
def create_db_entry_ios(app_dict, info_dict, code_dict, files, sfiles): """Save an IOS ZIP DB entry""" try: # pylint: disable=E1101 static_db = StaticAnalyzerIOSZIP( TITLE="Static Analysis", FILE_NAME=app_dict["file_name"], SIZE=app_dict["size"], M...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def plist_analysis(src, is_source): """Plist Analysis""" try: logger.info("iOS Info.plist Analysis Started") plist_info = { "bin_name": "", "bin": "", "id": "", "version": "", "build": "", "sdk": "", "pltfm": "",...
def plist_analysis(src, is_source): """Plist Analysis""" try: logger.info("iOS Info.plist Analysis Started") plist_info = { "bin_name": "", "bin": "", "id": "", "version": "", "build": "", "sdk": "", "pltfm": "",...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def ios_list_files(src, md5_hash, binary_form, mode): """List iOS files""" try: logger.info("Get Files, BIN Plist -> XML, and Normalize") # Multi function, Get Files, BIN Plist -> XML, normalize + to x filez = [] certz = [] sfiles = [] database = [] plist ...
def ios_list_files(src, md5_hash, binary_form, mode): """List iOS files""" try: logger.info("Get Files, BIN Plist -> XML, and Normalize") # Multi function, Get Files, BIN Plist -> XML, normalize + to x filez = [] certz = [] sfiles = [] database = [] plist ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def read_sqlite(sqlite_file): """Read SQlite File""" try: logger.info("Dumping SQLITE Database") data = "" con = sqlite3.connect(sqlite_file) cur = con.cursor() cur.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = cur.fetchall() for t...
def read_sqlite(sqlite_file): """Read SQlite File""" try: logger.info("Dumping SQLITE Database") data = "" con = sqlite3.connect(sqlite_file) cur = con.cursor() cur.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = cur.fetchall() for t...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def hash_gen(app_path) -> tuple: """Generate and return sha1 and sha256 as a tupel.""" try: logger.info("Generating Hashes") sha1 = hashlib.sha1() sha256 = hashlib.sha256() block_size = 65536 with io.open(app_path, mode="rb") as afile: buf = afile.read(block_s...
def hash_gen(app_path) -> tuple: """Generate and return sha1 and sha256 as a tupel.""" try: logger.info("Generating Hashes") sha1 = hashlib.sha1() sha256 = hashlib.sha256() block_size = 65536 with io.open(app_path, mode="rb") as afile: buf = afile.read(block_s...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def unzip(app_path, ext_path): logger.info("Unzipping") try: files = [] with zipfile.ZipFile(app_path, "r") as zipptr: for fileinfo in zipptr.infolist(): filename = fileinfo.filename if not isinstance(filename, str): filename = str(...
def unzip(app_path, ext_path): logger.info("Unzipping") try: files = [] with zipfile.ZipFile(app_path, "r") as zipptr: for fileinfo in zipptr.infolist(): filename = fileinfo.filename if not isinstance(filename, str): filename = str(...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def code_rule_matcher(findings, perms, data, file_path, code_rules): """Android Static Analysis Rule Matcher""" try: for rule in code_rules: # CASE CHECK if rule["input_case"] == "lower": tmp_data = data.lower() elif rule["input_case"] == "upper": ...
def code_rule_matcher(findings, perms, data, file_path, code_rules): """Android Static Analysis Rule Matcher""" try: for rule in code_rules: # CASE CHECK if rule["input_case"] == "lower": tmp_data = data.lower() elif rule["input_case"] == "upper": ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def api_rule_matcher(api_findings, perms, data, file_path, api_rules): """Android API Analysis Rule Matcher""" try: for api in api_rules: # CASE CHECK if api["input_case"] == "lower": tmp_data = data.lower() elif api["input_case"] == "upper": ...
def api_rule_matcher(api_findings, perms, data, file_path, api_rules): """Android API Analysis Rule Matcher""" try: for api in api_rules: # CASE CHECK if api["input_case"] == "lower": tmp_data = data.lower() elif api["input_case"] == "upper": ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def _binary_analysis(app_dic): """Start binary analsis.""" logger.info("Starting Binary Analysis") bin_an_dic = {} # Init optional sections to prevent None-Pointer-Errors bin_an_dic["results"] = [] bin_an_dic["warnings"] = [] # Search for exe for file_name in app_dic["files"]: ...
def _binary_analysis(app_dic): """Start binary analsis.""" logger.info("Starting Binary Analysis") bin_an_dic = {} # Init optional sections to prevent None-Pointer-Errors bin_an_dic["results"] = [] bin_an_dic["warnings"] = [] # Search for exe for file_name in app_dic["files"]: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def _parse_xml(app_dir): """Parse the AppxManifest file to get basic informations.""" logger.info("Starting Binary Analysis - XML") xml_file = os.path.join(app_dir, "AppxManifest.xml") xml_dic = { "version": "", "arch": "", "app_name": "", "pub_name": "", "compile...
def _parse_xml(app_dir): """Parse the AppxManifest file to get basic informations.""" logger.info("Starting Binary Analysis - XML") xml_file = os.path.join(app_dir, "AppxManifest.xml") xml_dic = { "version": "", "arch": "", "app_name": "", "pub_name": "", "compile...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def check_config(): try: for path in [settings.AVD_EMULATOR, settings.ADB_BINARY]: if not path: logger.error( "ADB binary not configured, please refer to the official documentation" ) return False if settings.ANDROID_DYN...
def check_config(): try: for path in [settings.AVD_EMULATOR, settings.ADB_BINARY]: if not path: logger.error( "ADB binary not configured, please refer to the official documentation" ) return False if settings.ANDROID_DYN...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def help_boot_avd(): try: emulator = get_identifier() # Wait for the adb to answer args = [settings.ADB_BINARY, "-s", emulator, "wait-for-device"] logger.info("help_boot_avd: wait-for-device") subprocess.call(args) # Make sure adb running as root logger.info...
def help_boot_avd(): try: emulator = get_identifier() # Wait for the adb to answer args = [settings.ADB_BINARY, "-s", emulator, "wait-for-device"] logger.info("help_boot_avd: wait-for-device") subprocess.call(args) # Make sure adb running as root logger.info...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def start_avd(): try: if platform.system() == "Darwin": # There is a strage error in mac with the dyld one in a while.. # this should fix it.. if "DYLD_FALLBACK_LIBRARY_PATH" in list(os.environ.keys()): del os.environ["DYLD_FALLBACK_LIBRARY_PATH"] ...
def start_avd(): try: if platform.system() == "Darwin": # There is a strage error in mac with the dyld one in a while.. # this should fix it.. if "DYLD_FALLBACK_LIBRARY_PATH" in list(os.environ.keys()): del os.environ["DYLD_FALLBACK_LIBRARY_PATH"] ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def on_treeWidget_itemChanged(self, item, column): if item is self._get_current_treewidget_item() and column == 0: newText = str(item.text(0)) if ui_common.validate( not ui_common.EMPTY_FIELD_REGEX.match(newText), "The name can't be empty.", None, self...
def on_treeWidget_itemChanged(self, item, column): if item is self.treeWidget.selectedItems()[0] and column == 0: newText = str(item.text(0)) if ui_common.validate( not ui_common.EMPTY_FIELD_REGEX.match(newText), "The name can't be empty.", None, self....
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def on_new_folder(self): parent_item = self._get_current_treewidget_item() self.__createFolder(parent_item)
def on_new_folder(self): parent_item = self.treeWidget.selectedItems()[0] self.__createFolder(parent_item)
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def on_paste(self): parent_item = self._get_current_treewidget_item() parent = self.__extractData(parent_item) self.window().app.monitor.suspend() new_items = [] for item in self.cutCopiedItems: if isinstance(item, model.Folder): new_item = ak_tree.FolderWidgetItem(parent_item, ...
def on_paste(self): parent_item = self.treeWidget.selectedItems()[0] parent = self.__extractData(parent_item) self.window().app.monitor.suspend() new_items = [] for item in self.cutCopiedItems: if isinstance(item, model.Folder): new_item = ak_tree.FolderWidgetItem(parent_item, i...
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def on_rename(self): widget_item = self._get_current_treewidget_item() self.treeWidget.editItem(widget_item, 0)
def on_rename(self): widget_item = self.treeWidget.selectedItems()[0] self.treeWidget.editItem(widget_item, 0)
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def on_save(self): logger.info("User requested file save.") if self.stack.currentWidget().validate(): self.window().app.monitor.suspend() persist_global = self.stack.currentWidget().save() self.window().save_completed(persist_global) self.set_dirty(False) item = self._get...
def on_save(self): logger.info("User requested file save.") if self.stack.currentWidget().validate(): self.window().app.monitor.suspend() persist_global = self.stack.currentWidget().save() self.window().save_completed(persist_global) self.set_dirty(False) item = self.tre...
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def save(self, item): item.modes.append(model.TriggerMode.HOTKEY) # Build modifier list modifiers = self.build_modifiers() if self.key in self.REVERSE_KEY_MAP: key = self.REVERSE_KEY_MAP[self.key] else: key = self.key if key is None: raise RuntimeError("Attempt to set ...
def save(self, item): item.modes.append(model.TriggerMode.HOTKEY) # Build modifier list modifiers = self.build_modifiers() if self.key in self.REVERSE_KEY_MAP: key = self.REVERSE_KEY_MAP[self.key] else: key = self.key if key is None: raise RuntimeError("Attempt to set ...
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def __init__(self): super(PhrasePage, self).__init__() self.setupUi(self) self.initialising = True self.current_phrase = None # type: model.Phrase for val in sorted(model.SEND_MODES.keys()): self.sendModeCombo.addItem(val) self.initialising = False
def __init__(self): super(PhrasePage, self).__init__() self.setupUi(self) self.initialising = True l = list(model.SEND_MODES.keys()) l.sort() for val in l: self.sendModeCombo.addItem(val) self.initialising = False
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def load(self, phrase: model.Phrase): self.current_phrase = phrase self.phraseText.setPlainText(phrase.phrase) self.showInTrayCheckbox.setChecked(phrase.show_in_tray_menu) for k, v in model.SEND_MODES.items(): if v == phrase.sendMode: self.sendModeCombo.setCurrentIndex(self.sendMode...
def load(self, phrase): self.currentPhrase = phrase self.phraseText.setPlainText(phrase.phrase) self.showInTrayCheckbox.setChecked(phrase.show_in_tray_menu) for k, v in model.SEND_MODES.items(): if v == phrase.sendMode: self.sendModeCombo.setCurrentIndex(self.sendModeCombo.findText(...
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def save(self): self.settingsWidget.save() self.current_phrase.phrase = str(self.phraseText.toPlainText()) self.current_phrase.show_in_tray_menu = self.showInTrayCheckbox.isChecked() self.current_phrase.sendMode = model.SEND_MODES[ str(self.sendModeCombo.currentText()) ] # TODO - re-en...
def save(self): self.settingsWidget.save() self.currentPhrase.phrase = str(self.phraseText.toPlainText()) self.currentPhrase.show_in_tray_menu = self.showInTrayCheckbox.isChecked() self.currentPhrase.sendMode = model.SEND_MODES[ str(self.sendModeCombo.currentText()) ] # TODO - re-enabl...
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def set_item_title(self, title): self.current_phrase.description = title
def set_item_title(self, title): self.currentPhrase.description = title
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def rebuild_item_path(self): self.current_phrase.rebuild_path()
def rebuild_item_path(self): self.currentPhrase.rebuild_path()
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def is_new_item(self): return self.current_phrase.path is None
def is_new_item(self): return self.currentPhrase.path is None
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def reset(self): self.load(self.current_phrase)
def reset(self): self.load(self.currentPhrase)
https://github.com/autokey/autokey/issues/285
2019-05-21 21:45:48,995 DEBUG - service - Raw key: 's', modifiers: [<Key.CONTROL: '<ctrl>'>], Key: s 2019-05-21 21:45:48,995 DEBUG - root.Qt-GUI.System-tray-notifier - Show tray icon enabled in settings: True 2019-05-21 21:45:48,997 DEBUG - service - Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt...
IndexError
def __init__(self, app): """ Create initial default configuration """ self.VERSION = self.__class__.CLASS_VERSION self.lock = threading.Lock() self.app = app self.folders = [] self.userCodeDir = None # type: str self.configHotkey = GlobalHotkey() self.configHotkey.set_hotkey([...
def __init__(self, app): """ Create initial default configuration """ self.VERSION = self.__class__.CLASS_VERSION self.lock = threading.Lock() self.app = app self.folders = [] self.userCodeDir = None # type: str self.configHotkey = GlobalHotkey() self.configHotkey.set_hotkey([...
https://github.com/autokey/autokey/issues/274
Input stack at end of handle_keypress: deque([' ', '#', 'D'], maxlen=150) Key.SHIFT released Raw key: ' ', modifiers: [], Key: Window visible title: 'AutoKey', Window class: 'autokey-qt.autokey-qt' No phrase/script matched hotkey Script runner executing: Script('Insert Date') Send special key: [<Key.BACKSPACE: '<backsp...
RuntimeError
def on_show_error(self, widget, data=None): self.on_show_configure(widget, data) self.app.show_script_error(self.app.configWindow.ui) self.errorItem.hide() self.update_visible_status()
def on_show_error(self, widget, data=None): self.app.show_script_error(self.app.configWindow.ui) self.errorItem.hide() self.update_visible_status()
https://github.com/autokey/autokey/issues/222
Traceback (most recent call last): File '~/autokey/gtkui/notifier.py", line 140, in on_show_error self.app.show_script_error(self.app.configWindow.ui) AttributeError: 'NoneType' object has no attribute 'ui'
AttributeError
def _send_string_clipboard(self, string: str, paste_command: model.SendMode): """ Use the clipboard to send a string. """ backup = ( self.clipboard.text ) # Keep a backup of current content, to restore the original afterwards. if backup is None: logger.warning( "Trie...
def _send_string_clipboard(self, string: str, paste_command: model.SendMode): """Use the clipboard to send a string.""" backup = ( self.clipboard.text ) # Keep a backup of current content, to restore the original afterwards. self.clipboard.text = string self.mediator.send_string(paste_comma...
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def _restore_clipboard_text(self, backup: str): """Restore the clipboard content.""" # Pasting takes some time, so wait a bit before restoring the content. Otherwise the restore is done before # the pasting happens, causing the backup to be pasted instead of the desired clipboard content. time.sleep(0.2...
def _restore_clipboard_text(self, backup: str): """Restore the clipboard content.""" # Pasting takes some time, so wait a bit before restoring the content. Otherwise the restore is done before # the pasting happens, causing the backup to be pasted instead of the desired clipboard content. time.sleep(0.1...
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def _send_string_selection(self, string: str): """Use the mouse selection clipboard to send a string.""" backup = ( self.clipboard.selection ) # Keep a backup of current content, to restore the original afterwards. if backup is None: logger.warning( "Tried to backup the X PR...
def _send_string_selection(self, string: str): """Use the mouse selection clipboard to send a string.""" backup = ( self.clipboard.selection ) # Keep a backup of current content, to restore the original afterwards. self.clipboard.selection = string self.__enqueue(self._paste_using_mouse_but...
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def _restore_clipboard_selection(self, backup: str): """Restore the selection clipboard content.""" # Pasting takes some time, so wait a bit before restoring the content. Otherwise the restore is done before # the pasting happens, causing the backup to be pasted instead of the desired clipboard content. ...
def _restore_clipboard_selection(self, backup: str): """Restore the selection clipboard content.""" # Pasting takes some time, so wait a bit before restoring the content. Otherwise the restore is done before # the pasting happens, causing the backup to be pasted instead of the desired clipboard content. ...
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def text(self, new_content: str): Gdk.threads_enter() try: # This call might fail and raise an Exception. # If it does, make sure to release the mutex and not deadlock AutoKey. self._clipboard.set_text(new_content, -1) finally: Gdk.threads_leave()
def text(self, new_content: str): Gdk.threads_enter() self._clipboard.set_text(new_content, -1) Gdk.threads_leave()
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def selection(self, new_content: str): Gdk.threads_enter() try: # This call might fail and raise an Exception. # If it does, make sure to release the mutex and not deadlock AutoKey. self._selection.set_text(new_content, -1) finally: Gdk.threads_leave()
def selection(self, new_content: str): Gdk.threads_enter() self._selection.set_text(new_content, -1) Gdk.threads_leave()
https://github.com/autokey/autokey/issues/226
2018-12-05 07:02:31,958 DEBUG - service - Raw key: 'b', modifiers: [], Key: b 2018-12-05 07:02:31,958 DEBUG - service - Window visible title: '*Unbenannt 1 - Mousepad', Window class: 'mousepad.Mousepad' 2018-12-05 07:02:31,958 DEBUG - service - No phrase/script matched hotkey 2018-12-05 07:02:31,958 DEBUG - service - I...
RuntimeError
def __init__( self, *, output_filename: str, internal_only: bool, requirements: PexRequirements = PexRequirements(), interpreter_constraints=PexInterpreterConstraints(), platforms=PexPlatforms(), sources: Optional[Digest] = None, additional_inputs: Optional[Digest] = None, entry_...
def __init__( self, *, output_filename: str, internal_only: bool, requirements: PexRequirements = PexRequirements(), interpreter_constraints=PexInterpreterConstraints(), platforms=PexPlatforms(), sources: Optional[Digest] = None, additional_inputs: Optional[Digest] = None, entry_...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def create_pex( request: PexRequest, python_setup: PythonSetup, python_repos: PythonRepos, platform: Platform, pex_runtime_environment: PexRuntimeEnvironment, ) -> Pex: """Returns a PEX with the given settings.""" argv = [ "--output-file", request.output_filename, ...
async def create_pex( request: PexRequest, python_setup: PythonSetup, python_repos: PythonRepos, platform: Platform, pex_runtime_environment: PexRuntimeEnvironment, ) -> Pex: """Returns a PEX with the given settings.""" argv = [ "--output-file", request.output_filename, ...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def setup_pex_process( request: PexProcess, pex_environment: PexEnvironment ) -> Process: argv = pex_environment.create_argv( f"./{request.pex.name}", *request.argv, python=request.pex.python, ) env = {**pex_environment.environment_dict, **(request.extra_env or {})} pro...
async def setup_pex_process( request: PexProcess, pex_environment: PexEnvironment ) -> Process: argv = pex_environment.create_argv( f"./{request.pex.name}", *request.argv, # If the Pex isn't distributed to users, then we must use the shebang because we will have # used the flag `...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
def __init__( self, *, argv: Iterable[str], description: str, additional_input_digest: Optional[Digest] = None, extra_env: Optional[Mapping[str, str]] = None, output_files: Optional[Iterable[str]] = None, output_directories: Optional[Iterable[str]] = None, python: Optional[PythonExec...
def __init__( self, *, argv: Iterable[str], description: str, additional_input_digest: Optional[Digest] = None, extra_env: Optional[Mapping[str, str]] = None, output_files: Optional[Iterable[str]] = None, output_directories: Optional[Iterable[str]] = None, ) -> None: self.argv = tupl...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def setup_pex_cli_process( request: PexCliProcess, pex_binary: PexBinary, pex_env: PexEnvironment, python_native_code: PythonNativeCode, ) -> Process: tmpdir = ".tmp" downloaded_pex_bin, tmp_dir_digest = await MultiGet( Get( DownloadedExternalTool, ExternalT...
async def setup_pex_cli_process( request: PexCliProcess, pex_binary: PexBinary, pex_env: PexEnvironment, python_native_code: PythonNativeCode, ) -> Process: tmpdir = ".tmp" downloaded_pex_bin, tmp_dir_digest = await MultiGet( Get( DownloadedExternalTool, ExternalT...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
def create_argv( self, pex_path: str, *args: str, python: Optional[PythonExecutable] = None ) -> Iterable[str]: python = python or self.bootstrap_python argv = [python.path] if python else [] argv.extend((pex_path, *args)) return argv
def create_argv( self, pex_path: str, *args: str, always_use_shebang: bool = False ) -> Iterable[str]: argv = ( [self.bootstrap_python] if self.bootstrap_python and not always_use_shebang else [] ) argv.extend((pex_path, *args)) return argv
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def find_pex_python( python_setup: PythonSetup, pex_runtime_env: PexRuntimeEnvironment, subprocess_env_vars: SubprocessEnvironmentVars, ) -> PexEnvironment: # PEX files are compatible with bootstrapping via Python 2.7 or Python 3.5+. The bootstrap # code will then re-exec itself if the underly...
async def find_pex_python( python_setup: PythonSetup, pex_runtime_env: PexRuntimeEnvironment, subprocess_env_vars: SubprocessEnvironmentVars, ) -> PexEnvironment: # PEX files are compatible with bootstrapping via Python 2.7 or Python 3.5+. The bootstrap # code will then re-exec itself if the underly...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
def first_python_binary() -> Optional[PythonExecutable]: for binary_paths in all_python_binary_paths: if binary_paths.first_path: return PythonExecutable( path=binary_paths.first_path.path, fingerprint=binary_paths.first_path.fingerprint, ) return ...
def first_python_binary() -> Optional[str]: for binary_paths in all_python_binary_paths: if binary_paths.first_path: return binary_paths.first_path.path return None
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
def __init__( self, *, search_path: Iterable[str], binary_name: str, test: Optional[BinaryPathTest] = None, ) -> None: self.search_path = tuple(OrderedSet(search_path)) self.binary_name = binary_name self.test = test
def __init__( self, *, search_path: Iterable[str], binary_name: str, test_args: Optional[Iterable[str]] = None, ) -> None: self.search_path = tuple(OrderedSet(search_path)) self.binary_name = binary_name self.test_args = tuple(test_args or ())
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def make_process_uncacheable(uncacheable_process: UncacheableProcess) -> Process: uuid = await Get( UUID, UUIDRequest, UUIDRequest.scoped(cast(UUIDScope, uncacheable_process.scope.value)), ) process = uncacheable_process.process env = dict(process.env) # This is a sli...
async def make_process_uncacheable(uncacheable_process: UncacheableProcess) -> Process: uuid = await Get(UUID, UUIDRequest()) process = uncacheable_process.process env = dict(process.env) # This is a slightly hacky way to force the process to run: since the env var # value is unique, this input c...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
async def find_binary(request: BinaryPathRequest) -> BinaryPaths: # TODO(John Sirois): Replace this script with a statically linked native binary so we don't # depend on either /bin/bash being available on the Process host. # Note: the backslash after the """ marker ensures that the shebang is at the star...
async def find_binary(request: BinaryPathRequest) -> BinaryPaths: # TODO(John Sirois): Replace this script with a statically linked native binary so we don't # depend on either /bin/bash being available on the Process host. # Note: the backslash after the """ marker ensures that the shebang is at the star...
https://github.com/pantsbuild/pants/issues/10648
$ ./pants fmt src/python/pants:: Compiling engine v0.0.1 (XXX) Finished release [optimized + debuginfo] target(s) in 2m 49s 12:11:49 [INFO] initializing pantsd... 12:12:00 [INFO] pantsd initialized. 12:12:08.46 [INFO] Completed: Building black.pex with 2 requirements: black==19.10b0, setuptools 12:12:08 [WARN] /Users/t...
pants.engine.internals.scheduler.ExecutionError
def garbage_collect_store(self, target_size_bytes: int) -> None: self._native.lib.garbage_collect_store(self._scheduler, target_size_bytes)
def garbage_collect_store(self): self._native.lib.garbage_collect_store(self._scheduler)
https://github.com/pantsbuild/pants/issues/10719
18:08:49.83 [WARN] <unknown>:882: DeprecationWarning: invalid escape sequence \d 18:08:52.21 [WARN] Completed: Find PEX Python - No bootstrap Python executable could be found from the option `interpreter_search_paths` in the `[python-setup]` scope. Will attempt to run PEXes directly. 18:08:53.11 [WARN] /data/home/asher...
pants.engine.internals.scheduler.ExecutionError
def garbage_collect_store(self, target_size_bytes: int) -> None: self._scheduler.garbage_collect_store(target_size_bytes)
def garbage_collect_store(self): self._scheduler.garbage_collect_store()
https://github.com/pantsbuild/pants/issues/10719
18:08:49.83 [WARN] <unknown>:882: DeprecationWarning: invalid escape sequence \d 18:08:52.21 [WARN] Completed: Find PEX Python - No bootstrap Python executable could be found from the option `interpreter_search_paths` in the `[python-setup]` scope. Will attempt to run PEXes directly. 18:08:53.11 [WARN] /data/home/asher...
pants.engine.internals.scheduler.ExecutionError
def __init__( self, scheduler: Scheduler, period_secs=10, lease_extension_interval_secs=(15 * 60), gc_interval_secs=(1 * 60 * 60), target_size_bytes=(4 * 1024 * 1024 * 1024), ): super().__init__() self._scheduler_session = scheduler.new_session(build_id="store_gc_service_session") se...
def __init__( self, scheduler: Scheduler, period_secs=10, lease_extension_interval_secs=(30 * 60), gc_interval_secs=(4 * 60 * 60), ): super().__init__() self._scheduler_session = scheduler.new_session(build_id="store_gc_service_session") self._logger = logging.getLogger(__name__) se...
https://github.com/pantsbuild/pants/issues/10719
18:08:49.83 [WARN] <unknown>:882: DeprecationWarning: invalid escape sequence \d 18:08:52.21 [WARN] Completed: Find PEX Python - No bootstrap Python executable could be found from the option `interpreter_search_paths` in the `[python-setup]` scope. Will attempt to run PEXes directly. 18:08:53.11 [WARN] /data/home/asher...
pants.engine.internals.scheduler.ExecutionError
def _maybe_garbage_collect(self): if time.time() < self._next_gc: return self._logger.info("Garbage collecting store") self._scheduler_session.garbage_collect_store(self._target_size_bytes) self._logger.info("Done garbage collecting store") self._set_next_gc()
def _maybe_garbage_collect(self): if time.time() < self._next_gc: return self._logger.info("Garbage collecting store") self._scheduler_session.garbage_collect_store() self._logger.info("Done garbage collecting store") self._set_next_gc()
https://github.com/pantsbuild/pants/issues/10719
18:08:49.83 [WARN] <unknown>:882: DeprecationWarning: invalid escape sequence \d 18:08:52.21 [WARN] Completed: Find PEX Python - No bootstrap Python executable could be found from the option `interpreter_search_paths` in the `[python-setup]` scope. Will attempt to run PEXes directly. 18:08:53.11 [WARN] /data/home/asher...
pants.engine.internals.scheduler.ExecutionError
def __init__( self, scheduler: Scheduler, period_secs=10, lease_extension_interval_secs=(15 * 60), gc_interval_secs=(1 * 60 * 60), target_size_bytes=(4 * 1024 * 1024 * 1024), ): super().__init__() self._scheduler_session = scheduler.new_session( zipkin_trace_v2=False, build_id="s...
def __init__( self, scheduler: Scheduler, period_secs=10, lease_extension_interval_secs=(30 * 60), gc_interval_secs=(4 * 60 * 60), ): super().__init__() self._scheduler_session = scheduler.new_session( zipkin_trace_v2=False, build_id="store_gc_service_session" ) self._logger ...
https://github.com/pantsbuild/pants/issues/10719
18:08:49.83 [WARN] <unknown>:882: DeprecationWarning: invalid escape sequence \d 18:08:52.21 [WARN] Completed: Find PEX Python - No bootstrap Python executable could be found from the option `interpreter_search_paths` in the `[python-setup]` scope. Will attempt to run PEXes directly. 18:08:53.11 [WARN] /data/home/asher...
pants.engine.internals.scheduler.ExecutionError
def _get_frame_info(stacklevel: int) -> inspect.FrameInfo: """Get a Traceback for the given `stacklevel`. For example: `stacklevel=0` means this function's frame (_get_frame_info()). `stacklevel=1` means the calling function's frame. See https://docs.python.org/3/library/inspect.html#inspect.getout...
def _get_frame_info(stacklevel: int, context: int = 1) -> inspect.FrameInfo: """Get a Traceback for the given `stacklevel`. For example: `stacklevel=0` means this function's frame (_get_frame_info()). `stacklevel=1` means the calling function's frame. See https://docs.python.org/2/library/inspect.h...
https://github.com/pantsbuild/pants/issues/9057
Traceback (most recent call last): File "<example>/pantsbuild.pants-1.25.0.dev3+git951fbda1-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/mapper.py", line 55, in parse objects = parser.parse(filepath, filecontent) File "<example>/pantsbuild.pants-1.25.0.dev3+git951fbda1-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/l...
RecursionError
def warn_or_error( removal_version: str, deprecated_entity_description: str, hint: Optional[str] = None, deprecation_start_version: Optional[str] = None, stacklevel: int = 3, frame_info: Optional[inspect.FrameInfo] = None, ensure_stderr: bool = False, print_warning: bool = True, ) -> Non...
def warn_or_error( removal_version: str, deprecated_entity_description: str, hint: Optional[str] = None, deprecation_start_version: Optional[str] = None, stacklevel: int = 3, frame_info: Optional[inspect.FrameInfo] = None, context: int = 1, ensure_stderr: bool = False, print_warning:...
https://github.com/pantsbuild/pants/issues/9057
Traceback (most recent call last): File "<example>/pantsbuild.pants-1.25.0.dev3+git951fbda1-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/mapper.py", line 55, in parse objects = parser.parse(filepath, filecontent) File "<example>/pantsbuild.pants-1.25.0.dev3+git951fbda1-cp36-abi3-macosx_10_11_x86_64.whl/pants/engine/l...
RecursionError
def datatype(field_decls, superclass_name=None, **kwargs): """A wrapper for `namedtuple` that accounts for the type of the object in equality. Field declarations can be a string, which declares a field with that name and no type checking. Field declarations can also be a tuple `('field_name', field_typ...
def datatype(field_decls, superclass_name=None, **kwargs): """A wrapper for `namedtuple` that accounts for the type of the object in equality. Field declarations can be a string, which declares a field with that name and no type checking. Field declarations can also be a tuple `('field_name', field_typ...
https://github.com/pantsbuild/pants/issues/7247
==================== FAILURES ==================== CTypesIntegrationTest.test_ctypes_third_party_integration args = (<pants_test.backend.python.tasks.native.test_ctypes_integration.CTypesIntegrationTest testMethod=test_ctypes_third_party_integration>,) kwargs = {} variant = ToolchainVariant(value=u'gnu') @wraps...
AssertionError
def __iter__(self): raise self.make_type_error("datatype object is not iterable")
def __iter__(self): raise TypeError("'{}' object is not iterable".format(type(self).__name__))
https://github.com/pantsbuild/pants/issues/7247
==================== FAILURES ==================== CTypesIntegrationTest.test_ctypes_third_party_integration args = (<pants_test.backend.python.tasks.native.test_ctypes_integration.CTypesIntegrationTest testMethod=test_ctypes_third_party_integration>,) kwargs = {} variant = ToolchainVariant(value=u'gnu') @wraps...
AssertionError
def enum(*args): """A datatype which can take on a finite set of values. This method is experimental and unstable. Any enum subclass can be constructed with its create() classmethod. This method will use the first element of `all_values` as the default value, but enum classes can override this behavior by ...
def enum(*args): """A datatype which can take on a finite set of values. This method is experimental and unstable. Any enum subclass can be constructed with its create() classmethod. This method will use the first element of `all_values` as the default value, but enum classes can override this behavior by ...
https://github.com/pantsbuild/pants/issues/7247
==================== FAILURES ==================== CTypesIntegrationTest.test_ctypes_third_party_integration args = (<pants_test.backend.python.tasks.native.test_ctypes_integration.CTypesIntegrationTest testMethod=test_ctypes_third_party_integration>,) kwargs = {} variant = ToolchainVariant(value=u'gnu') @wraps...
AssertionError
def __hash__(self): return super(ChoiceDatatype, self).__hash__()
def __hash__(self): return super(DataType, self).__hash__()
https://github.com/pantsbuild/pants/issues/7247
==================== FAILURES ==================== CTypesIntegrationTest.test_ctypes_third_party_integration args = (<pants_test.backend.python.tasks.native.test_ctypes_integration.CTypesIntegrationTest testMethod=test_ctypes_third_party_integration>,) kwargs = {} variant = ToolchainVariant(value=u'gnu') @wraps...
AssertionError
def __eq__(self, other): """Redefine equality to raise to nudge people to use static pattern matching.""" raise self.make_type_error( "enum equality is defined to be an error -- use .resolve_for_enum_variant() instead!" )
def __eq__(self, other): if self is other: return True # Compare types and fields. if type(self) != type(other): return False # Explicitly return super.__eq__'s value in case super returns NotImplemented return super(DataType, self).__eq__(other)
https://github.com/pantsbuild/pants/issues/7247
==================== FAILURES ==================== CTypesIntegrationTest.test_ctypes_third_party_integration args = (<pants_test.backend.python.tasks.native.test_ctypes_integration.CTypesIntegrationTest testMethod=test_ctypes_third_party_integration>,) kwargs = {} variant = ToolchainVariant(value=u'gnu') @wraps...
AssertionError
def _setup_interpreter(self, interpreter, identity_str): cache_target_path = os.path.join(self._cache_dir, identity_str) with safe_concurrent_creation(cache_target_path) as safe_path: os.mkdir( safe_path ) # Parent will already have been created by safe_concurrent_creation. ...
def _setup_interpreter(self, interpreter, cache_target_path): with safe_concurrent_creation(cache_target_path) as safe_path: os.mkdir( safe_path ) # Parent will already have been created by safe_concurrent_creation. os.symlink(interpreter.binary, os.path.join(safe_path, "python"...
https://github.com/pantsbuild/pants/issues/3416
os.path.exists(os.readlink('python')) False subprocess.Popen(['./python', 'blah'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Traceback (most recent call last): File "<input>", line 1, in <module> File "/opt/twitter_mde/package/python2.7/current/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite...
OSError
def _setup_cached(self, filters=()): """Find all currently-cached interpreters.""" for interpreter_dir in os.listdir(self._cache_dir): pi = self._interpreter_from_relpath(interpreter_dir, filters=filters) if pi: logger.debug( "Detected interpreter {}: {}".format(pi.bi...
def _setup_cached(self, filters=()): """Find all currently-cached interpreters.""" for interpreter_dir in os.listdir(self._cache_dir): path = os.path.join(self._cache_dir, interpreter_dir) if os.path.isdir(path): pi = self._interpreter_from_path(path, filters=filters) if ...
https://github.com/pantsbuild/pants/issues/3416
os.path.exists(os.readlink('python')) False subprocess.Popen(['./python', 'blah'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Traceback (most recent call last): File "<input>", line 1, in <module> File "/opt/twitter_mde/package/python2.7/current/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite...
OSError
def _setup_paths(self, paths, filters=()): """Find interpreters under paths, and cache them.""" for interpreter in self._matching(PythonInterpreter.all(paths), filters=filters): identity_str = str(interpreter.identity) pi = self._interpreter_from_relpath(identity_str, filters=filters) if...
def _setup_paths(self, paths, filters=()): """Find interpreters under paths, and cache them.""" for interpreter in self._matching(PythonInterpreter.all(paths), filters=filters): identity_str = str(interpreter.identity) cache_path = os.path.join(self._cache_dir, identity_str) pi = self._i...
https://github.com/pantsbuild/pants/issues/3416
os.path.exists(os.readlink('python')) False subprocess.Popen(['./python', 'blah'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Traceback (most recent call last): File "<input>", line 1, in <module> File "/opt/twitter_mde/package/python2.7/current/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite...
OSError
def execute(self): # NB: Downstream product consumers may need the selected interpreter for use with # any type of importable Python target, including `PythonRequirementLibrary` targets # (for use with the `repl` goal, for instance). For interpreter selection, # we only care about targets with compatibi...
def execute(self): # NB: Downstream product consumers may need the selected interpreter for use with # any type of importable Python target, including `PythonRequirementLibrary` targets # (for use with the `repl` goal, for instance). For interpreter selection, # we only care about targets with compatibi...
https://github.com/pantsbuild/pants/issues/3416
os.path.exists(os.readlink('python')) False subprocess.Popen(['./python', 'blah'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Traceback (most recent call last): File "<input>", line 1, in <module> File "/opt/twitter_mde/package/python2.7/current/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite...
OSError
def get_buildroot(): """Returns the pants build root, calculating it if needed. :API: public """ return BuildRoot().path
def get_buildroot(): """Returns the pants build root, calculating it if needed. :API: public """ try: return BuildRoot().path except BuildRoot.NotFoundError as e: print(str(e), file=sys.stderr) sys.exit(1)
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def reset_log_location(cls, new_log_location): """Re-acquire file handles to error logs based in the new location. Class state: - Overwrites `cls._log_dir`, `cls._pid_specific_error_fileobj`, and `cls._shared_error_fileobj`. OS state: - May create a new directory. - Overwrites signal hand...
def reset_log_location(cls, new_log_location): """Re-acquire file handles to error logs based in the new location. Class state: - Overwrites `cls._log_dir`, `cls._pid_specific_error_fileobj`, and `cls._shared_error_fileobj`. OS state: - May create a new directory. - Overwrites signal hand...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError