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 igetattr(self, name, context=None): if name == "im_func": return iter((self._proxied,)) return self._proxied.igetattr(name, context)
def igetattr(self, name, context=None): if name == "im_func": return iter((self._proxied,)) return super(UnboundMethod, self).igetattr(name, context)
https://github.com/PyCQA/astroid/issues/91
#!python Traceback (most recent call last): File "C:\Python34\Scripts\pylint-script.py", line 9, in <module> load_entry_point('pylint==1.4.3', 'console_scripts', 'pylint')() File "e:\projects\repos\pylint\pylint\__init__.py", line 23, in run_pylint Run(sys.argv[1:]) File "e:\projects\repos\pylint\pylint\lint.py", line...
AttributeError
def from_file(filename): url_scheme = filename.split("://", 1)[0] if url_scheme in CONDA_SESSION_SCHEMES: yamlstr = download_text(filename) elif not os.path.exists(filename): raise exceptions.EnvironmentFileNotFound(filename) else: with open(filename, "rb") as fp: yam...
def from_file(filename): url_scheme = filename.split("://", 1)[0] if url_scheme in CONDA_SESSION_SCHEMES: yamlstr = download_text(filename) elif not os.path.exists(filename): raise exceptions.EnvironmentFileNotFound(filename) else: with open(filename, "r") as fp: yaml...
https://github.com/conda/conda/issues/9749
DEBUG conda.gateways.logging:set_verbosity(231): verbosity set to 3 # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "D:\Program_Files\miniconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__ return func(*args, **kwargs) File "D:\Program_Files\minic...
ruamel_yaml.reader.ReaderError
def configure_parser(sub_parsers): config_parser = sub_parsers.add_parser( "config", formatter_class=RawDescriptionHelpFormatter, description=config_description, help=config_description, epilog=config_example, ) config_parser.set_defaults(func=".main_config.execute") ...
def configure_parser(sub_parsers): config_parser = sub_parsers.add_parser( "config", formatter_class=RawDescriptionHelpFormatter, description=config_description, help=config_description, epilog=config_example, ) config_subparser = config_parser.add_subparsers() co...
https://github.com/conda/conda/issues/9625
Traceback (most recent call last): File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1078, in __call__ return func(*args, **kwargs) File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda_env/cli/main.py", line 76, in do_call relative_mod, func_name = args.func.rsplit('.',...
AttributeError
def from_dist_str(cls, dist_str): parts = {} if dist_str[-len(CONDA_PACKAGE_EXTENSION_V2) :] == CONDA_PACKAGE_EXTENSION_V2: dist_str = dist_str[: -len(CONDA_PACKAGE_EXTENSION_V2)] elif dist_str[-len(CONDA_PACKAGE_EXTENSION_V1) :] == CONDA_PACKAGE_EXTENSION_V1: dist_str = dist_str[: -len(COND...
def from_dist_str(cls, dist_str): parts = {} if dist_str.endswith(CONDA_PACKAGE_EXTENSION_V1): dist_str = dist_str[: -len(CONDA_PACKAGE_EXTENSION_V1)] if "::" in dist_str: channel_subdir_str, dist_str = dist_str.split("::", 1) if "/" in channel_subdir_str: channel_str, su...
https://github.com/conda/conda/issues/9814
Traceback (most recent call last): File "/Users/christian/miniconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1079, in __call__ return func(*args, **kwargs) File "/Users/christian/miniconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main exit_code = do_call(args, p) File "/Users/christi...
ValueError
def get_paths(self): """ Read the list of installed paths from record or source file. Example ------- [(u'skdata/__init__.py', u'sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU', 0), (u'skdata/diabetes.py', None, None), ... ] """ manifest_full_path = self.manifest_full_path...
def get_paths(self): """ Read the list of installed paths from record or source file. Example ------- [(u'skdata/__init__.py', u'sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU', 0), (u'skdata/diabetes.py', None, None), ... ] """ manifest_full_path = self.manifest_full_path...
https://github.com/conda/conda/issues/9104
conda create --yes -n py-3.7 python==3.7 conda activate py-3.7 pip install jeepney==0.4.1 conda list # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/bago/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1003, in __call__ return func(*args, **kwar...
TypeError
def process_csv_row(reader): seen = [] records = [] for row in reader: cleaned_path = posix_normpath("%s%s%s" % (sp_dir, path_prepender, row[0])) if len(row) == 3: checksum, size = row[1:] if checksum: assert checksum.startswith("sha256="), ( ...
def process_csv_row(row): cleaned_path = posix_normpath("%s%s%s" % (sp_dir, path_prepender, row[0])) if len(row) == 3: checksum, size = row[1:] if checksum: assert checksum.startswith("sha256="), ( self._metadata_dir_full_path, cleaned_path, ...
https://github.com/conda/conda/issues/9104
conda create --yes -n py-3.7 python==3.7 conda activate py-3.7 pip install jeepney==0.4.1 conda list # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/bago/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1003, in __call__ return func(*args, **kwar...
TypeError
def typify(value, type_hint=None): """Take a primitive value, usually a string, and try to make a more relevant type out of it. An optional type_hint will try to coerce the value to that type. Args: value (Any): Usually a string, not a sequence type_hint (type or Tuple[type]): Examples...
def typify(value, type_hint=None): """Take a primitive value, usually a string, and try to make a more relevant type out of it. An optional type_hint will try to coerce the value to that type. Args: value (Any): Usually a string, not a sequence type_hint (type or Tuple[type]): Examples...
https://github.com/conda/conda/issues/8176
error: RuntimeError('Could not run any SAT solver.') command: C:\Tools\Progs\python\anaconda3\scripts\conda-script.py install -p C:\Tools\Progs\python\anaconda3 -y anaconda-client==1.7.2 user_agent: conda/4.6.1 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063 _messageid: -9223372036617369659 _messagetime: 15...
RuntimeError
def category_map(self): return odict( ( ( "Channel Configuration", ( "channels", "channel_alias", "default_channels", "override_channels_enabled", "whitelist_channe...
def category_map(self): return odict( ( ( "Channel Configuration", ( "channels", "channel_alias", "default_channels", "override_channels_enabled", "whitelist_channe...
https://github.com/conda/conda/issues/8176
error: RuntimeError('Could not run any SAT solver.') command: C:\Tools\Progs\python\anaconda3\scripts\conda-script.py install -p C:\Tools\Progs\python\anaconda3 -y anaconda-client==1.7.2 user_agent: conda/4.6.1 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063 _messageid: -9223372036617369659 _messagetime: 15...
RuntimeError
def execute_config(args, parser): stdout_write = getLogger("conda.stdout").info stderr_write = getLogger("conda.stderr").info json_warnings = [] json_get = {} if args.show_sources: if context.json: stdout_write( json.dumps( context.collect_all...
def execute_config(args, parser): stdout_write = getLogger("conda.stdout").info stderr_write = getLogger("conda.stderr").info json_warnings = [] json_get = {} if args.show_sources: if context.json: stdout_write( json.dumps( context.collect_all...
https://github.com/conda/conda/issues/8176
error: RuntimeError('Could not run any SAT solver.') command: C:\Tools\Progs\python\anaconda3\scripts\conda-script.py install -p C:\Tools\Progs\python\anaconda3 -y anaconda-client==1.7.2 user_agent: conda/4.6.1 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063 _messageid: -9223372036617369659 _messagetime: 15...
RuntimeError
def get_sat_solver_cls(sat_solver_choice=SatSolverChoice.PYCOSAT): solvers = odict( [ (SatSolverChoice.PYCOSAT, PycoSatSolver), (SatSolverChoice.PYCRYPTOSAT, CryptoMiniSatSolver), (SatSolverChoice.PYSAT, PySatSolver), ] ) cls = solvers[sat_solver_choice] ...
def get_sat_solver_cls(name=None): solvers = odict( [ ("pycosat", PycoSatSolver), ("pycryptosat", CryptoMiniSatSolver), ("pysat", PySatSolver), ] ) if name is not None: try: cls = solvers[name] except KeyError: raise...
https://github.com/conda/conda/issues/8176
error: RuntimeError('Could not run any SAT solver.') command: C:\Tools\Progs\python\anaconda3\scripts\conda-script.py install -p C:\Tools\Progs\python\anaconda3 -y anaconda-client==1.7.2 user_agent: conda/4.6.1 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063 _messageid: -9223372036617369659 _messagetime: 15...
RuntimeError
def category_map(self): return odict( ( ( "Channel Configuration", ( "channels", "channel_alias", "default_channels", "override_channels_enabled", "whitelist_channe...
def category_map(self): return odict( ( ( "Channel Configuration", ( "channels", "channel_alias", "default_channels", "override_channels_enabled", "whitelist_channe...
https://github.com/conda/conda/issues/8176
error: RuntimeError('Could not run any SAT solver.') command: C:\Tools\Progs\python\anaconda3\scripts\conda-script.py install -p C:\Tools\Progs\python\anaconda3 -y anaconda-client==1.7.2 user_agent: conda/4.6.1 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.15063 _messageid: -9223372036617369659 _messagetime: 15...
RuntimeError
def _check_files(self): """Check the existence of mandatory files for a given distribution.""" for fname in self.MANDATORY_FILES: if self._metadata_dir_full_path: fpath = join(self._metadata_dir_full_path, fname) if not isfile(fpath): raise OSError(ENOENT, strerro...
def _check_files(self): """Check the existence of mandatory files for a given distribution.""" for fname in self.MANDATORY_FILES: if self._metadata_dir_full_path: fpath = join(self._metadata_dir_full_path, fname) assert isfile(fpath)
https://github.com/conda/conda/issues/8178
error: AssertionError() command: D:\Users\rahul\Anaconda3\Scripts\conda-script.py list user_agent: conda/4.6.1 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17763 _messageid: -9223372036617369010 _messagetime: 1548792058544 / 2019-01-29 14:00:58 Traceback (most recent call last): File "D:\Users\rahul\Anaconda3...
AssertionError
def _load_site_packages(self): """ Load non-conda-installed python packages in the site-packages of the prefix. Python packages not handled by conda are installed via other means, like using pip or using python setup.py develop for local development. Packages found that are not handled by conda ar...
def _load_site_packages(self): """ Load non-conda-installed python packages in the site-packages of the prefix. Python packages not handled by conda are installed via other means, like using pip or using python setup.py develop for local development. Packages found that are not handled by conda ar...
https://github.com/conda/conda/issues/8178
error: AssertionError() command: D:\Users\rahul\Anaconda3\Scripts\conda-script.py list user_agent: conda/4.6.1 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17763 _messageid: -9223372036617369010 _messagetime: 1548792058544 / 2019-01-29 14:00:58 Traceback (most recent call last): File "D:\Users\rahul\Anaconda3...
AssertionError
def create_file_link_actions( cls, transaction_context, package_info, target_prefix, requested_link_type ): def get_prefix_replace(source_path_data): if source_path_data.path_type == PathType.softlink: link_type = LinkType.copy prefix_placehoder, file_mode = "", None elif...
def create_file_link_actions( cls, transaction_context, package_info, target_prefix, requested_link_type ): def get_prefix_replace(source_path_data): if source_path_data.path_type == PathType.softlink: link_type = LinkType.copy prefix_placehoder, file_mode = "", None elif...
https://github.com/conda/conda/issues/5588
conda install ../conda/bokeh-0.12.7dev3-py_0-noarch.tar.bz2 -p /Users/hsparra/milestone1_py36An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : osx-64 conda version : 4.3.21...
TypeError
def make_file_link_action(source_path_data): # TODO: this inner function is still kind of a mess noarch = package_info.repodata_record.noarch if noarch == NoarchType.python: sp_dir = transaction_context["target_site_packages_short_path"] if sp_dir is None: raise CondaError( ...
def make_file_link_action(source_path_data): # TODO: this inner function is still kind of a mess noarch = package_info.repodata_record.noarch if noarch == NoarchType.python: sp_dir = transaction_context["target_site_packages_short_path"] target_short_path = get_python_noarch_target_path(sour...
https://github.com/conda/conda/issues/5588
conda install ../conda/bokeh-0.12.7dev3-py_0-noarch.tar.bz2 -p /Users/hsparra/milestone1_py36An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : osx-64 conda version : 4.3.21...
TypeError
def _read_windows_registry(target_path): # pragma: no cover # HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun # HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun # returns value_value, value_type -or- None, None if target does not exist main_key, the_rest = target_path.sp...
def _read_windows_registry(target_path): # pragma: no cover # HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun # HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun # returns value_value, value_type -or- None, None if target does not exist main_key, the_rest = target_path.sp...
https://github.com/conda/conda/issues/7952
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "c:\users\wani\downloads\repos\conda\conda\exceptions.py", line 1001, in __call__ return func(*args, **kwargs) File "c:\users\wani\downloads\repos\conda\conda\cli\main.py", line 84, in _main exit_code = do_call(args, p...
ValueError
def init_long_path(target_path): win_ver, _, win_rev = context.os_distribution_name_version[1].split(".") # win10, build 14352 was the first preview release that supported this if int(win_ver) >= 10 and int(win_rev) >= 14352: prev_value, value_type = _read_windows_registry(target_path) if st...
def init_long_path(target_path): win_ver, _, win_rev = context.os_distribution_name_version[1].split(".") # win10, build 14352 was the first preview release that supported this if int(win_ver) >= 10 and int(win_rev) >= 14352: prev_value, value_type = _read_windows_registry(target_path) if pr...
https://github.com/conda/conda/issues/7952
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "c:\users\wani\downloads\repos\conda\conda\exceptions.py", line 1001, in __call__ return func(*args, **kwargs) File "c:\users\wani\downloads\repos\conda\conda\cli\main.py", line 84, in _main exit_code = do_call(args, p...
ValueError
def _load_site_packages(self): """ Load non-conda-installed python packages in the site-packages of the prefix. Python packages not handled by conda are installed via other means, like using pip or using python setup.py develop for local development. Packages found that are not handled by conda ar...
def _load_site_packages(self): """ Load non-conda-installed python packages in the site-packages of the prefix. Python packages not handled by conda are installed via other means, like using pip or using python setup.py develop for local development. Packages found that are not handled by conda ar...
https://github.com/conda/conda/issues/7914
Traceback (most recent call last): File "/Users/msarahan/miniconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1001, in __call__ return func(*args, **kwargs) File "/Users/msarahan/miniconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main exit_code = do_call(args, p) File "/Users/msarahan/...
conda._vendor.auxlib.exceptions.ValidationError
def make_raw_parameters_from_file(cls, filepath): with open(filepath, "r") as fh: try: ruamel_yaml = yaml_load(fh) except ScannerError as err: mark = err.problem_mark raise ConfigurationLoadError( filepath, " reason: invalid yaml a...
def make_raw_parameters_from_file(cls, filepath): with open(filepath, "r") as fh: try: ruamel_yaml = yaml_load(fh) except ScannerError as err: mark = err.problem_mark raise LoadError("Invalid YAML", filepath, mark.line, mark.column) return cls.make_raw_paramet...
https://github.com/conda/conda/issues/7242
Traceback (most recent call last): File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\cli\main.py", line 97, in main from ..activate import main as activator_main File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\activate.py", line 12, in <module> context.__init__() # oOn import, context does not include SE...
ruamel_yaml.reader.ReaderError
def _get_starting_path_list(self): path = self.environ.get("PATH", "") if on_win: # On Windows, the Anaconda Python interpreter prepends sys.prefix\Library\bin on # startup. It's a hack that allows users to avoid using the correct activation # procedure; a hack that needs to go away beca...
def _get_starting_path_list(self): path = self.environ["PATH"] if on_win: # On Windows, the Anaconda Python interpreter prepends sys.prefix\Library\bin on # startup. It's a hack that allows users to avoid using the correct activation # procedure; a hack that needs to go away because it d...
https://github.com/conda/conda/issues/7486
$ env -i bash --norc --noprofile bash-4.1$ /path/to/conda/anaconda3/bin/conda shell.posix activate # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/group_workspaces/cems2/fiduceo/Users/gholl/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 98, in mai...
KeyError
def should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy): # Monkey patch requests, per https://github.com/requests/requests/pull/4723 if url.startswith("file://"): return True try: return should_bypass_proxies_func(url, no_proxy) except TypeError: # For versio...
def should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy): # Monkey patch requests, per https://github.com/requests/requests/pull/4723 if url.startswith("file://"): return True return should_bypass_proxies_func(url, no_proxy)
https://github.com/conda/conda/issues/7506
~ $ conda update --all Solving environment: failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/Users/apple/anaconda/lib/python3.6/site-packages/conda/exceptions.py", line 819, in __call__ return func(*args, **kwargs) File "/Users/apple/anaconda/lib/python3.6/...
TypeError
def get_user_requests(self): """ return a list of user requested items. Each item is a dict with the following keys: 'date': the date and time running the command 'cmd': a list of argv of the actual command which was run 'action': install/remove/update 'specs': the specs being used """ ...
def get_user_requests(self): """ return a list of user requested items. Each item is a dict with the following keys: 'date': the date and time running the command 'cmd': a list of argv of the actual command which was run 'action': install/remove/update 'specs': the specs being used """ ...
https://github.com/conda/conda/issues/6691
$ conda --version conda 4.4.7 $ conda install -vvv numpy DEBUG conda.gateways.logging:set_verbosity(148): verbosity set to 3 Solving environment: ...working... DEBUG conda.core.solve:solve_final_state(140): solving prefix /scratch/mc3 specs_to_remove: frozenset() specs_to_add: frozenset({MatchSpec(name=LowerStrMatch('n...
conda.exceptions.CondaValueError
def get_reduced_index(prefix, channels, subdirs, specs): # # this block of code is a "combine" step intended to filter out redundant specs # # causes a problem with py.test tests/core/test_solve.py -k broken_install # specs_map = defaultdict(list) # for spec in specs: # specs_map[spec.name].appe...
def get_reduced_index(prefix, channels, subdirs, specs): # # this block of code is a "combine" step intended to filter out redundant specs # # causes a problem with py.test tests/core/test_solve.py -k broken_install # specs_map = defaultdict(list) # for spec in specs: # specs_map[spec.name].appe...
https://github.com/conda/conda/issues/6691
$ conda --version conda 4.4.7 $ conda install -vvv numpy DEBUG conda.gateways.logging:set_verbosity(148): verbosity set to 3 Solving environment: ...working... DEBUG conda.core.solve:solve_final_state(140): solving prefix /scratch/mc3 specs_to_remove: frozenset() specs_to_add: frozenset({MatchSpec(name=LowerStrMatch('n...
conda.exceptions.CondaValueError
def push_record(record): push_spec(MatchSpec(record.name)) for _spec in record.combined_depends: push_spec(_spec) if record.track_features: for ftr_name in record.track_features: push_spec(MatchSpec(track_features=ftr_name))
def push_record(record): for _spec in record.combined_depends: push_spec(_spec) if record.track_features: for ftr_name in record.track_features: push_spec(MatchSpec(track_features=ftr_name))
https://github.com/conda/conda/issues/6691
$ conda --version conda 4.4.7 $ conda install -vvv numpy DEBUG conda.gateways.logging:set_verbosity(148): verbosity set to 3 Solving environment: ...working... DEBUG conda.core.solve:solve_final_state(140): solving prefix /scratch/mc3 specs_to_remove: frozenset() specs_to_add: frozenset({MatchSpec(name=LowerStrMatch('n...
conda.exceptions.CondaValueError
def cast(val, typ): log = logging.getLogger(__name__) log.debug((val, typ)) if " or " in typ: for t in typ.split(" or "): try: return cast(val, t) except TqdmTypeError: pass raise TqdmTypeError(val + " : " + typ) # sys.stderr.write...
def cast(val, typ): # sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n') if typ == "bool": if (val == "True") or (val == ""): return True elif val == "False": return False else: raise TqdmTypeError(val + " : " + typ) try: ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def posix_pipe( fin, fout, delim="\n", buf_size=256, callback=lambda int: None, # pragma: no cover ): """ Params ------ fin : file with `read(buf_size : int)` method fout : file with `write` (and optionally `flush`) methods. callback : function(int), e.g.: `tqdm.update` ...
def posix_pipe( fin, fout, delim="\n", buf_size=256, callback=lambda int: None, # pragma: no cover ): """ Params ------ fin : file with `read(buf_size : int)` method fout : file with `write` (and optionally `flush`) methods. callback : function(int), e.g.: `tqdm.update` ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def main(fp=sys.stderr): """ Paramters (internal use only) --------- fp : file-like object for tqdm """ try: log = sys.argv.index("--log") except ValueError: logLevel = "INFO" else: # sys.argv.pop(log) # logLevel = sys.argv.pop(log) logLevel = sys...
def main(fp=sys.stderr): """ Paramters (internal use only) --------- fp : file-like object for tqdm """ d = tqdm.__init__.__doc__ + CLI_EXTRA_DOC opt_types = dict(RE_OPTS.findall(d)) for o in UNSUPPORTED_OPTS: opt_types.pop(o) # d = RE_OPTS.sub(r' --\1=<\1> : \2', d) ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def format_sizeof(num, suffix="", divisor=1000): """ Formats a number (greater than unity) with SI Order of Magnitude prefixes. Parameters ---------- num : float Number ( >= 1) to format. suffix : str, optional Post-postfix [default: '']. divisor : float, optionl ...
def format_sizeof(num, suffix="", divisor=1000): """ Formats a number (greater than unity) with SI Order of Magnitude prefixes. Parameters ---------- num : float Number ( >= 1) to format. suffix : str, optional Post-postfix [default: '']. divisor : float, optionl ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def format_meter( n, total, elapsed, ncols=None, prefix="", ascii=False, unit="it", unit_scale=False, rate=None, bar_format=None, postfix=None, unit_divisor=1000, ): """ Return a string-based progress bar given some parameters Parameters ---------- n ...
def format_meter( n, total, elapsed, ncols=None, prefix="", ascii=False, unit="it", unit_scale=False, rate=None, bar_format=None, postfix=None, unit_divisor=1000, ): """ Return a string-based progress bar given some parameters Parameters ---------- n ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __new__(cls, *args, **kwargs): # Create a new instance instance = object.__new__(cls) # Add to the list of instances if "_instances" not in cls.__dict__: cls._instances = WeakSet() if "_lock" not in cls.__dict__: cls._lock = TqdmDefaultWriteLock() with cls._lock: cls....
def __new__(cls, *args, **kwargs): # Create a new instance instance = object.__new__(cls) # Add to the list of instances if "_instances" not in cls.__dict__: cls._instances = WeakSet() cls._instances.add(instance) # Create the monitoring thread if cls.monitor_interval and (cls.monito...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _get_free_pos(cls, instance=None): """Skips specified instance""" positions = set(abs(inst.pos) for inst in cls._instances if inst is not instance) return min(set(range(len(positions) + 1)).difference(positions))
def _get_free_pos(cls, instance=None): """Skips specified instance""" try: return max(inst.pos for inst in cls._instances if inst is not instance) + 1 except ValueError as e: if "arg is an empty sequence" in str(e): return 0 raise # pragma: no cover
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _decr_instances(cls, instance): """ Remove from list and reposition other bars so that newer bars won't overlap previous bars """ with cls._lock: try: cls._instances.remove(instance) except KeyError: if not instance.gui: # pragma: no cover ...
def _decr_instances(cls, instance): """ Remove from list and reposition other bars so that newer bars won't overlap previous bars """ try: # in case instance was explicitly positioned, it won't be in set cls._instances.remove(instance) for inst in cls._instances: if inst...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def write(cls, s, file=None, end="\n", nolock=False): """ Print a message via tqdm (without overlap with bars) """ fp = file if file is not None else sys.stdout with cls.external_write_mode(file=file, nolock=nolock): # Write the message fp.write(s) fp.write(end)
def write(cls, s, file=None, end="\n"): """ Print a message via tqdm (without overlap with bars) """ fp = file if file is not None else sys.stdout # Clear all bars inst_cleared = [] for inst in getattr(cls, "_instances", []): # Clear instance if in the target output file # o...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def pandas(tclass, *targs, **tkwargs): """ Registers the given `tqdm` class with pandas.core. ( frame.DataFrame | series.Series | groupby.DataFrameGroupBy | groupby.SeriesGroupBy ).progress_apply A new instance will be create every time `progress_apply` is cal...
def pandas(tclass, *targs, **tkwargs): """ Registers the given `tqdm` class with pandas.core. ( frame.DataFrame | series.Series | groupby.DataFrameGroupBy | groupby.SeriesGroupBy ).progress_apply A new instance will be create every time `progress_apply` is ca...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def inner_generator(df_function="apply"): def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. **kwargs : optional ...
def inner_generator(df_function="apply"): def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. *args, *kwargs : optional ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. **kwargs : optional Transmitted to `df.apply()`. """ # Precompute total iterations ...
def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. *args, *kwargs : optional Transmitted to `df.apply()`. """ # Precompute total iterations...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def wrapper(*args, **kwargs): # update tbar correctly # it seems `pandas apply` calls `func` twice # on the first column/row to decide whether it can # take a fast or slow code path; so stop when t.total==t.n t.update(n=1 if t.total and t.n < t.total else 0) return func(*args, **kwargs)
def wrapper(*args, **kwargs): t.update() return func(*args, **kwargs)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __init__( self, iterable=None, desc=None, total=None, leave=True, file=None, ncols=None, mininterval=0.1, maxinterval=10.0, miniters=None, ascii=None, disable=False, unit="it", unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, ...
def __init__( self, iterable=None, desc=None, total=None, leave=True, file=None, ncols=None, mininterval=0.1, maxinterval=10.0, miniters=None, ascii=None, disable=False, unit="it", unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __repr__(self, elapsed=None): return self.format_meter( self.n, self.total, elapsed if elapsed is not None else self._time() - self.start_t, self.dynamic_ncols(self.fp) if self.dynamic_ncols else self.ncols, self.desc, self.ascii, self.unit, self.u...
def __repr__(self): return self.format_meter( self.n, self.total, self._time() - self.start_t, self.dynamic_ncols(self.fp) if self.dynamic_ncols else self.ncols, self.desc, self.ascii, self.unit, self.unit_scale, 1 / self.avg_time if self.avg_t...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __lt__(self, other): return abs(self.pos) < abs(other.pos)
def __lt__(self, other): return self.pos < other.pos
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __eq__(self, other): return abs(self.pos) == abs(other.pos)
def __eq__(self, other): return self.pos == other.pos
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __iter__(self): """Backward-compatibility to use: for x in tqdm(iterable)""" # Inlining instance variables as locals (speed optimisation) iterable = self.iterable # If the bar is disabled, then just walk the iterable # (note: keep this check outside the loop for performance) if self.disabl...
def __iter__(self): """Backward-compatibility to use: for x in tqdm(iterable)""" # Inlining instance variables as locals (speed optimisation) iterable = self.iterable # If the bar is disabled, then just walk the iterable # (note: keep this check outside the loop for performance) if self.disabl...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def update(self, n=1): """ Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Initialise >>> for current_buffer in stream: ... ... ... t.update(len(current_buffer)) >>> t.close() The last line is highly recommend...
def update(self, n=1): """ Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Initialise >>> for current_buffer in stream: ... ... ... t.update(len(current_buffer)) >>> t.close() The last line is highly recommend...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def close(self): """ Cleanup and (if leave=False) close the progressbar. """ if self.disable: return # Prevent multiple closures self.disable = True # decrement instance pos and remove from internal set pos = abs(self.pos) self._decr_instances(self) # GUI mode if n...
def close(self): """ Cleanup and (if leave=False) close the progressbar. """ if self.disable: return # Prevent multiple closures self.disable = True # decrement instance pos and remove from internal set pos = self.pos self._decr_instances(self) # GUI mode if not ha...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def set_description(self, desc=None, refresh=True): """ Set/modify description of the progress bar. Parameters ---------- desc : str, optional refresh : bool, optional Forces refresh [default: True]. """ self.desc = desc + ": " if desc else "" if refresh: self.refre...
def set_description(self, desc=None): """ Set/modify description of the progress bar. """ self.desc = desc + ": " if desc else ""
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def set_postfix(self, ordered_dict=None, refresh=True, **kwargs): """ Set/modify postfix (additional stats) with automatic formatting based on datatype. Parameters ---------- ordered_dict : dict or OrderedDict, optional refresh : bool, optional Forces refresh [default: True]. k...
def set_postfix(self, ordered_dict=None, **kwargs): """ Set/modify postfix (additional stats) with automatic formatting based on datatype. """ # Sort in alphabetical order to be more deterministic postfix = _OrderedDict([] if ordered_dict is None else ordered_dict) for key in sorted(kwargs.k...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def moveto(self, n): self.fp.write(_unicode("\n" * n + _term_move_up() * -n)) self.fp.flush()
def moveto(self, n): self.fp.write(_unicode("\n" * n + _term_move_up() * -n))
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def clear(self, nolock=False): """ Clear current bar display """ if self.disable: return if not nolock: self._lock.acquire() self.moveto(abs(self.pos)) self.sp("") self.fp.write("\r") # place cursor back at the beginning of line self.moveto(-abs(self.pos)) if no...
def clear(self, nomove=False): """ Clear current bar display """ if self.disable: return if not nomove: self.moveto(self.pos) # clear up the bar (can't rely on sp('')) self.fp.write("\r") self.fp.write(" " * (self.ncols if self.ncols else 10)) self.fp.write("\r") # ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def refresh(self, nolock=False): """ Force refresh the display of this bar """ if self.disable: return if not nolock: self._lock.acquire() self.moveto(abs(self.pos)) self.sp(self.__repr__()) self.moveto(-abs(self.pos)) if not nolock: self._lock.release()
def refresh(self): """ Force refresh the display of this bar """ if self.disable: return self.moveto(self.pos) # clear up this line's content (whatever there was) self.clear(nomove=True) # Print current/last bar state self.fp.write(self.__repr__()) self.moveto(-self.pos)...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _is_utf(encoding): try: "\u2588\u2589".encode(encoding) except UnicodeEncodeError: # pragma: no cover return False except Exception: # pragma: no cover try: return encoding.lower().startswith("utf-") or ("U8" == encoding) except: return False ...
def _is_utf(encoding): return encoding.lower().startswith("utf-") or ("U8" == encoding)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _supports_unicode(fp): try: return _is_utf(fp.encoding) except AttributeError: return False
def _supports_unicode(file): return ( _is_utf(file.encoding) if ( getattr(file, "encoding", None) or # FakeStreams from things like bpython-curses can lie getattr(file, "interface", None) ) else False ) # pragma: no cover
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _environ_cols_windows(fp): # pragma: no cover try: from ctypes import windll, create_string_buffer import struct from sys import stdin, stdout io_handle = -12 # assume stderr if fp == stdin: io_handle = -10 elif fp == stdout: io_handle =...
def _environ_cols_windows(fp): # pragma: no cover try: from ctypes import windll, create_string_buffer import struct from sys import stdin, stdout io_handle = None if fp == stdin: io_handle = -10 elif fp == stdout: io_handle = -11 els...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _environ_cols_tput(*_): # pragma: no cover """cygwin xterm (windows)""" try: import shlex cols = int(subprocess.check_call(shlex.split("tput cols"))) # rows = int(subprocess.check_call(shlex.split('tput lines'))) return cols except: pass return None
def _environ_cols_tput(*args): # pragma: no cover """cygwin xterm (windows)""" try: import shlex cols = int(subprocess.check_call(shlex.split("tput cols"))) # rows = int(subprocess.check_call(shlex.split('tput lines'))) return cols except: pass return None
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __reduce__(self): items = [[k, self[k]] for k in self] inst_dict = vars(self).copy() inst_dict.pop("_keys", None) return self.__class__, (items,), inst_dict
def __reduce__(self): items = [[k, self[k]] for k in self] inst_dict = vars(self).copy() inst_dict.pop("_keys", None) return (self.__class__, (items,), inst_dict)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def status_printer(_, total=None, desc=None): """ Manage the printing of an IPython/Jupyter Notebook progress bar widget. """ # Fallback to text bar if there's no total # DEPRECATED: replaced with an 'info' style bar # if not total: # return super(tqdm_notebook, tqdm_notebook).status_prin...
def status_printer(_, total=None, desc=None): """ Manage the printing of an IPython/Jupyter Notebook progress bar widget. """ # Fallback to text bar if there's no total # DEPRECATED: replaced with an 'info' style bar # if not total: # return super(tqdm_notebook, tqdm_notebook).status_prin...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def print_status(s="", close=False, bar_style=None, desc=None): # Note: contrary to native tqdm, s='' does NOT clear bar # goal is to keep all infos if error happens so user knows # at which iteration the loop failed. # Clear previous output (really necessary?) # clear_output(wait=1) # Get cur...
def print_status(s="", close=False, bar_style=None): # Note: contrary to native tqdm, s='' does NOT clear bar # goal is to keep all infos if error happens so user knows # at which iteration the loop failed. # Clear previous output (really necessary?) # clear_output(wait=1) # Get current iterat...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def cast(val, typ): # sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n') if typ == "bool": if (val == "True") or (val == ""): return True elif val == "False": return False else: raise TqdmTypeError(val + " : " + typ) try: ...
def cast(val, typ): log = logging.getLogger(__name__) log.debug((val, typ)) if " or " in typ: for t in typ.split(" or "): try: return cast(val, t) except TqdmTypeError: pass raise TqdmTypeError(val + " : " + typ) # sys.stderr.write...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def posix_pipe( fin, fout, delim="\n", buf_size=256, callback=lambda int: None, # pragma: no cover ): """ Params ------ fin : file with `read(buf_size : int)` method fout : file with `write` (and optionally `flush`) methods. callback : function(int), e.g.: `tqdm.update` ...
def posix_pipe( fin, fout, delim="\n", buf_size=256, callback=lambda int: None, # pragma: no cover ): """ Params ------ fin : file with `read(buf_size : int)` method fout : file with `write` (and optionally `flush`) methods. callback : function(int), e.g.: `tqdm.update` ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def main(fp=sys.stderr): """ Paramters (internal use only) --------- fp : file-like object for tqdm """ d = tqdm.__init__.__doc__ + CLI_EXTRA_DOC opt_types = dict(RE_OPTS.findall(d)) for o in UNSUPPORTED_OPTS: opt_types.pop(o) # d = RE_OPTS.sub(r' --\1=<\1> : \2', d) ...
def main(fp=sys.stderr): """ Paramters (internal use only) --------- fp : file-like object for tqdm """ try: log = sys.argv.index("--log") except ValueError: logLevel = "INFO" else: # sys.argv.pop(log) # logLevel = sys.argv.pop(log) logLevel = sys...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def format_sizeof(num, suffix="", divisor=1000): """ Formats a number (greater than unity) with SI Order of Magnitude prefixes. Parameters ---------- num : float Number ( >= 1) to format. suffix : str, optional Post-postfix [default: '']. divisor : float, optionl ...
def format_sizeof(num, suffix="", divisor=1000): """ Formats a number (greater than unity) with SI Order of Magnitude prefixes. Parameters ---------- num : float Number ( >= 1) to format. suffix : str, optional Post-postfix [default: '']. divisor : float, optionl ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def format_meter( n, total, elapsed, ncols=None, prefix="", ascii=False, unit="it", unit_scale=False, rate=None, bar_format=None, postfix=None, unit_divisor=1000, ): """ Return a string-based progress bar given some parameters Parameters ---------- n ...
def format_meter( n, total, elapsed, ncols=None, prefix="", ascii=False, unit="it", unit_scale=False, rate=None, bar_format=None, postfix=None, unit_divisor=1000, ): """ Return a string-based progress bar given some parameters Parameters ---------- n ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __new__(cls, *args, **kwargs): # Create a new instance instance = object.__new__(cls) # Add to the list of instances if "_instances" not in cls.__dict__: cls._instances = WeakSet() cls._instances.add(instance) # Create the monitoring thread if cls.monitor_interval and (cls.monito...
def __new__(cls, *args, **kwargs): # Create a new instance instance = object.__new__(cls) # Add to the list of instances if "_instances" not in cls.__dict__: cls._instances = WeakSet() if "_lock" not in cls.__dict__: cls._lock = TqdmDefaultWriteLock() with cls._lock: cls....
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _get_free_pos(cls, instance=None): """Skips specified instance""" try: return max(inst.pos for inst in cls._instances if inst is not instance) + 1 except ValueError as e: if "arg is an empty sequence" in str(e): return 0 raise # pragma: no cover
def _get_free_pos(cls, instance=None): """Skips specified instance""" positions = set(abs(inst.pos) for inst in cls._instances if inst is not instance) return min(set(range(len(positions) + 1)).difference(positions))
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _decr_instances(cls, instance): """ Remove from list and reposition other bars so that newer bars won't overlap previous bars """ try: # in case instance was explicitly positioned, it won't be in set cls._instances.remove(instance) for inst in cls._instances: if inst...
def _decr_instances(cls, instance): """ Remove from list and reposition other bars so that newer bars won't overlap previous bars """ with cls._lock: try: cls._instances.remove(instance) except KeyError: if not instance.gui: # pragma: no cover ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def write(cls, s, file=None, end="\n"): """ Print a message via tqdm (without overlap with bars) """ fp = file if file is not None else sys.stdout # Clear all bars inst_cleared = [] for inst in getattr(cls, "_instances", []): # Clear instance if in the target output file # o...
def write(cls, s, file=None, end="\n", nolock=False): """ Print a message via tqdm (without overlap with bars) """ fp = file if file is not None else sys.stdout with cls.external_write_mode(file=file, nolock=nolock): # Write the message fp.write(s) fp.write(end)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def pandas(tclass, *targs, **tkwargs): """ Registers the given `tqdm` class with pandas.core. ( frame.DataFrame | series.Series | groupby.DataFrameGroupBy | groupby.SeriesGroupBy ).progress_apply A new instance will be create every time `progress_apply` is ca...
def pandas(tclass, *targs, **tkwargs): """ Registers the given `tqdm` class with pandas.core. ( frame.DataFrame | series.Series | groupby.DataFrameGroupBy | groupby.SeriesGroupBy ).progress_apply A new instance will be create every time `progress_apply` is cal...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def inner_generator(df_function="apply"): def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. *args, *kwargs : optional ...
def inner_generator(df_function="apply"): def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. **kwargs : optional ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. *args, *kwargs : optional Transmitted to `df.apply()`. """ # Precompute total iterations...
def inner(df, func, *args, **kwargs): """ Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. **kwargs : optional Transmitted to `df.apply()`. """ # Precompute total iterations ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def wrapper(*args, **kwargs): t.update() return func(*args, **kwargs)
def wrapper(*args, **kwargs): # update tbar correctly # it seems `pandas apply` calls `func` twice # on the first column/row to decide whether it can # take a fast or slow code path; so stop when t.total==t.n t.update(n=1 if t.total and t.n < t.total else 0) return func(*args, **kwargs)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __init__( self, iterable=None, desc=None, total=None, leave=True, file=None, ncols=None, mininterval=0.1, maxinterval=10.0, miniters=None, ascii=None, disable=False, unit="it", unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, ...
def __init__( self, iterable=None, desc=None, total=None, leave=True, file=None, ncols=None, mininterval=0.1, maxinterval=10.0, miniters=None, ascii=None, disable=False, unit="it", unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __repr__(self): return self.format_meter( self.n, self.total, self._time() - self.start_t, self.dynamic_ncols(self.fp) if self.dynamic_ncols else self.ncols, self.desc, self.ascii, self.unit, self.unit_scale, 1 / self.avg_time if self.avg_t...
def __repr__(self, elapsed=None): return self.format_meter( self.n, self.total, elapsed if elapsed is not None else self._time() - self.start_t, self.dynamic_ncols(self.fp) if self.dynamic_ncols else self.ncols, self.desc, self.ascii, self.unit, self.u...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __lt__(self, other): return self.pos < other.pos
def __lt__(self, other): return abs(self.pos) < abs(other.pos)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __eq__(self, other): return self.pos == other.pos
def __eq__(self, other): return abs(self.pos) == abs(other.pos)
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __iter__(self): """Backward-compatibility to use: for x in tqdm(iterable)""" # Inlining instance variables as locals (speed optimisation) iterable = self.iterable # If the bar is disabled, then just walk the iterable # (note: keep this check outside the loop for performance) if self.disabl...
def __iter__(self): """Backward-compatibility to use: for x in tqdm(iterable)""" # Inlining instance variables as locals (speed optimisation) iterable = self.iterable # If the bar is disabled, then just walk the iterable # (note: keep this check outside the loop for performance) if self.disabl...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def update(self, n=1): """ Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Initialise >>> for current_buffer in stream: ... ... ... t.update(len(current_buffer)) >>> t.close() The last line is highly recommend...
def update(self, n=1): """ Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Initialise >>> for current_buffer in stream: ... ... ... t.update(len(current_buffer)) >>> t.close() The last line is highly recommend...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def close(self): """ Cleanup and (if leave=False) close the progressbar. """ if self.disable: return # Prevent multiple closures self.disable = True # decrement instance pos and remove from internal set pos = self.pos self._decr_instances(self) # GUI mode if not ha...
def close(self): """ Cleanup and (if leave=False) close the progressbar. """ if self.disable: return # Prevent multiple closures self.disable = True # decrement instance pos and remove from internal set pos = abs(self.pos) self._decr_instances(self) # GUI mode if n...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def set_description(self, desc=None): """ Set/modify description of the progress bar. """ self.desc = desc + ": " if desc else ""
def set_description(self, desc=None, refresh=True): """ Set/modify description of the progress bar. Parameters ---------- desc : str, optional refresh : bool, optional Forces refresh [default: True]. """ self.desc = desc + ": " if desc else "" if refresh: self.refre...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def set_postfix(self, ordered_dict=None, **kwargs): """ Set/modify postfix (additional stats) with automatic formatting based on datatype. """ # Sort in alphabetical order to be more deterministic postfix = _OrderedDict([] if ordered_dict is None else ordered_dict) for key in sorted(kwargs.k...
def set_postfix(self, ordered_dict=None, refresh=True, **kwargs): """ Set/modify postfix (additional stats) with automatic formatting based on datatype. Parameters ---------- ordered_dict : dict or OrderedDict, optional refresh : bool, optional Forces refresh [default: True]. k...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def moveto(self, n): self.fp.write(_unicode("\n" * n + _term_move_up() * -n))
def moveto(self, n): self.fp.write(_unicode("\n" * n + _term_move_up() * -n)) self.fp.flush()
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def clear(self, nomove=False): """ Clear current bar display """ if self.disable: return if not nomove: self.moveto(self.pos) # clear up the bar (can't rely on sp('')) self.fp.write("\r") self.fp.write(" " * (self.ncols if self.ncols else 10)) self.fp.write("\r") # ...
def clear(self, nolock=False): """ Clear current bar display """ if self.disable: return if not nolock: self._lock.acquire() self.moveto(abs(self.pos)) self.sp("") self.fp.write("\r") # place cursor back at the beginning of line self.moveto(-abs(self.pos)) if no...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def refresh(self): """ Force refresh the display of this bar """ if self.disable: return self.moveto(self.pos) # clear up this line's content (whatever there was) self.clear(nomove=True) # Print current/last bar state self.fp.write(self.__repr__()) self.moveto(-self.pos)...
def refresh(self, nolock=False): """ Force refresh the display of this bar """ if self.disable: return if not nolock: self._lock.acquire() self.moveto(abs(self.pos)) self.sp(self.__repr__()) self.moveto(-abs(self.pos)) if not nolock: self._lock.release()
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _is_utf(encoding): return encoding.lower().startswith("utf-") or ("U8" == encoding)
def _is_utf(encoding): try: "\u2588\u2589".encode(encoding) except UnicodeEncodeError: # pragma: no cover return False except Exception: # pragma: no cover try: return encoding.lower().startswith("utf-") or ("U8" == encoding) except: return False ...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _supports_unicode(file): return ( _is_utf(file.encoding) if ( getattr(file, "encoding", None) or # FakeStreams from things like bpython-curses can lie getattr(file, "interface", None) ) else False ) # pragma: no cover
def _supports_unicode(fp): try: return _is_utf(fp.encoding) except AttributeError: return False
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _environ_cols_windows(fp): # pragma: no cover try: from ctypes import windll, create_string_buffer import struct from sys import stdin, stdout io_handle = None if fp == stdin: io_handle = -10 elif fp == stdout: io_handle = -11 els...
def _environ_cols_windows(fp): # pragma: no cover try: from ctypes import windll, create_string_buffer import struct from sys import stdin, stdout io_handle = -12 # assume stderr if fp == stdin: io_handle = -10 elif fp == stdout: io_handle =...
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def _environ_cols_tput(*args): # pragma: no cover """cygwin xterm (windows)""" try: import shlex cols = int(subprocess.check_call(shlex.split("tput cols"))) # rows = int(subprocess.check_call(shlex.split('tput lines'))) return cols except: pass return None
def _environ_cols_tput(*_): # pragma: no cover """cygwin xterm (windows)""" try: import shlex cols = int(subprocess.check_call(shlex.split("tput cols"))) # rows = int(subprocess.check_call(shlex.split('tput lines'))) return cols except: pass return None
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def __reduce__(self): items = [[k, self[k]] for k in self] inst_dict = vars(self).copy() inst_dict.pop("_keys", None) return (self.__class__, (items,), inst_dict)
def __reduce__(self): items = [[k, self[k]] for k in self] inst_dict = vars(self).copy() inst_dict.pop("_keys", None) return self.__class__, (items,), inst_dict
https://github.com/conda/conda/issues/7040
[s1758208@login04(eddie) ~]$ conda create -n test [s1758208@login04(eddie) ~]$ conda activate test (test) [s1758208@login04(eddie) ~]$ conda install python Solving environment: done ## Package Plan ## environment location: /exports/csce/eddie/ph/groups/rbm_ml/michael/myconda/envs/test added / updated specs: - python...
RuntimeError
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix fetch_specs = [] for spec in specs: if spec == "@EXPLICIT": continue if not is_url(spec): spec = unquote(pat...
def explicit( specs, prefix, verbose=False, force_extract=True, index_args=None, index=None ): actions = defaultdict(list) actions["PREFIX"] = prefix fetch_specs = [] for spec in specs: if spec == "@EXPLICIT": continue if not is_url(spec): spec = unquote(pat...
https://github.com/conda/conda/issues/7094
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 812, in __call__ return func(*args, **kwargs) File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 78, in _main exit_code = do_call(args...
AssertionError
def clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda, conda-env and any package that depends on them drecs = linked_data(prefix1) filter = {} found = True whi...
def clone_env(prefix1, prefix2, verbose=True, quiet=False, index_args=None): """ clone existing prefix1 into new prefix2 """ untracked_files = untracked(prefix1) # Discard conda, conda-env and any package that depends on them drecs = linked_data(prefix1) filter = {} found = True whi...
https://github.com/conda/conda/issues/7094
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 812, in __call__ return func(*args, **kwargs) File "/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 78, in _main exit_code = do_call(args...
AssertionError
def box(self, instance, instance_type, val): if isinstance(val, string_types): val = val.replace(" ", ",").split(",") val = tuple(f for f in (ff.strip() for ff in val) if f) return super(_FeaturesField, self).box(instance, instance_type, val)
def box(self, instance, instance_type, val): if isinstance(val, string_types): val = val.replace(" ", ",").split(",") return super(_FeaturesField, self).box(instance, instance_type, val)
https://github.com/conda/conda/issues/6860
(base) [nwani@centos7-nwani scratch]$ conda install scratch -c local Solving environment: failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/nwani/m2/lib/python2.7/site-packages/conda/exceptions.py", line 789, in __call__ return func(*args, **kwargs) Fil...
RuntimeError
def _convert(self, value): if not value: return frozenset() elif isinstance(value, string_types): return frozenset( f for f in (ff.strip() for ff in value.replace(" ", ",").split(",")) if f ) else: return frozenset(f for f in (ff.strip() for ff in value) if f)
def _convert(self, value): if isinstance(value, frozenset): return value elif not value: return frozenset() elif isinstance(value, string_types): return frozenset(value.replace(" ", ",").split(",")) else: return frozenset(value)
https://github.com/conda/conda/issues/6860
(base) [nwani@centos7-nwani scratch]$ conda install scratch -c local Solving environment: failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/nwani/m2/lib/python2.7/site-packages/conda/exceptions.py", line 789, in __call__ return func(*args, **kwargs) Fil...
RuntimeError
def push_MatchSpec(self, C, spec): spec = MatchSpec(spec) sat_name = self.to_sat_name(spec) m = C.from_name(sat_name) if m is not None: # the spec has already been pushed onto the clauses stack return sat_name simple = spec._is_single() nm = spec.get_exact_value("name") tf =...
def push_MatchSpec(self, C, spec): spec = MatchSpec(spec) sat_name = self.to_sat_name(spec) m = C.from_name(sat_name) if m is not None: # the spec has already been pushed onto the clauses stack return sat_name simple = spec._is_single() nm = spec.get_exact_value("name") tf =...
https://github.com/conda/conda/issues/6860
(base) [nwani@centos7-nwani scratch]$ conda install scratch -c local Solving environment: failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/nwani/m2/lib/python2.7/site-packages/conda/exceptions.py", line 789, in __call__ return func(*args, **kwargs) Fil...
RuntimeError
def __str__(self): try: return text_type(self.message % self._kwargs) except: debug_message = "\n".join( ( "class: " + self.__class__.__name__, "message:", self.message, "kwargs:", text_type(self._kwargs)...
def __str__(self): try: return text_type(self.message % self._kwargs) except TypeError: # TypeError: not enough arguments for format string debug_message = "\n".join( ( "class: " + self.__class__.__name__, "message:", self.messa...
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def dump_map(self): result = dict((k, v) for k, v in vars(self).items() if not k.startswith("_")) result.update( exception_type=text_type(type(self)), exception_name=self.__class__.__name__, message=text_type(self), error=repr(self), caused_by=repr(self._caused_by), ...
def dump_map(self): result = dict((k, v) for k, v in iteritems(vars(self)) if not k.startswith("_")) result.update( exception_type=text_type(type(self)), exception_name=self.__class__.__name__, message=text_type(self), error=repr(self), caused_by=repr(self._caused_by), ...
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def _finalize(self, commands, ext): commands = concatv(commands, ("",)) # add terminating newline if ext is None: output = self.command_join.join(commands) if PY2: return ensure_binary(output) return output elif ext: with NamedTemporaryFile("w+b", suffix=ext, del...
def _finalize(self, commands, ext): commands = concatv(commands, ("",)) # add terminating newline if ext is None: return self.command_join.join(commands) elif ext: with NamedTemporaryFile("w+b", suffix=ext, delete=False) as tf: # the default mode is 'w+b', and universal new line...
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def stdout_json(d): print(json_dump(d))
def stdout_json(d): import json from .._vendor.auxlib.entity import EntityEncoder json.dump(d, sys.stdout, indent=2, sort_keys=True, cls=EntityEncoder) sys.stdout.write("\n")
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def main(*args): # conda.common.compat contains only stdlib imports from ..common.compat import ensure_text_type # , init_std_stream_encoding # init_std_stream_encoding() if not args: args = sys.argv args = tuple(ensure_text_type(s) for s in args) if len(args) > 1: try: ...
def main(*args): if not args: args = sys.argv args = tuple(_ensure_text_type(s) for s in args) if len(args) > 1: try: argv1 = args[1].strip() if argv1.startswith("shell."): from ..activate import main as activator_main return activat...
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def json_dump(object): return ensure_text_type( json.dumps( object, indent=2, sort_keys=True, separators=(",", ": "), cls=EntityEncoder ) )
def json_dump(object): return json.dumps( object, indent=2, sort_keys=True, separators=(",", ": "), cls=EntityEncoder )
https://github.com/conda/conda/issues/6899
$ source ~/anaconda/bin/activate Traceback (most recent call last): File "/home/ondrej/anaconda/lib/python2.7/site-packages/conda/gateways/logging.py", line 64, in emit msg = self.format(record) File "/home/ondrej/anaconda/lib/python2.7/logging/__init__.py", line 734, in format return fmt.format(record) File "/home/ond...
ValueError
def rename(source_path, destination_path, force=False): if lexists(destination_path) and force: rm_rf(destination_path) if lexists(source_path): log.trace("renaming %s => %s", source_path, destination_path) try: os_rename(source_path, destination_path) except Environm...
def rename(source_path, destination_path, force=False): if lexists(destination_path) and force: rm_rf(destination_path) if lexists(source_path): log.trace("renaming %s => %s", source_path, destination_path) try: os_rename(source_path, destination_path) except Environm...
https://github.com/conda/conda/issues/6811
<<HTTPS 200 OK < Accept-Ranges: bytes < Content-Disposition: attachment; filename="six-1.11.0-py35h423b573_1.tar.bz2"; filename*=UTF-8''six-1.11.0-py35h423b573_1.tar.bz2 < Content-Type: application/x-tar < Date: Mon, 29 Jan 2018 11:43:42 GMT < ETag: "576d38abfcb7ceb3b323b802b1fec665" < Last-Modified: Sat, 21 Oct 2017 1...
conda.CondaMultiError
def list_parameters(self): UNLISTED_PARAMETERS = ( "bld_path", "conda_build", "croot", "debug", "default_python", "dry_run", "enable_private_envs", "error_upload_url", # should remain undocumented "force_32bit", "ignore_pinned", ...
def list_parameters(self): UNLISTED_PARAMETERS = ( "bld_path", "conda_build", "croot", "debug", "default_python", "dry_run", "enable_private_envs", "error_upload_url", # should remain undocumented "force_32bit", "ignore_pinned", ...
https://github.com/conda/conda/issues/6882
% conda create -n no-ipython humidity -c davidmertz -y # Silly example package [... creating ...] % conda activate no-ipython (no-ipython) % ipython Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Intera...
ModuleNotFoundError
def get_help_dict(): # this is a function so that most of the time it's not evaluated and loaded into memory return frozendict( { "add_anaconda_token": dals(""" In conjunction with the anaconda command-line client (installed with `conda install anaconda-client`), and ...
def get_help_dict(): # this is a function so that most of the time it's not evaluated and loaded into memory return frozendict( { "add_anaconda_token": dals(""" In conjunction with the anaconda command-line client (installed with `conda install anaconda-client`), and ...
https://github.com/conda/conda/issues/6882
% conda create -n no-ipython humidity -c davidmertz -y # Silly example package [... creating ...] % conda activate no-ipython (no-ipython) % ipython Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Intera...
ModuleNotFoundError