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 make_file_dict(filename): """Generate the data dictionary for the given RPath This is a global function so that os.name can be called locally, thus avoiding network lag and so that we only need to send the filename over the network, thus avoiding the need to pickle an (incomplete) rpath object....
def make_file_dict(filename): """Generate the data dictionary for the given RPath This is a global function so that os.name can be called locally, thus avoiding network lag and so that we only need to send the filename over the network, thus avoiding the need to pickle an (incomplete) rpath object....
https://github.com/rdiff-backup/rdiff-backup/issues/392
2020-06-05 11:41:40.304281 +0530 <CLIENT-8640> Exception '(32, 'GetFileAttributes', 'The process cannot access the file because it is being used by another process.')' raised of class '<class 'pywintypes.error'>': File "rdiff_backup\robust.py", line 35, in check_common_error File "rdiff_backup\rpath.py", line 1412, i...
pywintypes.error
def open_logfile_local(self, rpath): """Open logfile locally - should only be run on one connection""" assert rpath.conn is Globals.local_connection try: self.logfp = rpath.open("ab") except (OSError, IOError) as e: raise LoggerError("Unable to open logfile %s: %s" % (rpath.path, e)) ...
def open_logfile_local(self, rpath): """Open logfile locally - should only be run on one connection""" assert rpath.conn is Globals.local_connection try: self.logfp = rpath.open("a") except (OSError, IOError) as e: raise LoggerError("Unable to open logfile %s: %s" % (rpath.path, e)) ...
https://github.com/rdiff-backup/rdiff-backup/issues/356
2020-05-11 21:04:14.547611 +0000 <CLIENT-286> Using rdiff-backup version 2.0.1rc0 2020-05-11 21:04:14.547685 +0000 <CLIENT-286> with cpython /usr/bin/python3 version 3.6.8 2020-05-11 21:04:14.550694 +0000 <CLIENT-286> on Linux-4.19.37-x86_64-with-centos-7.8.2003-Core, fs encoding ascii 2020-05-11 21:04:14.55233...
UnicodeEncodeError
def log_to_file(self, message): """Write the message to the log file, if possible""" if self.log_file_open: if self.log_file_local: tmpstr = self.format(message, self.verbosity) if type(tmpstr) == str: # transform string in bytes tmpstr = tmpstr.encode("utf-8", "...
def log_to_file(self, message): """Write the message to the log file, if possible""" if self.log_file_open: if self.log_file_local: tmpstr = self.format(message, self.verbosity) if type(tmpstr) != str: # transform bytes into string tmpstr = str(tmpstr, "utf-8") ...
https://github.com/rdiff-backup/rdiff-backup/issues/356
2020-05-11 21:04:14.547611 +0000 <CLIENT-286> Using rdiff-backup version 2.0.1rc0 2020-05-11 21:04:14.547685 +0000 <CLIENT-286> with cpython /usr/bin/python3 version 3.6.8 2020-05-11 21:04:14.550694 +0000 <CLIENT-286> on Linux-4.19.37-x86_64-with-centos-7.8.2003-Core, fs encoding ascii 2020-05-11 21:04:14.55233...
UnicodeEncodeError
def log_to_term(self, message, verbosity): """Write message to stdout/stderr""" if verbosity <= 2 or Globals.server: termfp = sys.stderr.buffer else: termfp = sys.stdout.buffer tmpstr = self.format(message, self.term_verbosity) if type(tmpstr) == str: # transform string in bytes ...
def log_to_term(self, message, verbosity): """Write message to stdout/stderr""" if verbosity <= 2 or Globals.server: termfp = sys.stderr else: termfp = sys.stdout tmpstr = self.format(message, self.term_verbosity) if type(tmpstr) != str: # transform bytes in string tmpstr = ...
https://github.com/rdiff-backup/rdiff-backup/issues/356
2020-05-11 21:04:14.547611 +0000 <CLIENT-286> Using rdiff-backup version 2.0.1rc0 2020-05-11 21:04:14.547685 +0000 <CLIENT-286> with cpython /usr/bin/python3 version 3.6.8 2020-05-11 21:04:14.550694 +0000 <CLIENT-286> on Linux-4.19.37-x86_64-with-centos-7.8.2003-Core, fs encoding ascii 2020-05-11 21:04:14.55233...
UnicodeEncodeError
def parse_cmdlineoptions(arglist): # noqa: C901 """Parse argument list and set global preferences""" global args, action, create_full_path, force, restore_timestr, remote_cmd global remote_schema, remove_older_than_string global user_mapping_filename, group_mapping_filename, preserve_numerical_ids ...
def parse_cmdlineoptions(arglist): # noqa: C901 """Parse argument list and set global preferences""" global args, action, create_full_path, force, restore_timestr, remote_cmd global remote_schema, remove_older_than_string global user_mapping_filename, group_mapping_filename, preserve_numerical_ids ...
https://github.com/rdiff-backup/rdiff-backup/issues/367
Warning: Access Control List file not found Warning: Extended Attributes file not found Exception 'Can't mix strings and bytes in path components' raised of class '<class 'TypeError'>': File "/usr/lib64/python3.8/site-packages/rdiff_backup/robust.py", line 35, in check_common_error return function(*args) File "/usr/lib...
TypeError
def catch_error(exc): """Return true if exception exc should be caught""" for exception_class in ( rpath.SkipFileException, rpath.RPathException, librsync.librsyncError, C.UnknownFileTypeError, zlib.error, ): if isinstance(exc, exception_class): re...
def catch_error(exc): """Return true if exception exc should be caught""" for exception_class in ( rpath.SkipFileException, rpath.RPathException, librsync.librsyncError, C.UnknownFileTypeError, zlib.error, ): if isinstance(exc, exception_class): re...
https://github.com/rdiff-backup/rdiff-backup/issues/366
$ python3 Python 3.7.7 (default, Mar 10 2020, 15:43:27) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. import errno errno.EDEADLOCK Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'errno' has no attribute...
AttributeError
def isincfile(self): """Return true if path indicates increment, sets various variables""" if not self.index: # consider the last component as quoted dirname, basename = self.dirsplit() temp_rp = rpath.RPath(self.conn, dirname, (unquote(basename),)) result = temp_rp.isincfile() ...
def isincfile(self): """Return true if path indicates increment, sets various variables""" if not self.index: # consider the last component as quoted dirname, basename = self.dirsplit() temp_rp = rpath.RPath(self.conn, dirname, (unquote(basename),)) result = temp_rp.isincfile() ...
https://github.com/rdiff-backup/rdiff-backup/issues/266
$ wget https://git.patrikdufresne.com/pdsl/rdiffweb/raw/master/rdiffweb/tests/testcases.tar.gz $ tar -zxvf testcases.tar.gz $ rdiff-backup --version rdiff-backup 1.9.0b0 $ rdiff-backup --restore-as-of=1414921853 '/testcases/Fichier @ <root>' Fatal Error: Wrong number of arguments given. See the rdiff-backup manual page...
TypeError
def Restore(mirror_rp, inc_rpath, target, restore_to_time): """Recursively restore mirror and inc_rpath to target at restore_to_time in epoch format""" # Store references to classes over the connection MirrorS = mirror_rp.conn.restore.MirrorStruct TargetS = target.conn.restore.TargetStruct Mir...
def Restore(mirror_rp, inc_rpath, target, restore_to_time): """Recursively restore mirror and inc_rpath to target at rest_time""" MirrorS = mirror_rp.conn.restore.MirrorStruct TargetS = target.conn.restore.TargetStruct MirrorS.set_mirror_and_rest_times(restore_to_time) MirrorS.initialize_rf_cache(m...
https://github.com/rdiff-backup/rdiff-backup/issues/266
$ wget https://git.patrikdufresne.com/pdsl/rdiffweb/raw/master/rdiffweb/tests/testcases.tar.gz $ tar -zxvf testcases.tar.gz $ rdiff-backup --version rdiff-backup 1.9.0b0 $ rdiff-backup --restore-as-of=1414921853 '/testcases/Fichier @ <root>' Fatal Error: Wrong number of arguments given. See the rdiff-backup manual page...
TypeError
def rorp_eq(src_rorp, dest_rorp): """Compare hardlinked for equality Return false if dest_rorp is linked differently, which can happen if dest is linked more than source, or if it is represented by a different inode. """ if ( not src_rorp.isreg() or not dest_rorp.isreg() ...
def rorp_eq(src_rorp, dest_rorp): """Compare hardlinked for equality Return false if dest_rorp is linked differently, which can happen if dest is linked more than source, or if it is represented by a different inode. """ if ( not src_rorp.isreg() or not dest_rorp.isreg() ...
https://github.com/rdiff-backup/rdiff-backup/issues/78
====================================================================== FAIL: test_session (__main__.HashTest) Run actual sessions and make sure proper hashes recorded ---------------------------------------------------------------------- Traceback (most recent call last): File "./testing/hashtest.py", line 95, in test_...
AssertionError
def Verify(mirror_rp, inc_rp, verify_time): """Compute SHA1 sums of repository files and check against metadata""" assert mirror_rp.conn is Globals.local_connection repo_iter = RepoSide.init_and_get_iter(mirror_rp, inc_rp, verify_time) base_index = RepoSide.mirror_base.index bad_files = 0 for r...
def Verify(mirror_rp, inc_rp, verify_time): """Compute SHA1 sums of repository files and check against metadata""" assert mirror_rp.conn is Globals.local_connection repo_iter = RepoSide.init_and_get_iter(mirror_rp, inc_rp, verify_time) base_index = RepoSide.mirror_base.index bad_files = 0 for r...
https://github.com/rdiff-backup/rdiff-backup/issues/78
====================================================================== FAIL: test_session (__main__.HashTest) Run actual sessions and make sure proper hashes recorded ---------------------------------------------------------------------- Traceback (most recent call last): File "./testing/hashtest.py", line 95, in test_...
AssertionError
def compare_hash(cls, repo_iter): """Like above, but also compare sha1 sums of any regular files""" def hashes_changed(src_rp, mir_rorp): """Return 0 if their data hashes same, 1 otherwise""" verify_sha1 = get_hash(mir_rorp) if not verify_sha1: log.Log( "Warn...
def compare_hash(cls, repo_iter): """Like above, but also compare sha1 sums of any regular files""" def hashes_changed(src_rp, mir_rorp): """Return 0 if their data hashes same, 1 otherwise""" if not mir_rorp.has_sha1(): log.Log( "Warning: Metadata file has no digest ...
https://github.com/rdiff-backup/rdiff-backup/issues/78
====================================================================== FAIL: test_session (__main__.HashTest) Run actual sessions and make sure proper hashes recorded ---------------------------------------------------------------------- Traceback (most recent call last): File "./testing/hashtest.py", line 95, in test_...
AssertionError
def hashes_changed(src_rp, mir_rorp): """Return 0 if their data hashes same, 1 otherwise""" verify_sha1 = get_hash(mir_rorp) if not verify_sha1: log.Log( "Warning: Metadata file has no digest for %s, " "unable to compare." % (mir_rorp.get_safeindexpath(),), 2, ...
def hashes_changed(src_rp, mir_rorp): """Return 0 if their data hashes same, 1 otherwise""" if not mir_rorp.has_sha1(): log.Log( "Warning: Metadata file has no digest for %s, " "unable to compare." % (mir_rorp.get_safeindexpath(),), 2, ) return 0 e...
https://github.com/rdiff-backup/rdiff-backup/issues/78
====================================================================== FAIL: test_session (__main__.HashTest) Run actual sessions and make sure proper hashes recorded ---------------------------------------------------------------------- Traceback (most recent call last): File "./testing/hashtest.py", line 95, in test_...
AssertionError
def __init__(self, connection, base, index=(), data=None): """Make new QuotedRPath""" # we avoid handing over "None" as data so that the parent # class doesn't try to gather data of an unquoted filename # Caution: this works only because RPath checks on "None" # and its parent RORPath on Tr...
def __init__(self, connection, base, index=(), data=None): """Make new QuotedRPath""" super().__init__(connection, base, index, data) self.quoted_index = tuple(map(quote, self.index)) # we need to recalculate path and data on the basis of # quoted_index (parent class does it on the basis of index) ...
https://github.com/rdiff-backup/rdiff-backup/issues/216
C:\Users\vmtest\Desktop>C:\Users\vmtest\Downloads\rdiff-backup-1.4.0b0-win64.exe test_base test_destination Exception '[WinError 123] La syntaxe du nom de fichier, de répertoire ou de volu me est incorrecte: b'test_destination/rdiff-backup-data/current_mirror.2019-12-1 5T08:36:05-05:00.data'' raised of class '<class 'O...
OSError
def start_process(self, index, diff_rorp): """Start processing directory""" self.base_rp, inc_prefix = longname.get_mirror_inc_rps( self.CCPP.get_rorps(index), self.basis_root_rp, self.inc_root_rp ) self.base_rp.setdata() assert diff_rorp.isdir() or self.base_rp.isdir(), ( "Either %s...
def start_process(self, index, diff_rorp): """Start processing directory""" self.base_rp, inc_prefix = longname.get_mirror_inc_rps( self.CCPP.get_rorps(index), self.basis_root_rp, self.inc_root_rp ) self.base_rp.setdata() assert diff_rorp.isdir() or self.base_rp.isdir(), ( "Either %s...
https://github.com/rdiff-backup/rdiff-backup/issues/14
Exception 'RORPath instance has no attribute 'path'' raised of class '<type 'exceptions.AttributeError'>': File "rdiff_backup\Main.pyc", line 304, in error_check_Main File "rdiff_backup\Main.pyc", line 324, in Main File "rdiff_backup\Main.pyc", line 280, in take_action File "rdiff_backup\Main.pyc", line 343, in Backup ...
AttributeError
def check_target_type(y, indicate_one_vs_all=False): """Check the target types to be conform to the current samplers. The current samplers should be compatible with ``'binary'``, ``'multilabel-indicator'`` and ``'multiclass'`` targets only. Parameters ---------- y : ndarray, The array ...
def check_target_type(y, indicate_one_vs_all=False): """Check the target types to be conform to the current samplers. The current samplers should be compatible with ``'binary'``, ``'multilabel-indicator'`` and ``'multiclass'`` targets only. Parameters ---------- y : ndarray, The array ...
https://github.com/scikit-learn-contrib/imbalanced-learn/issues/671
TypeError Traceback (most recent call last) <ipython-input-51-da2a32d7cb52> in <module>() ----> pipe.fit(X_train, y_train) 10 frames /usr/local/lib/python3.6/dist-packages/sklearn/model_selection/_search.py in fit(self, X, y, groups, **fit_params) 737 refit_start_time = time...
TypeError
def _yield_sampler_checks(name, Estimator): yield check_target_type yield check_samplers_one_label yield check_samplers_fit yield check_samplers_fit_resample yield check_samplers_sampling_strategy_fit_resample yield check_samplers_sparse yield check_samplers_pandas yield check_samplers_m...
def _yield_sampler_checks(name, Estimator): yield check_target_type yield check_samplers_one_label yield check_samplers_fit yield check_samplers_fit_resample yield check_samplers_sampling_strategy_fit_resample yield check_samplers_sparse yield check_samplers_pandas yield check_samplers_m...
https://github.com/scikit-learn-contrib/imbalanced-learn/issues/671
TypeError Traceback (most recent call last) <ipython-input-51-da2a32d7cb52> in <module>() ----> pipe.fit(X_train, y_train) 10 frames /usr/local/lib/python3.6/dist-packages/sklearn/model_selection/_search.py in fit(self, X, y, groups, **fit_params) 737 refit_start_time = time...
TypeError
def save_readability( link: Link, out_dir: Optional[str] = None, timeout: int = TIMEOUT ) -> ArchiveResult: """download reader friendly version using @mozilla/readability""" out_dir = Path(out_dir or link.link_dir) output_folder = out_dir.absolute() / "readability" output = str(output_folder) ...
def save_readability( link: Link, out_dir: Optional[str] = None, timeout: int = TIMEOUT ) -> ArchiveResult: """download reader friendly version using @mozilla/readability""" out_dir = Path(out_dir or link.link_dir) output_folder = out_dir.absolute() / "readability" output = str(output_folder) ...
https://github.com/ArchiveBox/ArchiveBox/issues/458
[√] [2020-08-26 21:10:43] "Big Brother is Watching - '17 WRX Limited and all '17 STI - Page 3 - NASIOC" https://forums.nasioc.com/forums/showthread.php?t=2803387&amp;amp;highlight=big+brother&amp;amp;page=3 √ ./archive/1576899114 > readability ! Failed to archive link: Exception: Exception in archive_methods.save_reada...
UnboundLocalError
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def fix_invalid_folder_locations( out_dir: str = OUTPUT_DIR, ) -> Tuple[List[str], List[str]]: fixed = [] cant_fix = [] for entry in os.scandir(os.path.join(out_dir, ARCHIVE_DIR_NAME)): if entry.is_dir(follow_symlinks=True): if os.path.exists(os.path.join(entry.path, "index.json")): ...
def fix_invalid_folder_locations( out_dir: str = OUTPUT_DIR, ) -> Tuple[List[str], List[str]]: fixed = [] cant_fix = [] for entry in os.scandir(os.path.join(out_dir, ARCHIVE_DIR_NAME)): if entry.is_dir(follow_symlinks=True): if os.path.exists(os.path.join(entry.path, "index.json")): ...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def parse_json_links_details(out_dir: str) -> Iterator[Link]: """read through all the archive data folders and return the parsed links""" for entry in os.scandir(os.path.join(out_dir, ARCHIVE_DIR_NAME)): if entry.is_dir(follow_symlinks=True): if os.path.exists(os.path.join(entry.path, "inde...
def parse_json_links_details(out_dir: str) -> Iterator[Link]: """read through all the archive data folders and return the parsed links""" for entry in os.scandir(os.path.join(out_dir, ARCHIVE_DIR_NAME)): if entry.is_dir(follow_symlinks=True): if os.path.exists(os.path.join(entry.path, "inde...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def get_unrecognized_folders( links, out_dir: str = OUTPUT_DIR ) -> Dict[str, Optional[Link]]: """dirs that don't contain recognizable archive data and aren't listed in the main index""" by_timestamp = {link.timestamp: 0 for link in links} unrecognized_folders: Dict[str, Optional[Link]] = {} for en...
def get_unrecognized_folders( links, out_dir: str = OUTPUT_DIR ) -> Dict[str, Optional[Link]]: """dirs that don't contain recognizable archive data and aren't listed in the main index""" by_timestamp = {link.timestamp: 0 for link in links} unrecognized_folders: Dict[str, Optional[Link]] = {} for en...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def is_valid(link: Link) -> bool: dir_exists = os.path.exists(link.link_dir) index_exists = os.path.exists(os.path.join(link.link_dir, "index.json")) if not dir_exists: # unarchived links are not included in the valid list return False if dir_exists and not index_exists: return F...
def is_valid(link: Link) -> bool: dir_exists = os.path.exists(link.link_dir) index_exists = os.path.exists(os.path.join(link.link_dir, "index.json")) if not dir_exists: # unarchived links are not included in the valid list return False if dir_exists and not index_exists: return F...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
def parse_json_main_index(out_dir: str = OUTPUT_DIR) -> Iterator[Link]: """parse an archive index json file and return the list of links""" index_path = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(index_path): with open(index_path, "r", encoding="utf-8") as f: links = p...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def parse_json_link_details( out_dir: str, guess: Optional[bool] = False ) -> Optional[Link]: """load the json link index from a given directory""" existing_index = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(existing_index): with open(existing_index, "r", encoding="utf-8") as f...
def parse_json_link_details(out_dir: str) -> Optional[Link]: """load the json link index from a given directory""" existing_index = os.path.join(out_dir, JSON_INDEX_FILENAME) if os.path.exists(existing_index): with open(existing_index, "r", encoding="utf-8") as f: try: li...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def from_json(cls, json_info, guess=False): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} if guess: keys = info.keys() if "start_ts" not in keys: info["start_ts"], info["end_ts"] = cls.guess_ts(json_info) el...
def from_json(cls, json_info): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} info["start_ts"] = parse_date(info["start_ts"]) info["end_ts"] = parse_date(info["end_ts"]) info["cmd_version"] = info.get("cmd_version") return cls(**inf...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def from_json(cls, json_info, guess=False): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} info["updated"] = parse_date(info.get("updated")) info["sources"] = info.get("sources") or [] json_history = info.get("history") or {} cast_...
def from_json(cls, json_info): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} info["updated"] = parse_date(info.get("updated")) info["sources"] = info.get("sources") or [] json_history = info.get("history") or {} cast_history = {} ...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def from_json(cls, json_info, guess=False): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} if guess: keys = info.keys() if "start_ts" not in keys: info["start_ts"], info["end_ts"] = cls.guess_ts(json_info) el...
def from_json(cls, json_info, guess=False): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} if guess: keys = info.keys() if "start_ts" not in keys: info["start_ts"], info["end_ts"] = cls.guess_ts(json_info) el...
https://github.com/ArchiveBox/ArchiveBox/issues/374
Traceback (most recent call last): File "/home/USERNAME/.local/bin/archivebox", line 8, in <module> sys.exit(main()) File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init__.py", line 126, in main pwd=pwd or OUTPUT_DIR, File "/home/USERNAME/.local/lib/python3.7/site-packages/archivebox/cli/__init...
KeyError
def log_link_archiving_started(link: "Link", link_dir: str, is_new: bool): # [*] [2019-03-22 13:46:45] "Log Structured Merge Trees - ben stopford" # http://www.benstopford.com/2015/02/14/log-structured-merge-trees/ # > output/archive/1478739709 print( '\n[{symbol_color}{symbol}{reset}] ...
def log_link_archiving_started(link: Link, link_dir: str, is_new: bool): # [*] [2019-03-22 13:46:45] "Log Structured Merge Trees - ben stopford" # http://www.benstopford.com/2015/02/14/log-structured-merge-trees/ # > output/archive/1478739709 print( '\n[{symbol_color}{symbol}{reset}] [{...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def log_link_archiving_finished(link: "Link", link_dir: str, is_new: bool, stats: dict): total = sum(stats.values()) if stats["failed"] > 0: _LAST_RUN_STATS.failed += 1 elif stats["skipped"] == total: _LAST_RUN_STATS.skipped += 1 else: _LAST_RUN_STATS.succeeded += 1
def log_link_archiving_finished(link: Link, link_dir: str, is_new: bool, stats: dict): total = sum(stats.values()) if stats["failed"] > 0: _LAST_RUN_STATS.failed += 1 elif stats["skipped"] == total: _LAST_RUN_STATS.skipped += 1 else: _LAST_RUN_STATS.succeeded += 1
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def log_archive_method_finished(result: "ArchiveResult"): """quote the argument with whitespace in a command so the user can copy-paste the outputted string directly to run the cmd """ # Prettify CMD string and make it safe to copy-paste by quoting arguments quoted_cmd = " ".join( '"{}"'.for...
def log_archive_method_finished(result: ArchiveResult): """quote the argument with whitespace in a command so the user can copy-paste the outputted string directly to run the cmd """ # Prettify CMD string and make it safe to copy-paste by quoting arguments quoted_cmd = " ".join( '"{}"'.forma...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def log_list_finished(links): from .index.csv import links_to_csv print() print( "---------------------------------------------------------------------------------------------------" ) print( links_to_csv( links, cols=["timestamp", "is_archived", "num_outputs...
def log_list_finished(links): print() print( "---------------------------------------------------------------------------------------------------" ) print( links_to_csv( links, cols=["timestamp", "is_archived", "num_outputs", "url"], header=True, ...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def log_removal_started(links: List["Link"], yes: bool, delete: bool): print( "{lightyellow}[i] Found {} matching URLs to remove.{reset}".format( len(links), **ANSI ) ) if delete: file_counts = [ link.num_outputs for link in links if os.path.exists(link.link_d...
def log_removal_started(links: List[Link], yes: bool, delete: bool): print( "{lightyellow}[i] Found {} matching URLs to remove.{reset}".format( len(links), **ANSI ) ) if delete: file_counts = [ link.num_outputs for link in links if os.path.exists(link.link_dir...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def log_shell_welcome_msg(): from .cli import list_subcommands print("{green}# ArchiveBox Imports{reset}".format(**ANSI)) print( "{green}from archivebox.core.models import Snapshot, User{reset}".format(**ANSI) ) print( "{green}from archivebox import *\n {}{reset}".format( ...
def log_shell_welcome_msg(): from . import list_subcommands print("{green}# ArchiveBox Imports{reset}".format(**ANSI)) print( "{green}from archivebox.core.models import Snapshot, User{reset}".format(**ANSI) ) print( "{green}from archivebox import *\n {}{reset}".format( ...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def printable_folders( folders: Dict[str, Optional["Link"]], json: bool = False, csv: Optional[str] = None ) -> str: if json: from .index.json import to_json return to_json(folders.values(), indent=4, sort_keys=True) elif csv: from .index.csv import links_to_csv return lin...
def printable_folders( folders: Dict[str, Optional[Link]], json: bool = False, csv: Optional[str] = None ) -> str: if json: return to_json(folders.values(), indent=4, sort_keys=True) elif csv: return links_to_csv(folders.values(), cols=csv.split(","), header=True) return "\n".join(f"{f...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def main( args: Optional[List[str]] = NotProvided, stdin: Optional[IO] = NotProvided, pwd: Optional[str] = None, ) -> None: args = sys.argv[1:] if args is NotProvided else args stdin = sys.stdin if stdin is NotProvided else stdin subcommands = list_subcommands() parser = argparse.ArgumentPa...
def main( args: Optional[List[str]] = NotProvided, stdin: Optional[IO] = NotProvided, pwd: Optional[str] = None, ) -> None: args = sys.argv[1:] if args is NotProvided else args stdin = sys.stdin if stdin is NotProvided else stdin subcommands = list_subcommands() parser = argparse.ArgumentPa...
https://github.com/ArchiveBox/ArchiveBox/issues/372
Traceback (most recent call last): File "/home/kangus/src/ArchiveBox/bin/archivebox", line 7, in <module> from .cli import main File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 65, in <module> SUBCOMMANDS = list_subcommands() File "/home/kangus/src/ArchiveBox/archivebox/cli/__init__.py", line 41, in ...
ImportError
def from_json(cls, json_info): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} info["updated"] = parse_date(info.get("updated")) info["sources"] = info.get("sources") or [] json_history = info.get("history") or {} cast_history = {} ...
def from_json(cls, json_info): from ..util import parse_date info = {key: val for key, val in json_info.items() if key in cls.field_names()} try: info["updated"] = int( parse_date(info.get("updated")) ) # Cast to int which comes with rounding down except (ValueError, TypeEr...
https://github.com/ArchiveBox/ArchiveBox/issues/336
/home/kangus/src/archivebox0.4/ArchiveBox/bin/archivebox init [*] Updating existing ArchiveBox collection in this folder... /data/Zalohy/archivebox ------------------------------------------------------------------ [*] Verifying archive folder structure... √ /data/Zalohy/archivebox/sources √ /data/Zalohy/archivebox/a...
ValueError
def parse_date(date: Any) -> Optional[datetime]: """Parse unix timestamps, iso format, and human-readable strings""" if date is None: return None if isinstance(date, datetime): return date if isinstance(date, (float, int)): date = str(date) if isinstance(date, str): ...
def parse_date(date: Any) -> Optional[datetime]: """Parse unix timestamps, iso format, and human-readable strings""" if date is None: return None if isinstance(date, datetime): return date if isinstance(date, (float, int)): date = str(date) if isinstance(date, str): ...
https://github.com/ArchiveBox/ArchiveBox/issues/336
/home/kangus/src/archivebox0.4/ArchiveBox/bin/archivebox init [*] Updating existing ArchiveBox collection in this folder... /data/Zalohy/archivebox ------------------------------------------------------------------ [*] Verifying archive folder structure... √ /data/Zalohy/archivebox/sources √ /data/Zalohy/archivebox/a...
ValueError
def clip( ctx, files, output, bounds, like, driver, projection, overwrite, creation_options, with_complement, ): """Clips a raster using projected or geographic bounds. \b $ rio clip input.tif output.tif --bounds xmin ymin xmax ymax $ rio clip input.tif outpu...
def clip( ctx, files, output, bounds, like, driver, projection, overwrite, creation_options, with_complement, ): """Clips a raster using projected or geographic bounds. \b $ rio clip input.tif output.tif --bounds xmin ymin xmax ymax $ rio clip input.tif outpu...
https://github.com/mapbox/rasterio/issues/2112
$ rio clip rotated.tif output.tif --like bounds.tif Traceback (most recent call last): File "/home/denis/test/env/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/denis/test/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/denis/test/env...
rasterio.errors.WindowError
def geometry_window( dataset, shapes, pad_x=0, pad_y=0, north_up=None, rotated=None, pixel_precision=None, boundless=False, ): """Calculate the window within the raster that fits the bounds of the geometry plus optional padding. The window is the outermost pixel indices that...
def geometry_window( dataset, shapes, pad_x=0, pad_y=0, north_up=True, rotated=False, pixel_precision=3 ): """Calculate the window within the raster that fits the bounds of the geometry plus optional padding. The window is the outermost pixel indices that contain the geometry (floor of offsets, ceiling...
https://github.com/mapbox/rasterio/issues/2112
$ rio clip rotated.tif output.tif --like bounds.tif Traceback (most recent call last): File "/home/denis/test/env/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/denis/test/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/denis/test/env...
rasterio.errors.WindowError
def raster_geometry_mask( dataset, shapes, all_touched=False, invert=False, crop=False, pad=False, pad_width=0.5, ): """Create a mask from shapes, transform, and optional window within original raster. By default, mask is intended for use as a numpy mask, where pixels that o...
def raster_geometry_mask( dataset, shapes, all_touched=False, invert=False, crop=False, pad=False, pad_width=0.5, ): """Create a mask from shapes, transform, and optional window within original raster. By default, mask is intended for use as a numpy mask, where pixels that o...
https://github.com/mapbox/rasterio/issues/2112
$ rio clip rotated.tif output.tif --like bounds.tif Traceback (most recent call last): File "/home/denis/test/env/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/denis/test/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/denis/test/env...
rasterio.errors.WindowError
def rowcol(transform, xs, ys, op=math.floor, precision=None): """ Returns the rows and cols of the pixels containing (x, y) given a coordinate reference system. Use an epsilon, magnitude determined by the precision parameter and sign determined by the op function: positive for floor, negati...
def rowcol(transform, xs, ys, op=math.floor, precision=None): """ Returns the rows and cols of the pixels containing (x, y) given a coordinate reference system. Use an epsilon, magnitude determined by the precision parameter and sign determined by the op function: positive for floor, negati...
https://github.com/mapbox/rasterio/issues/2112
$ rio clip rotated.tif output.tif --like bounds.tif Traceback (most recent call last): File "/home/denis/test/env/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/denis/test/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/denis/test/env...
rasterio.errors.WindowError
def from_bounds( left, bottom, right, top, transform=None, height=None, width=None, precision=None ): """Get the window corresponding to the bounding coordinates. Parameters ---------- left: float, required Left (west) bounding coordinates bottom: float, required Bottom (south) ...
def from_bounds( left, bottom, right, top, transform=None, height=None, width=None, precision=None ): """Get the window corresponding to the bounding coordinates. Parameters ---------- left: float, required Left (west) bounding coordinates bottom: float, required Bottom (south) ...
https://github.com/mapbox/rasterio/issues/2112
$ rio clip rotated.tif output.tif --like bounds.tif Traceback (most recent call last): File "/home/denis/test/env/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/denis/test/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/denis/test/env...
rasterio.errors.WindowError
def main_group( ctx, verbose, quiet, aws_profile, aws_no_sign_requests, aws_requester_pays, gdal_version, ): """Rasterio command line interface.""" verbosity = verbose - quiet configure_logging(verbosity) ctx.obj = {} ctx.obj["verbosity"] = verbosity ctx.obj["aws_prof...
def main_group( ctx, verbose, quiet, aws_profile, aws_no_sign_requests, aws_requester_pays, gdal_version, ): """Rasterio command line interface.""" verbosity = verbose - quiet configure_logging(verbosity) ctx.obj = {} ctx.obj["verbosity"] = verbosity ctx.obj["aws_prof...
https://github.com/mapbox/rasterio/issues/2061
Traceback (most recent call last): File "rasterio/_base.pyx", line 216, in rasterio._base.DatasetBase.__init__ File "rasterio/_shim.pyx", line 78, in rasterio._shim.open_dataset File "rasterio/_err.pyx", line 213, in rasterio._err.exc_wrap_pointer rasterio._err.CPLE_AWSAccessDeniedError: Access Denied
rasterio._err.CPLE_AWSAccessDeniedError
def convert( ctx, files, output, driver, dtype, scale_ratio, scale_offset, photometric, overwrite, creation_options, ): """Copy and convert raster datasets to other data types and formats. Data values may be linearly scaled when copying by using the --scale-ratio and...
def convert( ctx, files, output, driver, dtype, scale_ratio, scale_offset, photometric, overwrite, creation_options, ): """Copy and convert raster datasets to other data types and formats. Data values may be linearly scaled when copying by using the --scale-ratio and...
https://github.com/mapbox/rasterio/issues/1985
$ rio convert --overwrite 20200829.tif Traceback (most recent call last): File "/usr/local/bin/rio", line 8, in <module> sys.exit(main_group()) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/core.py"...
IndexError
def resolve_inout( input=None, output=None, files=None, overwrite=False, num_inputs=None ): """Resolves inputs and outputs from standard args and options. Parameters ---------- input : str A single input filename, optional. output : str A single output filename, optional. fi...
def resolve_inout(input=None, output=None, files=None, overwrite=False): """Resolves inputs and outputs from standard args and options. :param input: a single input filename, optional. :param output: a single output filename, optional. :param files: a sequence of filenames in which the last is the ...
https://github.com/mapbox/rasterio/issues/1985
$ rio convert --overwrite 20200829.tif Traceback (most recent call last): File "/usr/local/bin/rio", line 8, in <module> sys.exit(main_group()) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/core.py"...
IndexError
def clip( ctx, files, output, bounds, like, driver, projection, overwrite, creation_options, with_complement, ): """Clips a raster using projected or geographic bounds. \b $ rio clip input.tif output.tif --bounds xmin ymin xmax ymax $ rio clip input.tif outpu...
def clip( ctx, files, output, bounds, like, driver, projection, overwrite, creation_options, with_complement, ): """Clips a raster using projected or geographic bounds. \b $ rio clip input.tif output.tif --bounds xmin ymin xmax ymax $ rio clip input.tif outpu...
https://github.com/mapbox/rasterio/issues/1989
Traceback (most recent call last): File "/home/sentinel/.local/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/sentinel/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/sentinel/.local/lib/python3.8/site-packages/click/core.py", line...
TypeError
def warp( ctx, files, output, driver, like, dst_crs, dimensions, src_bounds, dst_bounds, res, resampling, src_nodata, dst_nodata, threads, check_invert_proj, overwrite, creation_options, target_aligned_pixels, ): """ Warp a raster dataset. ...
def warp( ctx, files, output, driver, like, dst_crs, dimensions, src_bounds, dst_bounds, res, resampling, src_nodata, dst_nodata, threads, check_invert_proj, overwrite, creation_options, target_aligned_pixels, ): """ Warp a raster dataset. ...
https://github.com/mapbox/rasterio/issues/1989
Traceback (most recent call last): File "/home/sentinel/.local/bin/rio", line 8, in <module> sys.exit(main_group()) File "/home/sentinel/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/sentinel/.local/lib/python3.8/site-packages/click/core.py", line...
TypeError
def __init__( self, session=None, aws_unsigned=False, profile_name=None, session_class=AWSSession, **options, ): """Create a new GDAL/AWS environment. Note: this class is a context manager. GDAL isn't configured until the context is entered via `with rasterio.Env():` Parameters...
def __init__( self, session=None, aws_unsigned=False, profile_name=None, session_class=AWSSession, **options, ): """Create a new GDAL/AWS environment. Note: this class is a context manager. GDAL isn't configured until the context is entered via `with rasterio.Env():` Parameters...
https://github.com/mapbox/rasterio/issues/1708
Traceback (most recent call last): File "/Users/guillaumelostis/.venv/rio/bin/rio", line 10, in <module> sys.exit(main_group()) File "/Users/guillaumelostis/.venv/rio/lib/python3.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/Users/guillaumelostis/.venv/rio/lib/python3.7/...
ModuleNotFoundError
def __getstate__(self): return self.to_wkt()
def __getstate__(self): return self.wkt
https://github.com/mapbox/rasterio/issues/1643
In [1]: from copy import copy In [2]: from rasterio.crs import CRS In [3]: some_crs = CRS(init='epsg:32620') In [4]: crs = copy(some_crs) In [5]: bool(some_crs) Out[5]: True In [6]: bool(crs) --------------------------------------------------------------------------- AttributeError Trace...
AttributeError
def __setstate__(self, state): self._wkt = None self._data = None self._crs = _CRS.from_wkt(state)
def __setstate__(self, state): self._crs = _CRS.from_wkt(state)
https://github.com/mapbox/rasterio/issues/1643
In [1]: from copy import copy In [2]: from rasterio.crs import CRS In [3]: some_crs = CRS(init='epsg:32620') In [4]: crs = copy(some_crs) In [5]: bool(some_crs) Out[5]: True In [6]: bool(crs) --------------------------------------------------------------------------- AttributeError Trace...
AttributeError
def __init__(self, initialdata=None, **kwargs): """Make a CRS from a PROJ dict or mapping Parameters ---------- initialdata : mapping, optional A dictionary or other mapping kwargs : mapping, optional Another mapping. Will be overlaid on the initialdata. Returns ------- ...
def __init__(self, initialdata=None, **kwargs): """Make a CRS from a PROJ dict or mapping Parameters ---------- initialdata : mapping, optional A dictionary or other mapping kwargs : mapping, optional Another mapping. Will be overlaid on the initialdata. Returns ------- ...
https://github.com/mapbox/rasterio/issues/1609
src_crs = rcrs(src_proj) dst_crs = rcrs(dst_proj) warp.calculate_default_transform(src_crs, dst_crs, src_width, src_height, left, bottom, right, top) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/trst2284/miniconda3/envs/test/lib/python3.6/site-packages/rasterio/env.py", line 373...
rasterio.errors.CRSError
def __enter__(self): return self
def __enter__(self): log.debug("Entering env context: %r", self) if local._env is None: log.debug("Starting outermost env") self._has_parent_env = False # See note directly above where _discovered_options is globally # defined. This MUST happen before calling 'defenv()'. ...
https://github.com/mapbox/rasterio/issues/1539
from rasterio.crs import CRS CRS({'init': 'epsg:4326'}).is_geographic ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. Traceback (most recent call last): File "rasterio/_base.pyx", line 1310, in rasterio._base._osr_fr...
rasterio._err.CPLE_OpenFailedError
def __exit__(self, *args): pass
def __exit__(self, exc_type=None, exc_val=None, exc_tb=None): log.debug("Exiting env context: %r", self) delenv() if self._has_parent_env: defenv() setenv(**self.context_options) else: log.debug("Exiting outermost env") # See note directly above where _discovered_options ...
https://github.com/mapbox/rasterio/issues/1539
from rasterio.crs import CRS CRS({'init': 'epsg:4326'}).is_geographic ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. Traceback (most recent call last): File "rasterio/_base.pyx", line 1310, in rasterio._base._osr_fr...
rasterio._err.CPLE_OpenFailedError
def plotting_extent(source, transform=None): """Returns an extent in the format needed for matplotlib's imshow (left, right, bottom, top) instead of rasterio's bounds (left, bottom, top, right) Parameters ---------- source : array or dataset object opened in 'r' mode If array, data in...
def plotting_extent(source, transform=None): """Returns an extent in the format needed for matplotlib's imshow (left, right, bottom, top) instead of rasterio's bounds (left, bottom, top, right) Parameters ---------- source : array or dataset object opened in 'r' mode input data tr...
https://github.com/mapbox/rasterio/issues/1537
from rasterio.crs import CRS CRS.from_string(projection_string) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "rasterio/_crs.pyx", line 205, in rasterio._crs._CRS.from_string File "rasterio/_crs.pyx", line 230, in rasterio._crs._CRS.from_wkt rasterio.errors.CRSError: Invalid CRS: 'PROJCS["...
rasterio.errors.CRSError
def xy(self, row, col, offset="center"): """Returns the coordinates ``(x, y)`` of a pixel at `row` and `col`. The pixel's center is returned by default, but a corner can be returned by setting `offset` to one of `ul, ur, ll, lr`. Parameters ---------- row : int Pixel row. col : int ...
def xy(transform, rows, cols, offset="center"): """Returns the x and y coordinates of pixels at `rows` and `cols`. The pixel's center is returned by default, but a corner can be returned by setting `offset` to one of `ul, ur, ll, lr`. Parameters ---------- transform : affine.Affine Tran...
https://github.com/mapbox/rasterio/issues/1174
Traceback (most recent call last): File "buh.py", line 1, in <module> import rasterio File "/Users/wursterk/code/rasterio/rasterio/__init__.py", line 25, in <module> from rasterio.io import ( File "/Users/wursterk/code/rasterio/rasterio/io.py", line 13, in <module> from rasterio._io import ( File "rasterio/_io.pyx", li...
ImportError
def reproject( source, destination, src_transform=None, src_crs=None, src_nodata=None, dst_transform=None, dst_crs=None, dst_nodata=None, resampling=Resampling.nearest, **kwargs, ): """ Reproject a source raster to a destination raster. If the source and destination ...
def reproject( source, destination, src_transform=None, src_crs=None, src_nodata=None, dst_transform=None, dst_crs=None, dst_nodata=None, resampling=Resampling.nearest, **kwargs, ): """ Reproject a source raster to a destination raster. If the source and destination ...
https://github.com/mapbox/rasterio/issues/674
Traceback (most recent call last): File "_test_err.py", line 51, in <module> test_reproject_identity() File "_test_err.py", line 45, in test_reproject_identity resampling=Resampling.nearest) File "/Users/mperry/work/rasterio/rasterio/warp.py", line 257, in reproject **kwargs) File "rasterio/_warp.pyx", line 391, in ras...
rasterio._err.CPLError
def reproject( source, destination, src_transform=None, src_crs=None, src_nodata=None, dst_transform=None, dst_crs=None, dst_nodata=None, resampling=Resampling.nearest, **kwargs, ): """ Reproject a source raster to a destination raster. If the source and destination ...
def reproject( source, destination, src_transform=None, src_crs=None, src_nodata=None, dst_transform=None, dst_crs=None, dst_nodata=None, resampling=Resampling.nearest, **kwargs, ): """ Reproject a source raster to a destination raster. If the source and destination ...
https://github.com/mapbox/rasterio/issues/674
Traceback (most recent call last): File "_test_err.py", line 51, in <module> test_reproject_identity() File "_test_err.py", line 45, in test_reproject_identity resampling=Resampling.nearest) File "/Users/mperry/work/rasterio/rasterio/warp.py", line 257, in reproject **kwargs) File "rasterio/_warp.pyx", line 391, in ras...
rasterio._err.CPLError
def merge(ctx, files, driver): """Copy valid pixels from input files to an output file. All files must have the same shape, number of bands, and data type. Input files are merged in their listed order using a reverse painter's algorithm. """ import numpy as np verbosity = (ctx.obj and ctx...
def merge(ctx, files, driver): """Copy valid pixels from input files to an output file. All files must have the same shape, number of bands, and data type. Input files are merged in their listed order using a reverse painter's algorithm. """ import numpy as np verbosity = (ctx.obj and ctx...
https://github.com/mapbox/rasterio/issues/240
(rio-test)$ rio merge warped.tif merged.tif ERROR:rio:Failed. Exception caught Traceback (most recent call last): File "/Users/amit/Mapbox/rasterio/rasterio/rio/merge.py", line 50, in merge dest.fill(nodataval) TypeError: long() argument must be a string or a number, not 'NoneType'
TypeError
def tastes_like_gdal(seq): """Return True if `seq` matches the GDAL geotransform pattern.""" return seq[2] == seq[4] == 0.0 and seq[1] > 0 and seq[5] < 0
def tastes_like_gdal(t): return t[2] == t[4] == 0.0 and t[1] > 0 and t[5] < 0
https://github.com/mapbox/rasterio/issues/210
Traceback (most recent call last): ... File "copier.py", line 15, in to_png with rio.open(dst_path, "w", **meta) as dst: File "xxx/anaconda/lib/python2.7/site-packages/rasterio/__init__.py", line 91, in open transform = guard_transform(transform) File "xxx/anaconda/lib/python2.7/site-packages/rasterio/transform.py", li...
ValueError
def guard_transform(transform): """Return an Affine transformation instance""" if not isinstance(transform, Affine): if tastes_like_gdal(transform): warnings.warn( "GDAL-style transforms are deprecated and will not " "be supported in Rasterio 1.0.", ...
def guard_transform(transform): """Return an Affine transformation instance""" if not isinstance(transform, Affine): if tastes_like_gdal(transform): warnings.warn( "GDAL-style transforms are deprecated and will not " "be supported in Rasterio 1.0.", ...
https://github.com/mapbox/rasterio/issues/210
Traceback (most recent call last): ... File "copier.py", line 15, in to_png with rio.open(dst_path, "w", **meta) as dst: File "xxx/anaconda/lib/python2.7/site-packages/rasterio/__init__.py", line 91, in open transform = guard_transform(transform) File "xxx/anaconda/lib/python2.7/site-packages/rasterio/transform.py", li...
ValueError
def init_cgroups(): # Track metrics for the roll-up cgroup and for the agent cgroup try: CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) CGroupsTelemetry.track_agent() except Exception as e: # when a hierarchy is not mounted, we raise an exception # and we should the...
def init_cgroups(): # Track metrics for the roll-up cgroup and for the agent cgroup try: CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) CGroupsTelemetry.track_agent() except Exception as e: logger.error( "monitor: Exception tracking wrapper and agent: {0} [{1}]"...
https://github.com/Azure/WALinuxAgent/issues/1282
2018/07/31 11:41:06.400633 ERROR ExtHandler monitor: Exception tracking wrapper and agent: 'Hierarchy memory is not mounted' [Traceback (most recent call last): File "bin/WALinuxAgent-2.2.30-py2.7.egg/azurelinuxagent/ga/monitor.py", line 397, in init_cgroups CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) File...
azurelinuxagent.common.cgroups.CGroupsException
def send_cgroup_telemetry(self): if self.last_cgroup_telemetry is None: self.last_cgroup_telemetry = datetime.datetime.utcnow() if datetime.datetime.utcnow() >= ( self.last_telemetry_heartbeat + MonitorHandler.CGROUP_TELEMETRY_PERIOD ): try: for cgroup_name, metrics in C...
def send_cgroup_telemetry(self): if self.last_cgroup_telemetry is None: self.last_cgroup_telemetry = datetime.datetime.utcnow() if datetime.datetime.utcnow() >= ( self.last_telemetry_heartbeat + MonitorHandler.CGROUP_TELEMETRY_PERIOD ): try: for cgroup_name, metrics in C...
https://github.com/Azure/WALinuxAgent/issues/1282
2018/07/31 11:41:06.400633 ERROR ExtHandler monitor: Exception tracking wrapper and agent: 'Hierarchy memory is not mounted' [Traceback (most recent call last): File "bin/WALinuxAgent-2.2.30-py2.7.egg/azurelinuxagent/ga/monitor.py", line 397, in init_cgroups CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) File...
azurelinuxagent.common.cgroups.CGroupsException
def deploy_ssh_pubkey(self, username, pubkey): """ Deploy authorized_key """ path, thumbprint, value = pubkey if path is None: raise OSUtilError("Public key path is None") crytputil = CryptUtil(conf.get_openssl_cmd()) path = self._norm_path(path) dir_path = os.path.dirname(path...
def deploy_ssh_pubkey(self, username, pubkey): """ Deploy authorized_key """ path, thumbprint, value = pubkey if path is None: raise OSUtilError("Publich key path is None") crytputil = CryptUtil(conf.get_openssl_cmd()) path = self._norm_path(path) dir_path = os.path.dirname(pat...
https://github.com/Azure/WALinuxAgent/issues/104
2015/08/19 12:35:10 Created user account: azureuser 2015/08/19 12:35:10 Deploy public key:28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF 2015/08/19 12:35:10 ERROR:Failed: 28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF.pub.crt -> /home/azureuser/.ssh/authorized_keys 2015/08/19 12:35:10 ERROR:CalledProcessError. Error Code is 1 201...
CalledProcessError
def set_selinux_context(self, path, con): """ Calls shell 'chcon' with 'path' and 'con' context. Returns exit result. """ if self.is_selinux_system(): if not os.path.exists(path): logger.error("Path does not exist: {0}".format(path)) return 1 return shellutil....
def set_selinux_context(self, path, con): """ Calls shell 'chcon' with 'path' and 'con' context. Returns exit result. """ if self.is_selinux_system(): return shellutil.run("chcon " + con + " " + path)
https://github.com/Azure/WALinuxAgent/issues/104
2015/08/19 12:35:10 Created user account: azureuser 2015/08/19 12:35:10 Deploy public key:28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF 2015/08/19 12:35:10 ERROR:Failed: 28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF.pub.crt -> /home/azureuser/.ssh/authorized_keys 2015/08/19 12:35:10 ERROR:CalledProcessError. Error Code is 1 201...
CalledProcessError
def chowner(path, owner): if not os.path.exists(path): logger.error("Path does not exist: {0}".format(path)) else: owner_info = pwd.getpwnam(owner) os.chown(path, owner_info[2], owner_info[3])
def chowner(path, owner): owner_info = pwd.getpwnam(owner) os.chown(path, owner_info[2], owner_info[3])
https://github.com/Azure/WALinuxAgent/issues/104
2015/08/19 12:35:10 Created user account: azureuser 2015/08/19 12:35:10 Deploy public key:28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF 2015/08/19 12:35:10 ERROR:Failed: 28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF.pub.crt -> /home/azureuser/.ssh/authorized_keys 2015/08/19 12:35:10 ERROR:CalledProcessError. Error Code is 1 201...
CalledProcessError
def chmod(path, mode): if not os.path.exists(path): logger.error("Path does not exist: {0}".format(path)) else: os.chmod(path, mode)
def chmod(path, mode): os.chmod(path, mode)
https://github.com/Azure/WALinuxAgent/issues/104
2015/08/19 12:35:10 Created user account: azureuser 2015/08/19 12:35:10 Deploy public key:28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF 2015/08/19 12:35:10 ERROR:Failed: 28EC0E2C8F27A2A0D081742A97D517CBD1FFFFFF.pub.crt -> /home/azureuser/.ssh/authorized_keys 2015/08/19 12:35:10 ERROR:CalledProcessError. Error Code is 1 201...
CalledProcessError
def _common_defaults(is_hyperband: bool) -> (Set[str], dict, dict): mandatory = set() default_options = { "random_seed": np.random.randint(10000), "opt_skip_init_length": 150, "opt_skip_period": 1, "profiler": False, "opt_maxiter": 50, "opt_nstarts": 2, "...
def _common_defaults(is_hyperband: bool) -> (Set[str], dict, dict): mandatory = set() default_options = { "random_seed": 31415927, "opt_skip_init_length": 150, "opt_skip_period": 1, "profiler": False, "opt_maxiter": 50, "opt_nstarts": 2, "opt_warmstart": ...
https://github.com/awslabs/autogluon/issues/685
Traceback (most recent call last): File "/Users/yixiaxia/Desktop/test/test.py", line 17, in <module> searcher = GPFIFOSearcher(train_fn.cs) TypeError: __init__() takes 1 positional argument but 2 were given
TypeError
def __init__(self, configspace, **kwargs): _gp_searcher = kwargs.get("_gp_searcher") if _gp_searcher is None: kwargs["configspace"] = configspace _kwargs = check_and_merge_defaults( kwargs, *gp_fifo_searcher_defaults(), dict_name="search_options" ) _gp_searcher = gp_f...
def __init__(self, **kwargs): _gp_searcher = kwargs.get("_gp_searcher") if _gp_searcher is None: _kwargs = check_and_merge_defaults( kwargs, *gp_fifo_searcher_defaults(), dict_name="search_options" ) _gp_searcher = gp_fifo_searcher_factory(**_kwargs) super().__init__( ...
https://github.com/awslabs/autogluon/issues/685
Traceback (most recent call last): File "/Users/yixiaxia/Desktop/test/test.py", line 17, in <module> searcher = GPFIFOSearcher(train_fn.cs) TypeError: __init__() takes 1 positional argument but 2 were given
TypeError
def fit_summary(self, verbosity=3): """ Output summary of information about models produced during `fit()`. May create various generated summary plots and store them in folder: `Predictor.output_directory`. Parameters ---------- verbosity : int, default = 3 Controls how detailed of a su...
def fit_summary(self, verbosity=3): """ Output summary of information about models produced during `fit()`. May create various generated summary plots and store them in folder: `Predictor.output_directory`. Parameters ---------- verbosity : int, default = 3 Controls how detailed of a su...
https://github.com/awslabs/autogluon/issues/675
*** Details of Hyperparameter optimization *** --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-2-1b709fc952c0> in <module> 11 predictor = task.fit(train_data=train_data, label=label_column, output_dire...
KeyError
def __init__(self, learner): """Creates TabularPredictor object. You should not construct a TabularPredictor yourself, it is only intended to be produced during fit(). Parameters ---------- learner : `AbstractLearner` object Object that implements the `AbstractLearner` APIs. To access ...
def __init__(self, learner): """Creates TabularPredictor object. You should not construct a TabularPredictor yourself, it is only intended to be produced during fit(). Parameters ---------- learner : `AbstractLearner` object Object that implements the `AbstractLearner` APIs. To access ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def fit_summary(self, verbosity=3): """ Output summary of information about models produced during `fit()`. May create various generated summary plots and store them in folder: `Predictor.output_directory`. Parameters ---------- verbosity : int, default = 3 Controls how detailed of a su...
def fit_summary(self, verbosity=3): """ Output summary of information about models produced during `fit()`. May create various generated summary plots and store them in folder: `Predictor.output_directory`. Parameters ---------- verbosity : int, default = 3 Controls how detailed of a su...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def fit( train_data, label, tuning_data=None, time_limits=None, output_directory=None, presets=None, problem_type=None, eval_metric=None, stopping_metric=None, auto_stack=False, hyperparameter_tune=False, feature_prune=False, holdout_frac=None, num_bagging_folds=0...
def fit( train_data, label, tuning_data=None, time_limits=None, output_directory=None, presets=None, problem_type=None, eval_metric=None, stopping_metric=None, auto_stack=False, hyperparameter_tune=False, feature_prune=False, holdout_frac=None, num_bagging_folds=0...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def augment_data( X_train, feature_metadata: FeatureMetadata, augmentation_data=None, augment_method="spunge", augment_args=None, ): """augment_method options: ['spunge', 'munge']""" if augment_args is None: augment_args = {} if augmentation_data is not None: X_aug = augm...
def augment_data( X_train, feature_types_metadata: FeatureTypesMetadata, augmentation_data=None, augment_method="spunge", augment_args=None, ): """augment_method options: ['spunge', 'munge']""" if augment_args is None: augment_args = {} if augmentation_data is not None: X...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def spunge_augment( X, feature_metadata: FeatureMetadata, num_augmented_samples=10000, frac_perturb=0.1, continuous_feature_noise=0.1, **kwargs, ): """Generates synthetic datapoints for learning to mimic teacher model in distillation via simplified version of MUNGE strategy (that does no...
def spunge_augment( X, feature_types_metadata: FeatureTypesMetadata, num_augmented_samples=10000, frac_perturb=0.1, continuous_feature_noise=0.1, **kwargs, ): """Generates synthetic datapoints for learning to mimic teacher model in distillation via simplified version of MUNGE strategy (t...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def munge_augment( X, feature_metadata: FeatureMetadata, num_augmented_samples=10000, perturb_prob=0.5, s=1.0, **kwargs, ): """Uses MUNGE algorithm to generate synthetic datapoints for learning to mimic teacher model in distillation: https://www.cs.cornell.edu/~caruana/compression.kdd06.pdf ...
def munge_augment( X, feature_types_metadata: FeatureTypesMetadata, num_augmented_samples=10000, perturb_prob=0.5, s=1.0, **kwargs, ): """Uses MUNGE algorithm to generate synthetic datapoints for learning to mimic teacher model in distillation: https://www.cs.cornell.edu/~caruana/compression...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def __init__( self, path_context: str, label: str, id_columns: list, feature_generator: PipelineFeatureGenerator, label_count_threshold=10, problem_type=None, eval_metric=None, stopping_metric=None, is_trainer_present=False, random_seed=0, ): self.path, self.model_context...
def __init__( self, path_context: str, label: str, id_columns: list, feature_generator: AbstractFeatureGenerator, label_count_threshold=10, problem_type=None, eval_metric=None, stopping_metric=None, is_trainer_present=False, random_seed=0, ): self.path, self.model_context...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _fit( self, X: DataFrame, X_val: DataFrame = None, scheduler_options=None, hyperparameter_tune=False, feature_prune=False, holdout_frac=0.1, num_bagging_folds=0, num_bagging_sets=1, stack_ensemble_levels=0, hyperparameters=None, ag_args_fit=None, excluded_model_ty...
def _fit( self, X: DataFrame, X_val: DataFrame = None, scheduler_options=None, hyperparameter_tune=False, feature_prune=False, holdout_frac=0.1, num_bagging_folds=0, num_bagging_sets=1, stack_ensemble_levels=0, hyperparameters=None, ag_args_fit=None, excluded_model_ty...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def general_data_processing( self, X: DataFrame, X_val: DataFrame, holdout_frac: float, num_bagging_folds: int ): """General data processing steps used for all models.""" X = copy.deepcopy(X) # TODO: We should probably uncomment the below lines, NaN label should be treated as just another value in multi...
def general_data_processing( self, X: DataFrame, X_val: DataFrame, holdout_frac: float, num_bagging_folds: int ): """General data processing steps used for all models.""" X = copy.deepcopy(X) # TODO: We should probably uncomment the below lines, NaN label should be treated as just another value in multi...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def __init__( self, path: str, name: str, problem_type: str, eval_metric: Union[str, metrics.Scorer] = None, num_classes=None, stopping_metric=None, model=None, hyperparameters=None, features=None, feature_metadata: FeatureMetadata = None, debug=0, **kwargs, ): ""...
def __init__( self, path: str, name: str, problem_type: str, eval_metric: Union[str, metrics.Scorer] = None, num_classes=None, stopping_metric=None, model=None, hyperparameters=None, features=None, feature_types_metadata: FeatureTypesMetadata = None, debug=0, **kwargs...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _set_default_auxiliary_params(self): # TODO: Consider adding to get_info() output default_auxiliary_params = dict( max_memory_usage_ratio=1.0, # Ratio of memory usage allowed by the model. Values > 1.0 have an increased risk of causing OOM errors. # TODO: Add more params # max_memor...
def _set_default_auxiliary_params(self): # TODO: Consider adding to get_info() output default_auxiliary_params = dict( max_memory_usage_ratio=1.0, # Ratio of memory usage allowed by the model. Values > 1.0 have an increased risk of causing OOM errors. # TODO: Add more params # max_memor...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def preprocess(self, X): if self.features is not None: # TODO: In online-inference this becomes expensive, add option to remove it (only safe in controlled environment where it is already known features are present if list(X.columns) != self.features: return X[self.features] else: ...
def preprocess(self, X): if self.features is not None: # TODO: In online-inference this becomes expensive, add option to remove it (only safe in controlled environment where it is already known features are present if list(X.columns) != self.features: return X[self.features] else: ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def preprocess(self, X): if self.features is not None: # TODO: In online-inference this becomes expensive, add option to remove it (only safe in controlled environment where it is already known features are present if list(X.columns) != self.features: return X[self.features] else: ...
def preprocess(self, X): X = convert_categorical_to_int(X) return super().preprocess(X)
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def __init__( self, model_base: AbstractModel, save_bagged_folds=True, random_state=0, **kwargs ): self.model_base = model_base self._child_type = type(self.model_base) self.models = [] self._oof_pred_proba = None self._oof_pred_model_repeats = None self._n_repeats = 0 # Number of n_repeats...
def __init__( self, model_base: AbstractModel, save_bagged_folds=True, random_state=0, **kwargs ): self.model_base = model_base self._child_type = type(self.model_base) self.models = [] self._oof_pred_proba = None self._oof_pred_model_repeats = None self._n_repeats = 0 # Number of n_repeats...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _fit( self, X, y, k_fold=5, k_fold_start=0, k_fold_end=None, n_repeats=1, n_repeat_start=0, time_limit=None, **kwargs, ): if k_fold < 1: k_fold = 1 if k_fold_end is None: k_fold_end = k_fold if self._oof_pred_proba is None and (k_fold_start != 0 o...
def _fit( self, X, y, k_fold=5, k_fold_start=0, k_fold_end=None, n_repeats=1, n_repeat_start=0, time_limit=None, **kwargs, ): if k_fold < 1: k_fold = 1 if k_fold_end is None: k_fold_end = k_fold if self._oof_pred_proba is None and (k_fold_start != 0 o...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def convert_to_refitfull_template(self): compressed_params = self._get_compressed_params() model_compressed = copy.deepcopy(self._get_model_base()) model_compressed.feature_metadata = ( self.feature_metadata ) # TODO: Don't pass this here model_compressed.params = compressed_params mode...
def convert_to_refitfull_template(self): compressed_params = self._get_compressed_params() model_compressed = copy.deepcopy(self._get_model_base()) model_compressed.feature_types_metadata = ( self.feature_types_metadata ) # TODO: Don't pass this here model_compressed.params = compressed_par...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _fit( self, X, y, k_fold=5, k_fold_start=0, k_fold_end=None, n_repeats=1, n_repeat_start=0, compute_base_preds=True, time_limit=None, **kwargs, ): start_time = time.time() X = self.preprocess( X=X, preprocess=False, fit=True, compute_base_preds=compute_bas...
def _fit( self, X, y, k_fold=5, k_fold_start=0, k_fold_end=None, n_repeats=1, n_repeat_start=0, compute_base_preds=True, time_limit=None, **kwargs, ): start_time = time.time() X = self.preprocess( X=X, preprocess=False, fit=True, compute_base_preds=compute_bas...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def hyperparameter_tune( self, X, y, k_fold, scheduler_options=None, compute_base_preds=True, **kwargs ): if len(self.models) != 0: raise ValueError( "self.models must be empty to call hyperparameter_tune, value: %s" % self.models ) if len(self.models) == 0: ...
def hyperparameter_tune( self, X, y, k_fold, scheduler_options=None, compute_base_preds=True, **kwargs ): if len(self.models) != 0: raise ValueError( "self.models must be empty to call hyperparameter_tune, value: %s" % self.models ) if len(self.models) == 0: ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _set_default_auxiliary_params(self): default_auxiliary_params = dict( ignored_type_group_raw=[ R_CATEGORY, R_OBJECT, ], # TODO: Eventually use category features ignored_type_group_special=[S_TEXT_NGRAM, S_TEXT_SPECIAL, S_DATETIME_AS_INT], ) for key, value...
def _set_default_auxiliary_params(self): default_auxiliary_params = dict( ignored_feature_types_special=["text_ngram", "text_special"], ignored_feature_types_raw=[ "category", "object", ], # TODO: Eventually use category features ) for key, value in default_a...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _get_types_of_features(self, df): """Returns dict with keys: : 'continuous', 'skewed', 'onehot', 'embed', 'language', values = ordered list of feature-names falling into each category. Each value is a list of feature-names corresponding to columns in original dataframe. TODO: ensure features with zero v...
def _get_types_of_features(self, df): """Returns dict with keys: : 'continuous', 'skewed', 'onehot', 'embed', 'language', values = ordered list of feature-names falling into each category. Each value is a list of feature-names corresponding to columns in original dataframe. TODO: ensure features with zero v...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def __init__(self, **kwargs): super().__init__(**kwargs) self._model_type = self._get_model_type() self._feature_generator = None
def __init__(self, **kwargs): super().__init__(**kwargs) self._model_type = self._get_model_type()
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def preprocess(self, X): X = super().preprocess(X) if self._feature_generator is None: self._feature_generator = LabelEncoderFeatureGenerator(verbosity=0) self._feature_generator.fit(X=X) if self._feature_generator.features_in: X = X.copy() X[self._feature_generator.features_...
def preprocess(self, X): X = super().preprocess(X).fillna(0) return X
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _set_default_auxiliary_params(self): default_auxiliary_params = dict( ignored_type_group_special=["text_ngram", "text_as_category"], ) for key, value in default_auxiliary_params.items(): self._set_default_param_value(key, value, params=self.params_aux) super()._set_default_auxiliary_...
def _set_default_auxiliary_params(self): default_auxiliary_params = dict( ignored_feature_types_special=["text_ngram", "text_as_category"], ) for key, value in default_auxiliary_params.items(): self._set_default_param_value(key, value, params=self.params_aux) super()._set_default_auxilia...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _fit( self, X_train, y_train, X_val=None, y_val=None, time_limit=None, reporter=None, **kwargs, ): """X_train (pd.DataFrame): training data features (not necessarily preprocessed yet) X_val (pd.DataFrame): test data features (should have same column names as Xtrain) y_tra...
def _fit( self, X_train, y_train, X_val=None, y_val=None, time_limit=None, reporter=None, **kwargs, ): """X_train (pd.DataFrame): training data features (not necessarily preprocessed yet) X_val (pd.DataFrame): test data features (should have same column names as Xtrain) y_tra...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def _get_types_of_features( self, df, skew_threshold, embed_min_categories, use_ngram_features ): """Returns dict with keys: : 'continuous', 'skewed', 'onehot', 'embed', 'language', values = ordered list of feature-names falling into each category. Each value is a list of feature-names corresponding to colu...
def _get_types_of_features( self, df, skew_threshold, embed_min_categories, use_ngram_features ): """Returns dict with keys: : 'continuous', 'skewed', 'onehot', 'embed', 'language', values = ordered list of feature-names falling into each category. Each value is a list of feature-names corresponding to colu...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def hyperparameter_tune( self, X_train, y_train, X_val, y_val, scheduler_options, **kwargs ): time_start = time.time() """ Performs HPO and sets self.params to best hyperparameter values """ self.verbosity = kwargs.get("verbosity", 2) logger.log(15, "Beginning hyperparameter tuning for Neural Networ...
def hyperparameter_tune( self, X_train, y_train, X_val, y_val, scheduler_options, **kwargs ): time_start = time.time() """ Performs HPO and sets self.params to best hyperparameter values """ self.verbosity = kwargs.get("verbosity", 2) logger.log(15, "Beginning hyperparameter tuning for Neural Networ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def __init__( self, path: str, problem_type: str, scheduler_options=None, eval_metric=None, stopping_metric=None, num_classes=None, low_memory=False, feature_metadata=None, kfolds=0, n_repeats=1, stack_ensemble_levels=0, time_limit=None, save_data=False, save_...
def __init__( self, path: str, problem_type: str, scheduler_options=None, eval_metric=None, stopping_metric=None, num_classes=None, low_memory=False, feature_types_metadata=None, kfolds=0, n_repeats=1, stack_ensemble_levels=0, time_limit=None, save_data=False, ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def train_single( self, X_train, y_train, X_val, y_val, model, kfolds=None, k_fold_start=0, k_fold_end=None, n_repeats=None, n_repeat_start=0, level=0, time_limit=None, ): if kfolds is None: kfolds = self.kfolds if n_repeats is None: n_repeats ...
def train_single( self, X_train, y_train, X_val, y_val, model, kfolds=None, k_fold_start=0, k_fold_end=None, n_repeats=None, n_repeat_start=0, level=0, time_limit=None, ): if kfolds is None: kfolds = self.kfolds if n_repeats is None: n_repeats ...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def train_single_full( self, X_train, y_train, X_val, y_val, model: AbstractModel, feature_prune=False, hyperparameter_tune=True, stack_name="core", kfolds=None, k_fold_start=0, k_fold_end=None, n_repeats=None, n_repeat_start=0, level=0, time_limit=None, )...
def train_single_full( self, X_train, y_train, X_val, y_val, model: AbstractModel, feature_prune=False, hyperparameter_tune=True, stack_name="core", kfolds=None, k_fold_start=0, k_fold_end=None, n_repeats=None, n_repeat_start=0, level=0, time_limit=None, )...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError
def distill( self, X_train=None, y_train=None, X_val=None, y_val=None, time_limits=None, hyperparameters=None, holdout_frac=None, verbosity=None, models_name_suffix=None, teacher_preds="soft", augmentation_data=None, augment_method="spunge", augment_args={"size_fa...
def distill( self, X_train=None, y_train=None, X_val=None, y_val=None, time_limits=None, hyperparameters=None, holdout_frac=None, verbosity=None, models_name_suffix=None, teacher_preds="soft", augmentation_data=None, augment_method="spunge", augment_args={"size_fa...
https://github.com/awslabs/autogluon/issues/601
File delimiter for ../input/house-prices-advanced-regression-techniques/test.csv inferred as ',' (comma). If this is incorrect, please manually load the data as a pandas DataFrame. Loaded data from: ../input/house-prices-advanced-regression-techniques/test.csv | Columns = 80 / 80 | Rows = 1459 -> 1459 -----------------...
ValueError