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 get_param_cached(self, key):
resolved_key = rospy.names.resolve_name(key)
try:
# check for value in the parameter server cache
return rospy.impl.paramserver.get_param_server_cache().get(resolved_key)
except KeyError:
# first access, make call to parameter server
code, msg... | def get_param_cached(self, key):
resolved_key = rospy.names.resolve_name(key)
try:
# check for value in the parameter server cache
return rospy.impl.paramserver.get_param_server_cache().get(resolved_key)
except KeyError:
# first access, make call to parameter server
with self... | https://github.com/ros/ros_comm/issues/1913 | [rospy.rosout][ERROR] 2020-03-18 22:57:59,303: Unable to report rosout: __exit__
Traceback (most recent call last):
File "/home/robomaker/workspace/applications/robot-application/dependencies/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/rosout.py", line 91, in _rosout
disable_topics_ = rospy.get_param_cached(... | AttributeError |
def _rostopic_list_group_by_host(master, pubs, subs):
"""
Build up maps for hostname to topic list per hostname
:returns: publishers host map, subscribers host map, ``{str: set(str)}, {str: set(str)}``
"""
def build_map(master, state, uricache):
tmap = {}
for topic, ttype, tnodes in... | def _rostopic_list_group_by_host(master, pubs, subs):
"""
Build up maps for hostname to topic list per hostname
:returns: publishers host map, subscribers host map, ``{str: set(str)}, {str: set(str)}``
"""
def build_map(master, state, uricache):
tmap = {}
for topic, ttype, tnodes in... | https://github.com/ros/ros_comm/issues/1758 | Host [vboxros]:
Traceback (most recent call last):
File "/opt/ros/melodic/bin/rostopic", line 35, in <module>
rostopic.rostopicmain()
File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 2119, in rostopicmain
_rostopic_cmd_list(argv)
File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/... | ValueError |
def build_map(master, state, uricache):
tmap = {}
for topic, ttype, tnodes in state:
for p in tnodes:
if not p in uricache:
uricache[p] = master.lookupNode(p)
uri = uricache[p]
puri = urlparse(uri)
if not puri.hostname in tmap:
... | def build_map(master, state, uricache):
tmap = {}
for topic, ttype, tnodes in state:
for p in tnodes:
if not p in uricache:
uricache[p] = master.lookupNode(p)
uri = uricache[p]
puri = urlparse(uri)
if not puri.hostname in tmap:
... | https://github.com/ros/ros_comm/issues/1758 | Host [vboxros]:
Traceback (most recent call last):
File "/opt/ros/melodic/bin/rostopic", line 35, in <module>
rostopic.rostopicmain()
File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/__init__.py", line 2119, in rostopicmain
_rostopic_cmd_list(argv)
File "/opt/ros/melodic/lib/python2.7/dist-packages/rostopic/... | ValueError |
def get_start_time(self):
"""
Returns the start time of the bag.
@return: a timestamp of the start of the bag
@rtype: float, timestamp in seconds, includes fractions of a second
"""
if self._chunks:
start_stamp = self._chunks[0].start_time.to_sec()
else:
if not self._connect... | def get_start_time(self):
"""
Returns the start time of the bag.
@return: a timestamp of the start of the bag
@rtype: float, timestamp in seconds, includes fractions of a second
"""
if self._chunks:
start_stamp = self._chunks[0].start_time.to_sec()
else:
if not self._connect... | https://github.com/ros/ros_comm/issues/1099 | $ unzip rosbag_reindex_issue.zip
$ rosbag info unindexed.bag
ERROR bag unindexed: unindexed.bag. Run rosbag reindex.
$ rosbag reindex unindexed_bag
$ rosbag info unindexed.bag
Traceback (most recent call last):
File "/path/redacted/rosbag/scripts/rosbag_bin.py", line 35, in <module>
rosbag.rosbagmain()
File "/path/red... | IndexError |
def get_end_time(self):
"""
Returns the end time of the bag.
@return: a timestamp of the end of the bag
@rtype: float, timestamp in seconds, includes fractions of a second
"""
if self._chunks:
end_stamp = self._chunks[-1].end_time.to_sec()
else:
if not self._connection_index... | def get_end_time(self):
"""
Returns the end time of the bag.
@return: a timestamp of the end of the bag
@rtype: float, timestamp in seconds, includes fractions of a second
"""
if self._chunks:
end_stamp = self._chunks[-1].end_time.to_sec()
else:
if not self._connection_index... | https://github.com/ros/ros_comm/issues/1099 | $ unzip rosbag_reindex_issue.zip
$ rosbag info unindexed.bag
ERROR bag unindexed: unindexed.bag. Run rosbag reindex.
$ rosbag reindex unindexed_bag
$ rosbag info unindexed.bag
Traceback (most recent call last):
File "/path/redacted/rosbag/scripts/rosbag_bin.py", line 35, in <module>
rosbag.rosbagmain()
File "/path/red... | IndexError |
def __str__(self):
rows = []
try:
if self._filename:
rows.append(("path", self._filename))
if self._version == 102 and type(self._reader) == _BagReader102_Unindexed:
rows.append(("version", "1.2 (unindexed)"))
else:
rows.append(
("ver... | def __str__(self):
rows = []
try:
if self._filename:
rows.append(("path", self._filename))
if self._version == 102 and type(self._reader) == _BagReader102_Unindexed:
rows.append(("version", "1.2 (unindexed)"))
else:
rows.append(
("ver... | https://github.com/ros/ros_comm/issues/1099 | $ unzip rosbag_reindex_issue.zip
$ rosbag info unindexed.bag
ERROR bag unindexed: unindexed.bag. Run rosbag reindex.
$ rosbag reindex unindexed_bag
$ rosbag info unindexed.bag
Traceback (most recent call last):
File "/path/redacted/rosbag/scripts/rosbag_bin.py", line 35, in <module>
rosbag.rosbagmain()
File "/path/red... | IndexError |
def _get_yaml_info(self, key=None):
s = ""
try:
if self._filename:
s += "path: %s\n" % self._filename
if self._version == 102 and type(self._reader) == _BagReader102_Unindexed:
s += "version: 1.2 (unindexed)\n"
else:
s += "version: %d.%d\n" % (int(se... | def _get_yaml_info(self, key=None):
s = ""
try:
if self._filename:
s += "path: %s\n" % self._filename
if self._version == 102 and type(self._reader) == _BagReader102_Unindexed:
s += "version: 1.2 (unindexed)\n"
else:
s += "version: %d.%d\n" % (int(se... | https://github.com/ros/ros_comm/issues/1099 | $ unzip rosbag_reindex_issue.zip
$ rosbag info unindexed.bag
ERROR bag unindexed: unindexed.bag. Run rosbag reindex.
$ rosbag reindex unindexed_bag
$ rosbag info unindexed.bag
Traceback (most recent call last):
File "/path/redacted/rosbag/scripts/rosbag_bin.py", line 35, in <module>
rosbag.rosbagmain()
File "/path/red... | IndexError |
def rosmsg_cmd_show(mode, full, alias="show"):
cmd = "ros%s" % (mode[1:])
parser = OptionParser(usage="usage: %s %s [options] <%s>" % (cmd, alias, full))
parser.add_option(
"-r",
"--raw",
dest="raw",
default=False,
action="store_true",
help="show raw message t... | def rosmsg_cmd_show(mode, full, alias="show"):
cmd = "ros%s" % (mode[1:])
parser = OptionParser(usage="usage: %s %s [options] <%s>" % (cmd, alias, full))
parser.add_option(
"-r",
"--raw",
dest="raw",
default=False,
action="store_true",
help="show raw message t... | https://github.com/ros/ros_comm/issues/1002 | Traceback (most recent call last):
File "xxxx/ros_catkin_ws/install_isolated/bin/rosmsg", line 35, in <module>
rosmsg.rosmsgmain()
File "xxxx/ros_catkin_ws/install_isolated/lib/python2.7/site-packages/rosmsg/__init__.py", line 747, in rosmsgmain
sys.exit(rosmsg_cmd_show(ext, full, command))
File "xxxx/ros_catkin_ws/ins... | AttributeError |
def custom_strify_message(
self,
val,
indent="",
time_offset=None,
current_time=None,
field_filter=None,
type_information=None,
fixed_numeric_width=None,
value_transform=None,
):
# ensure to print uint8[] as array of numbers instead of string
if type_information and type_info... | def custom_strify_message(
self,
val,
indent="",
time_offset=None,
current_time=None,
field_filter=None,
type_information=None,
fixed_numeric_width=None,
value_transform=None,
):
# ensure to print uint8[] as array of numbers instead of string
if type_information and type_info... | https://github.com/ros/ros_comm/issues/908 | $ rostopic echo /rosout/msg -n 1
Traceback (most recent call last):
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 940, in callback
self.suffix + '\n')
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 876, in custom_strify_message
val = value_transform(val)
File "<ws>/lib/python2.7... | AttributeError |
def create_value_transform(echo_nostr, echo_noarr):
def value_transform(val, type_information=None):
def transform_field_value(value, value_type, echo_nostr, echo_noarr):
if echo_noarr and "[" in value_type:
return "<array type: %s, length: %s>" % (
value_type... | def create_value_transform(echo_nostr, echo_noarr):
def value_transform(val):
class TransformedMessage(genpy.Message):
# These should be copy because changing these variables
# in transforming is problematic without its untransforming.
__slots__ = val.__slots__[:]
... | https://github.com/ros/ros_comm/issues/908 | $ rostopic echo /rosout/msg -n 1
Traceback (most recent call last):
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 940, in callback
self.suffix + '\n')
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 876, in custom_strify_message
val = value_transform(val)
File "<ws>/lib/python2.7... | AttributeError |
def value_transform(val, type_information=None):
def transform_field_value(value, value_type, echo_nostr, echo_noarr):
if echo_noarr and "[" in value_type:
return "<array type: %s, length: %s>" % (
value_type.rstrip("[]"),
len(value),
)
elif ec... | def value_transform(val):
class TransformedMessage(genpy.Message):
# These should be copy because changing these variables
# in transforming is problematic without its untransforming.
__slots__ = val.__slots__[:]
_slot_types = val._slot_types[:]
val_trans = TransformedMessage()
... | https://github.com/ros/ros_comm/issues/908 | $ rostopic echo /rosout/msg -n 1
Traceback (most recent call last):
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 940, in callback
self.suffix + '\n')
File "<ws>/lib/python2.7/dist-packages/rostopic/__init__.py", line 876, in custom_strify_message
val = value_transform(val)
File "<ws>/lib/python2.7... | AttributeError |
def check_roslaunch(f, use_test_depends=False):
"""
Check roslaunch file for errors, returning error message if check fails. This routine
is mainly to support rostest's roslaunch_check.
:param f: roslaunch file name, ``str``
:param use_test_depends: Consider test_depends, ``Bool``
:returns: err... | def check_roslaunch(f, option_use_test_depends=False):
"""
Check roslaunch file for errors, returning error message if check fails. This routine
is mainly to support rostest's roslaunch_check.
:param f: roslaunch file name, ``str``
:param option_use_test_depends: Consider test_depends, ``Bool``
... | https://github.com/ros/ros_comm/issues/893 | jliviero:~/ws/src/ros_comm$ rosrun roslaunch roslaunch-check -t ../launch/
checking *.launch in directory ../launch/
checking ../launch/demospace.launch
Traceback (most recent call last):
File "/home/jliviero/ws/src/ros_comm/tools/roslaunch/scripts/roslaunch-check", line 93, in <module>
error_msg = check_roslaunch_dir(... | TypeError |
def robust_connect_subscriber(
conn, dest_addr, dest_port, pub_uri, receive_cb, resolved_topic_name
):
"""
Keeps trying to create connection for subscriber. Then passes off to receive_loop once connected.
"""
# kwc: this logic is not very elegant. I am waiting to rewrite
# the I/O loop with as... | def robust_connect_subscriber(
conn, dest_addr, dest_port, pub_uri, receive_cb, resolved_topic_name
):
"""
Keeps trying to create connection for subscriber. Then passes off to receive_loop once connected.
"""
# kwc: this logic is not very elegant. I am waiting to rewrite
# the I/O loop with as... | https://github.com/ros/ros_comm/issues/533 | [rospy.internal][WARNING] 2014-11-11 20:39:42,119: Unknown error initiating TCP/IP socket to pv1106:39758 (http://pv1106:34792/): Traceback (most recent call last):
File "/data/users/rlinsalata/dev/desk/bugs/10848_mem-leak/rosbridge/catkin_ws/src/ros_comm/clients/rospy/src/rospy/impl/tcpros_base.py", line 557, in conne... | AttributeError |
def main(argv=sys.argv):
options = None
logger = None
try:
from . import rlutil
parser = _get_optparse()
(options, args) = parser.parse_args(argv[1:])
args = rlutil.resolve_launch_arguments(args)
_validate_args(parser, options, args)
# node args doesn't req... | def main(argv=sys.argv):
options = None
try:
from . import rlutil
parser = _get_optparse()
(options, args) = parser.parse_args(argv[1:])
args = rlutil.resolve_launch_arguments(args)
_validate_args(parser, options, args)
# node args doesn't require any roslaunch... | https://github.com/ros/ros_comm/issues/490 | ros@host1:~$ roslaunch openni2_launch openni2.launch
[openni2.launch] is neither a launch file in package [openni2_launch] nor is [openni2_launch] a launch file name
The traceback for the exception was written to the log file
Traceback (most recent call last):openni2_launch
File "/opt/ros/indigo/bin/roslaunch", line 35... | UnboundLocalError |
def _run(self):
while not self._connection.done:
queue = []
with self._lock:
# wait for available data
while not self._queue and not self._connection.done:
self._waiting = True
self._cond_data_available.wait(1.0)
self._waiting =... | def _run(self):
while not self._connection.done:
queue = []
with self._lock:
# wait for available data
while not self._queue and not self._connection.done:
self._waiting = True
self._cond_data_available.wait(1.0)
self._waiting =... | https://github.com/ros/ros_comm/issues/369 | Exception in thread Thread-23:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_pub... | AttributeError |
def from_config(
cls,
config: Union[Dict[str, Any], Config] = {},
*,
vocab: Union[Vocab, bool] = True,
disable: Iterable[str] = SimpleFrozenList(),
exclude: Iterable[str] = SimpleFrozenList(),
meta: Dict[str, Any] = SimpleFrozenDict(),
auto_fill: bool = True,
validate: bool = True,
)... | def from_config(
cls,
config: Union[Dict[str, Any], Config] = {},
*,
vocab: Union[Vocab, bool] = True,
disable: Iterable[str] = SimpleFrozenList(),
exclude: Iterable[str] = SimpleFrozenList(),
meta: Dict[str, Any] = SimpleFrozenDict(),
auto_fill: bool = True,
validate: bool = True,
)... | https://github.com/explosion/spaCy/issues/6990 | TypeError Traceback (most recent call last)
<ipython-input-12-66e94dc9d1fd> in <module>
1 sent = 'Hello World'
----> 2 doc = nlp(sent)
~/anaconda3/envs/acl/lib/python3.8/site-packages/spacy/language.py in __call__(self, text, disable, component_cfg)
992 raise ValueError... | TypeError |
def is_cython_func(func: Callable) -> bool:
"""Slightly hacky check for whether a callable is implemented in Cython.
Can be used to implement slightly different behaviors, especially around
inspecting and parameter annotations. Note that this will only return True
for actual cdef functions and methods, ... | def is_cython_func(func: Callable) -> bool:
"""Slightly hacky check for whether a callable is implemented in Cython.
Can be used to implement slightly different behaviors, especially around
inspecting and parameter annotations. Note that this will only return True
for actual cdef functions and methods, ... | https://github.com/explosion/spaCy/issues/7224 | $ python -m spacy train test.cfg --code mycode.py
ℹ Using CPU
=========================== Initializing pipeline ===========================
Set up nlp object from config
Pipeline: ['lemmatizer']
Created vocabulary
Finished initializing nlp object
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", l... | KeyError |
def print_prf_per_type(
msg: Printer, scores: Dict[str, Dict[str, float]], name: str, type: str
) -> None:
data = []
for key, value in scores.items():
row = [key]
for k in ("p", "r", "f"):
v = value[k]
row.append(f"{v * 100:.2f}" if isinstance(v, (int, float)) else v)... | def print_prf_per_type(
msg: Printer, scores: Dict[str, Dict[str, float]], name: str, type: str
) -> None:
data = [
(k, f"{v['p'] * 100:.2f}", f"{v['r'] * 100:.2f}", f"{v['f'] * 100:.2f}")
for k, v in scores.items()
]
msg.table(
data,
header=("", "P", "R", "F"),
a... | https://github.com/explosion/spaCy/issues/7019 | Traceback (most recent call last):
File "/opt/miniconda3/envs/spacy/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/miniconda3/envs/spacy/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/miniconda3/envs/spacy/lib/python3.6/site-packages/spacy/_... | TypeError |
def print_textcats_auc_per_cat(
msg: Printer, scores: Dict[str, Dict[str, float]]
) -> None:
msg.table(
[
(k, f"{v:.2f}" if isinstance(v, (float, int)) else v)
for k, v in scores.items()
],
header=("", "ROC AUC"),
aligns=("l", "r"),
title="Textcat ... | def print_textcats_auc_per_cat(
msg: Printer, scores: Dict[str, Dict[str, float]]
) -> None:
msg.table(
[(k, f"{v:.2f}") for k, v in scores.items()],
header=("", "ROC AUC"),
aligns=("l", "r"),
title="Textcat ROC AUC (per label)",
)
| https://github.com/explosion/spaCy/issues/7019 | Traceback (most recent call last):
File "/opt/miniconda3/envs/spacy/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/miniconda3/envs/spacy/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/miniconda3/envs/spacy/lib/python3.6/site-packages/spacy/_... | TypeError |
def get_loss(self, examples: Iterable[Example], sentence_encodings):
validate_examples(examples, "EntityLinker.get_loss")
entity_encodings = []
for eg in examples:
kb_ids = eg.get_aligned("ENT_KB_ID", as_string=True)
for ent in eg.reference.ents:
kb_id = kb_ids[ent.start]
... | def get_loss(self, examples: Iterable[Example], sentence_encodings):
validate_examples(examples, "EntityLinker.get_loss")
entity_encodings = []
for eg in examples:
kb_ids = eg.get_aligned("ENT_KB_ID", as_string=True)
for ent in eg.reference.ents:
kb_id = kb_ids[ent.start]
... | https://github.com/explosion/spaCy/issues/6826 | Running command: /home/joozty/Documents/projects/tutorials/nel_emerson/venv/bin/python -m spacy train configs/nel.cfg --output training --paths.train corpus/train.spacy --paths.dev corpus/dev.spacy --paths.kb temp/my_kb --paths.base_nlp temp/my_nlp -c scripts/custom_functions.py -g 0
ℹ Using GPU: 0
===================... | TypeError |
def add_patterns(self, patterns):
"""Add patterns to the entitiy ruler. A pattern can either be a token
pattern (list of dicts) or a phrase pattern (string). For example:
{'label': 'ORG', 'pattern': 'Apple'}
{'label': 'GPE', 'pattern': [{'lower': 'san'}, {'lower': 'francisco'}]}
patterns (list): Th... | def add_patterns(self, patterns):
"""Add patterns to the entitiy ruler. A pattern can either be a token
pattern (list of dicts) or a phrase pattern (string). For example:
{'label': 'ORG', 'pattern': 'Apple'}
{'label': 'GPE', 'pattern': [{'lower': 'san'}, {'lower': 'francisco'}]}
patterns (list): Th... | https://github.com/explosion/spaCy/issues/6518 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/spacy/pipeline/entityruler.py", line 222, in add_patterns
for label, pattern, ent_id in zip(
File "/usr/local/lib/python3.8/site-packages/spacy/language.py", line 829, in pipe
for doc in docs:
File "/usr/... | Exception |
def __call__(self, string, univ_pos, morphology=None):
lookup_table = self.lookups.get_table("lemma_lookup", {})
if "lemma_rules" not in self.lookups:
return [lookup_table.get(string, string)]
if univ_pos in (NOUN, "NOUN", "noun"):
univ_pos = "noun"
elif univ_pos in (VERB, "VERB", "verb"... | def __call__(self, string, univ_pos, morphology=None):
lookup_table = self.lookups.get_table("lemma_lookup", {})
if "lemma_rules" not in self.lookups:
return [lookup_table.get(string, string)]
if univ_pos in (NOUN, "NOUN", "noun"):
univ_pos = "noun"
elif univ_pos in (VERB, "VERB", "verb"... | https://github.com/explosion/spaCy/issues/5728 | ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in
2 nlp = spacy.load("fr_core_news_sm")
3
----> 4 doc = nlp("C'est une phrase.")
5 print([(w.text, w.pos_) for w in doc])
~/anaconda3/lib/python3.7/site-packages/spac... | TypeError |
def load_model_from_path(model_path, meta=False, **overrides):
"""Load a model from a data directory path. Creates Language class with
pipeline from meta.json and then calls from_disk() with path."""
if not meta:
meta = get_model_meta(model_path)
# Support language factories registered via entry... | def load_model_from_path(model_path, meta=False, **overrides):
"""Load a model from a data directory path. Creates Language class with
pipeline from meta.json and then calls from_disk() with path."""
if not meta:
meta = get_model_meta(model_path)
# Support language factories registered via entry... | https://github.com/explosion/spaCy/issues/5620 | py -m spacy train en C:\Work\ML\Spacy\dataset\model C:\Work\ML\Spacy\dataset\train C:\Work\ML\Spacy\dataset\valid -v en_core_web_md
Training pipeline: ['tagger', 'parser', 'ner']
Starting with blank model 'en'
Loading vector from model 'en_core_web_md'
Traceback (most recent call last):
File "C:\Program Files\Python\li... | TypeError |
def train(
lang,
output_path,
train_path,
dev_path,
raw_text=None,
base_model=None,
pipeline="tagger,parser,ner",
replace_components=False,
vectors=None,
width=96,
conv_depth=4,
cnn_window=1,
cnn_pieces=3,
use_chars=False,
bilstm_depth=0,
embed_rows=2000,
... | def train(
lang,
output_path,
train_path,
dev_path,
raw_text=None,
base_model=None,
pipeline="tagger,parser,ner",
replace_components=False,
vectors=None,
width=96,
conv_depth=4,
cnn_window=1,
cnn_pieces=3,
use_chars=False,
bilstm_depth=0,
embed_rows=2000,
... | https://github.com/explosion/spaCy/issues/5200 | root@1c02094b4938:/project# spacy train \
--base-model en_core_oi_lg/en_core_oi_lg-0.0.3 \
--pipeline ner \
--n-iter 30 \
--n-early-stopping 5 \
en \
models \
data/ner/train \
data/ner/eval
✔ Created output directory: models
Training pipeline: ['ner']
Starting with base model 'en_core_oi_lg/en_core_oi_lg-0.0.3'
Extendi... | TypeError |
def _find_best(experiment_dir, component):
accuracies = []
for epoch_model in experiment_dir.iterdir():
if epoch_model.is_dir() and epoch_model.parts[-1] != "model-final":
accs = srsly.read_json(epoch_model / "accuracy.json")
scores = [accs.get(metric, 0.0) for metric in _get_met... | def _find_best(experiment_dir, component):
accuracies = []
for epoch_model in experiment_dir.iterdir():
if epoch_model.is_dir() and epoch_model.parts[-1] != "model-final":
accs = srsly.read_json(epoch_model / "accuracy.json")
scores = [accs.get(metric, 0.0) for metric in _get_met... | https://github.com/explosion/spaCy/issues/5200 | root@1c02094b4938:/project# spacy train \
--base-model en_core_oi_lg/en_core_oi_lg-0.0.3 \
--pipeline ner \
--n-iter 30 \
--n-early-stopping 5 \
en \
models \
data/ner/train \
data/ner/eval
✔ Created output directory: models
Training pipeline: ['ner']
Starting with base model 'en_core_oi_lg/en_core_oi_lg-0.0.3'
Extendi... | TypeError |
def to_bytes(self):
"""Serialize the DocBin's annotations to a bytestring.
RETURNS (bytes): The serialized DocBin.
DOCS: https://spacy.io/api/docbin#to_bytes
"""
for tokens in self.tokens:
assert len(tokens.shape) == 2, tokens.shape # this should never happen
lengths = [len(tokens) fo... | def to_bytes(self):
"""Serialize the DocBin's annotations to a bytestring.
RETURNS (bytes): The serialized DocBin.
DOCS: https://spacy.io/api/docbin#to_bytes
"""
for tokens in self.tokens:
assert len(tokens.shape) == 2, tokens.shape # this should never happen
lengths = [len(tokens) fo... | https://github.com/explosion/spaCy/issues/5141 | ValueError Traceback (most recent call last)
<ipython-input-6-d51ca7c2f6fe> in <module>
----> 1 doc_bin_bytes = doc_bin.to_bytes()
~/anaconda3/envs/insights/lib/python3.7/site-packages/spacy/tokens/_serialize.py in to_bytes(self)
141 msg = {
142 "attrs": self.attrs,
-... | ValueError |
def main(kb_path, vocab_path=None, output_dir=None, n_iter=50):
"""Create a blank model with the specified vocab, set up the pipeline and train the entity linker.
The `vocab` should be the one used during creation of the KB."""
vocab = Vocab().from_disk(vocab_path)
# create blank Language class with cor... | def main(kb_path, vocab_path=None, output_dir=None, n_iter=50):
"""Create a blank model with the specified vocab, set up the pipeline and train the entity linker.
The `vocab` should be the one used during creation of the KB."""
vocab = Vocab().from_disk(vocab_path)
# create blank Language class with cor... | https://github.com/explosion/spaCy/issues/4723 | Created blank 'en' model with vocab from 'tmp/vocab'
Loaded Knowledge Base from 'tmp/kb'
('Russ Cochran his reprints include EC Comics.', 'Russ Cochran captured his first major title with his son as caddie.', 'Russ Cochran has been publishing comic art.', "Russ Cochran was a member of University of Kentucky's golf team... | KeyError |
def _apply_model(nlp):
for text, annotation in TRAIN_DATA:
# apply the entity linker which will now make predictions for the 'Russ Cochran' entities
doc = nlp(text)
print()
print("Entities", [(ent.text, ent.label_, ent.kb_id_) for ent in doc.ents])
print("Tokens", [(t.text, t... | def _apply_model(nlp):
for text, annotation in TRAIN_DATA:
doc = nlp.tokenizer(text)
# set entities so the evaluation is independent of the NER step
# all the examples contain 'Russ Cochran' as the first two tokens in the sentence
rc_ent = Span(doc, 0, 2, label=PERSON)
doc.e... | https://github.com/explosion/spaCy/issues/4723 | Created blank 'en' model with vocab from 'tmp/vocab'
Loaded Knowledge Base from 'tmp/kb'
('Russ Cochran his reprints include EC Comics.', 'Russ Cochran captured his first major title with his son as caddie.', 'Russ Cochran has been publishing comic art.', "Russ Cochran was a member of University of Kentucky's golf team... | KeyError |
def _collate_best_model(meta, output_path, components):
bests = {}
for component in components:
bests[component] = _find_best(output_path, component)
best_dest = output_path / "model-best"
shutil.copytree(path2str(output_path / "model-final"), path2str(best_dest))
for component, best_compone... | def _collate_best_model(meta, output_path, components):
bests = {}
for component in components:
bests[component] = _find_best(output_path, component)
best_dest = output_path / "model-best"
shutil.copytree(output_path / "model-final", best_dest)
for component, best_component_src in bests.item... | https://github.com/explosion/spaCy/issues/3713 | File "[...]/lib/python3.5/site-packages/spacy/cli/train.py", line 382, in _collate_best_model
shutil.copytree(output_path / "model-final", best_dest)
File "[...]/lib/python3.5/shutil.py", line 309, in copytree
names = os.listdir(src)
TypeError: argument should be string, bytes or integer, not PosixPath
Exception ignore... | TypeError |
def build_bow_text_classifier(
nr_class, ngram_size=1, exclusive_classes=False, no_output_layer=False, **cfg
):
with Model.define_operators({">>": chain}):
model = with_cpu(
Model.ops, extract_ngrams(ngram_size, attr=ORTH) >> LinearModel(nr_class)
)
if not no_output_layer:
... | def build_bow_text_classifier(
nr_class, ngram_size=1, exclusive_classes=False, no_output_layer=False, **cfg
):
with Model.define_operators({">>": chain}):
model = extract_ngrams(ngram_size, attr=ORTH) >> with_cpu(
Model.ops, LinearModel(nr_class)
)
if not no_output_layer:
... | https://github.com/explosion/spaCy/issues/3473 | Traceback (most recent call last):
...
nlp.update(texts, annotations, sgd=optimizer, drop=0.5, losses=losses)
File "venv/lib/python3.7/site-packages/spacy/language.py", line 452, in update
proc.update(docs, golds, sgd=get_grads, losses=losses, **kwargs)
File "pipes.pyx", line 931, in spacy.pipeline.pipes.TextCategorize... | TypeError |
def POS_tree(root, light=False, flat=False):
"""Helper: generate a POS tree for a root token. The doc must have
`merge_ents(doc)` ran on it.
"""
subtree = format_POS(root, light=light, flat=flat)
if not flat:
for c in root.children:
subtree["modifiers"].append(POS_tree(c))
re... | def POS_tree(root, light=False, flat=False):
"""Helper: generate a POS tree for a root token. The doc must have
`merge_ents(doc)` ran on it.
"""
subtree = format_POS(root, light=light, flat=flat)
for c in root.children:
subtree["modifiers"].append(POS_tree(c))
return subtree
| https://github.com/explosion/spaCy/issues/3150 | $ python
Python 3.7.2 (default, Jan 3 2019, 02:55:40)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp('Alice ate the pizza')
doc.print_tree(flat=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <mod... | KeyError |
def generate_meta(model_path, existing_meta, msg):
meta = existing_meta or {}
settings = [
("lang", "Model language", meta.get("lang", "en")),
("name", "Model name", meta.get("name", "model")),
("version", "Model version", meta.get("version", "0.0.0")),
("spacy_version", "Require... | def generate_meta(model_path, existing_meta, msg):
meta = existing_meta or {}
settings = [
("lang", "Model language", meta.get("lang", "en")),
("name", "Model name", meta.get("name", "model")),
("version", "Model version", meta.get("version", "0.0.0")),
("spacy_version", "Require... | https://github.com/explosion/spaCy/issues/3093 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/src/spacy-nb/.venv/lib/python3.6/site-packages/spacy/__init__.py", line 21, in load
return util.load_model(name, **overrides)
File "/home/ubuntu/src/spacy-nb/.venv/lib/python3.6/site-packages/spacy/util.py", line 116, in load_mode... | OSError |
def train(
lang,
output_path,
train_path,
dev_path,
raw_text=None,
base_model=None,
pipeline="tagger,parser,ner",
vectors=None,
n_iter=30,
n_examples=0,
use_gpu=-1,
version="0.0.0",
meta_path=None,
init_tok2vec=None,
parser_multitasks="",
entity_multitasks... | def train(
lang,
output_path,
train_path,
dev_path,
raw_text=None,
base_model=None,
pipeline="tagger,parser,ner",
vectors=None,
n_iter=30,
n_examples=0,
use_gpu=-1,
version="0.0.0",
meta_path=None,
init_tok2vec=None,
parser_multitasks="",
entity_multitasks... | https://github.com/explosion/spaCy/issues/3093 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/src/spacy-nb/.venv/lib/python3.6/site-packages/spacy/__init__.py", line 21, in load
return util.load_model(name, **overrides)
File "/home/ubuntu/src/spacy-nb/.venv/lib/python3.6/site-packages/spacy/util.py", line 116, in load_mode... | OSError |
def __init__(self, cls, nlp=None):
self.vocab = nlp.vocab if nlp is not None else cls.create_vocab(nlp)
MeCab = try_mecab_import()
self.tokenizer = MeCab.Tagger()
self.tokenizer.parseToNode("") # see #2901
| def __init__(self, cls, nlp=None):
self.vocab = nlp.vocab if nlp is not None else cls.create_vocab(nlp)
MeCab = try_mecab_import()
self.tokenizer = MeCab.Tagger()
| https://github.com/explosion/spaCy/issues/2901 | import spacy
nlp = spacy.blank('ja')
nlp('pythonが大好きです')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/spacy/language.py", line 340, in __call__
doc = self.make_doc(text)
File "/usr/local/lib/python3.6/site-packages/spacy/lang/ja/__init__.py", line 1... | ValueError |
def main(model=None, output_dir=None, n_iter=20, n_texts=2000):
if model is not None:
nlp = spacy.load(model) # load existing spaCy model
print("Loaded model '%s'" % model)
else:
nlp = spacy.blank("en") # create blank Language class
print("Created blank 'en' model")
# add ... | def main(model=None, output_dir=None, n_iter=20, n_texts=2000):
if model is not None:
nlp = spacy.load(model) # load existing spaCy model
print("Loaded model '%s'" % model)
else:
nlp = spacy.blank("en") # create blank Language class
print("Created blank 'en' model")
# add ... | https://github.com/explosion/spaCy/issues/1798 | $ python scripts/train_textcat.py
Created blank 'en' model
Loading IMDB data...
Using 2000 examples (1600 training, 400 evaluation)
Training the model...
LOSS P R F
Traceback (most recent call last):
File "scripts/train_textcat.py", line 133, in <module>
plac.call(main)
File "/home/motoki/aes/lib/pytho... | TypeError |
def load_data(limit=0, split=0.8):
"""Load data from the IMDB dataset."""
# Partition off part of the train data for evaluation
train_data, _ = thinc.extra.datasets.imdb()
random.shuffle(train_data)
train_data = train_data[-limit:]
texts, labels = zip(*train_data)
cats = [{"POSITIVE": bool(y... | def load_data(limit=0, split=0.8):
"""Load data from the IMDB dataset."""
# Partition off part of the train data for evaluation
train_data, _ = thinc.extra.datasets.imdb()
random.shuffle(train_data)
train_data = train_data[-limit:]
texts, labels = zip(*train_data)
cats = [{"POSITIVE": bool(y... | https://github.com/explosion/spaCy/issues/1798 | $ python scripts/train_textcat.py
Created blank 'en' model
Loading IMDB data...
Using 2000 examples (1600 training, 400 evaluation)
Training the model...
LOSS P R F
Traceback (most recent call last):
File "scripts/train_textcat.py", line 133, in <module>
plac.call(main)
File "/home/motoki/aes/lib/pytho... | TypeError |
def evaluate(tokenizer, textcat, texts, cats):
docs = (tokenizer(text) for text in texts)
tp = 0.0 # True positives
fp = 1e-8 # False positives
fn = 1e-8 # False negatives
tn = 0.0 # True negatives
for i, doc in enumerate(textcat.pipe(docs)):
gold = cats[i]
for label, score i... | def evaluate(tokenizer, textcat, texts, cats):
docs = (tokenizer(text) for text in texts)
tp = 1e-8 # True positives
fp = 1e-8 # False positives
fn = 1e-8 # False negatives
tn = 1e-8 # True negatives
for i, doc in enumerate(textcat.pipe(docs)):
gold = cats[i]
for label, score... | https://github.com/explosion/spaCy/issues/1798 | $ python scripts/train_textcat.py
Created blank 'en' model
Loading IMDB data...
Using 2000 examples (1600 training, 400 evaluation)
Training the model...
LOSS P R F
Traceback (most recent call last):
File "scripts/train_textcat.py", line 133, in <module>
plac.call(main)
File "/home/motoki/aes/lib/pytho... | TypeError |
def symlink_to(orig, dest):
if is_windows:
import subprocess
subprocess.call(["mklink", "/d", path2str(orig), path2str(dest)], shell=True)
else:
orig.symlink_to(dest)
| def symlink_to(orig, dest):
if is_python2 and is_windows:
import subprocess
subprocess.call(["mklink", "/d", path2str(orig), path2str(dest)], shell=True)
else:
orig.symlink_to(dest)
| https://github.com/explosion/spaCy/issues/2948 | (venv) C:\g\py\spacy> python -m spacy link en_core_web_sm en
C:\Program Files\Python37\lib\importlib\_bootstrap.py:219: RuntimeWarning: cymem.cymem.Pool size changed, may indicate binary incompatibility. Expected 48 from C header, got 64 from PyObject
return f(*args, **kwds)
C:\Program Files\Python37\lib\importlib\_boo... | OSError |
def link_vectors_to_models(vocab):
vectors = vocab.vectors
if vectors.name is None:
vectors.name = VECTORS_KEY
print(
"Warning: Unnamed vectors -- this won't allow multiple vectors "
"models to be loaded. (Shape: (%d, %d))" % vectors.data.shape
)
ops = Model.o... | def link_vectors_to_models(vocab):
vectors = vocab.vectors
ops = Model.ops
for word in vocab:
if word.orth in vectors.key2row:
word.rank = vectors.key2row[word.orth]
else:
word.rank = 0
data = ops.asarray(vectors.data)
# Set an entry here, so that vectors are ... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def Tok2Vec(width, embed_size, **kwargs):
pretrained_vectors = kwargs.get("pretrained_vectors", None)
cnn_maxout_pieces = kwargs.get("cnn_maxout_pieces", 2)
cols = [ID, NORM, PREFIX, SUFFIX, SHAPE, ORTH]
with Model.define_operators(
{">>": chain, "|": concatenate, "**": clone, "+": add, "*": rea... | def Tok2Vec(width, embed_size, **kwargs):
pretrained_dims = kwargs.get("pretrained_dims", 0)
cnn_maxout_pieces = kwargs.get("cnn_maxout_pieces", 2)
cols = [ID, NORM, PREFIX, SUFFIX, SHAPE, ORTH]
with Model.define_operators(
{">>": chain, "|": concatenate, "**": clone, "+": add, "*": reapply}
... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def build_tagger_model(nr_class, **cfg):
embed_size = util.env_opt("embed_size", 7000)
if "token_vector_width" in cfg:
token_vector_width = cfg["token_vector_width"]
else:
token_vector_width = util.env_opt("token_vector_width", 128)
pretrained_vectors = cfg.get("pretrained_vectors")
... | def build_tagger_model(nr_class, **cfg):
embed_size = util.env_opt("embed_size", 7000)
if "token_vector_width" in cfg:
token_vector_width = cfg["token_vector_width"]
else:
token_vector_width = util.env_opt("token_vector_width", 128)
pretrained_dims = cfg.get("pretrained_dims", 0)
wit... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def train(
lang,
output_dir,
train_data,
dev_data,
n_iter=30,
n_sents=0,
parser_multitasks="",
entity_multitasks="",
use_gpu=-1,
vectors=None,
no_tagger=False,
no_parser=False,
no_entities=False,
gold_preproc=False,
version="0.0.0",
meta_path=None,
):
... | def train(
lang,
output_dir,
train_data,
dev_data,
n_iter=30,
n_sents=0,
parser_multitasks="",
entity_multitasks="",
use_gpu=-1,
vectors=None,
no_tagger=False,
no_parser=False,
no_entities=False,
gold_preproc=False,
version="0.0.0",
meta_path=None,
):
... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def __init__(self, vocab=True, make_doc=True, meta={}, **kwargs):
"""Initialise a Language object.
vocab (Vocab): A `Vocab` object. If `True`, a vocab is created via
`Language.Defaults.create_vocab`.
make_doc (callable): A function that takes text and returns a `Doc`
object. Usually a `Toke... | def __init__(self, vocab=True, make_doc=True, meta={}, **kwargs):
"""Initialise a Language object.
vocab (Vocab): A `Vocab` object. If `True`, a vocab is created via
`Language.Defaults.create_vocab`.
make_doc (callable): A function that takes text and returns a `Doc`
object. Usually a `Toke... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def begin_training(self, get_gold_tuples=None, sgd=None, **cfg):
"""Allocate models, pre-process training data and acquire a trainer and
optimizer. Used as a contextmanager.
get_gold_tuples (function): Function returning gold data
**cfg: Config parameters.
RETURNS: An optimizer
"""
if get_g... | def begin_training(self, get_gold_tuples=None, sgd=None, **cfg):
"""Allocate models, pre-process training data and acquire a trainer and
optimizer. Used as a contextmanager.
get_gold_tuples (function): Function returning gold data
**cfg: Config parameters.
RETURNS: An optimizer
"""
if get_g... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def from_disk(self, path, disable=tuple()):
"""Loads state from a directory. Modifies the object in place and
returns it. If the saved `Language` object contains a model, the
model will be loaded.
path (unicode or Path): A path to a directory. Paths may be either
strings or `Path`-like objects.... | def from_disk(self, path, disable=tuple()):
"""Loads state from a directory. Modifies the object in place and
returns it. If the saved `Language` object contains a model, the
model will be loaded.
path (unicode or Path): A path to a directory. Paths may be either
strings or `Path`-like objects.... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def from_bytes(self, bytes_data, disable=[]):
"""Load state from a binary string.
bytes_data (bytes): The data to load from.
disable (list): Names of the pipeline components to disable.
RETURNS (Language): The `Language` object.
"""
deserializers = OrderedDict(
(
("vocab", l... | def from_bytes(self, bytes_data, disable=[]):
"""Load state from a binary string.
bytes_data (bytes): The data to load from.
disable (list): Names of the pipeline components to disable.
RETURNS (Language): The `Language` object.
"""
deserializers = OrderedDict(
(
("vocab", l... | https://github.com/explosion/spaCy/issues/1660 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Projects/foobar/.env/lib/python3.6/site-packages/spacy/language.py", line 333, in __call__
doc = proc(doc)
File "pipeline.pyx", line 390, in spacy.pipeline.Tagger.__call__
File "pipeline.pyx", line 402, in spacy.pipeline.Tagger.predict
File "... | ValueError |
def init_model(
lang, output_dir, freqs_loc, clusters_loc=None, vectors_loc=None, prune_vectors=-1
):
"""
Create a new model from raw data, like word frequencies, Brown clusters
and word vectors.
"""
if not freqs_loc.exists():
prints(freqs_loc, title="Can't find words frequencies file", ... | def init_model(
lang, output_dir, freqs_loc, clusters_loc=None, vectors_loc=None, prune_vectors=-1
):
"""
Create a new model from raw data, like word frequencies, Brown clusters
and word vectors.
"""
if not freqs_loc.exists():
prints(freqs_loc, title="Can't find words frequencies file", ... | https://github.com/explosion/spaCy/issues/1928 | Counting frequencies...
923130it [00:02, 309685.80it/s]
Reading vectors...
108821it [00:11, 9870.09it/s]
Reading clusters...
1047705it [00:47, 22187.37it/s]
Creating model...
100%|██████████████████████████████| 36888/36888 [00:01<00:00, 21654.38it/s]
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py... | AttributeError |
def create_model(
lang, probs, oov_prob, clusters, vectors_data, vector_keys, prune_vectors
):
print("Creating model...")
lang_class = get_lang_class(lang)
nlp = lang_class()
for lexeme in nlp.vocab:
lexeme.rank = 0
lex_added = 0
for i, (word, prob) in enumerate(
tqdm(sorted... | def create_model(
lang, probs, oov_prob, clusters, vectors_data, vector_keys, prune_vectors
):
print("Creating model...")
lang_class = get_lang_class(lang)
nlp = lang_class()
for lexeme in nlp.vocab:
lexeme.rank = 0
lex_added = 0
for i, (word, prob) in enumerate(
tqdm(sorted... | https://github.com/explosion/spaCy/issues/1928 | Counting frequencies...
923130it [00:02, 309685.80it/s]
Reading vectors...
108821it [00:11, 9870.09it/s]
Reading clusters...
1047705it [00:47, 22187.37it/s]
Creating model...
100%|██████████████████████████████| 36888/36888 [00:01<00:00, 21654.38it/s]
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py... | AttributeError |
def load_model_from_link(name, **overrides):
"""Load a model from a shortcut link, or directory in spaCy data path."""
init_file = get_data_path() / name / "__init__.py"
spec = importlib.util.spec_from_file_location(name, str(init_file))
try:
cls = importlib.util.module_from_spec(spec)
excep... | def load_model_from_link(name, **overrides):
"""Load a model from a shortcut link, or directory in spaCy data path."""
init_file = get_data_path() / name / "__init__.py"
spec = importlib.util.spec_from_file_location(name, init_file)
try:
cls = importlib.util.module_from_spec(spec)
except Att... | https://github.com/explosion/spaCy/issues/1271 | In [2]: en = spacy.load('en')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-a732401aeb32> in <module>()
----> 1 en = spacy.load('en')
/src/spaCy/spacy/__init__.py in load(name, **overrides)
11 def... | AttributeError |
def get_json(url, desc):
r = requests.get(url)
if r.status_code != 200:
prints(
"Couldn't fetch %s. Please find a model for your spaCy installation "
"(v%s), and download it manually." % (desc, about.__version__),
about.__docs_models__,
title="Server error... | def get_json(url, desc):
r = requests.get(url)
if r.status_code != 200:
prints(
"Couldn't fetch %s. Please find a model for your spaCy installation "
"(v%s), and download it manually." % (desc, about.__version__),
about.__docs__,
title="Server error (%d)" ... | https://github.com/explosion/spaCy/issues/1051 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "spacy/tokens/doc.pyx", line 434, in __get__ (spacy/tokens/doc.cpp:9664)
ValueError: sentence boundary detection requires the dependency parse, which requires data to be installed. If you haven't done so, run:
python -m spacy download es
to ins... | ValueError |
def depr_model_download(lang):
"""
Replace download modules within en and de with deprecation warning and
download default language model (using shortcut).
"""
prints(
"The spacy.%s.download command is now deprecated. Please use "
"python -m spacy download [model name or shortcut] in... | def depr_model_download(lang):
"""
Replace download modules within en and de with deprecation warning and
download default language model (using shortcut).
"""
prints(
"The spacy.%s.download command is now deprecated. Please use "
"python -m spacy download [model name or shortcut] in... | https://github.com/explosion/spaCy/issues/1051 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "spacy/tokens/doc.pyx", line 434, in __get__ (spacy/tokens/doc.cpp:9664)
ValueError: sentence boundary detection requires the dependency parse, which requires data to be installed. If you haven't done so, run:
python -m spacy download es
to ins... | ValueError |
def __init__(self, ax, raster_source, **kwargs):
self.raster_source = raster_source
if matplotlib.__version__ >= "3":
# This artist fills the Axes, so should not influence layout.
kwargs.setdefault("in_layout", False)
super(SlippyImageArtist, self).__init__(ax, **kwargs)
self.cache = []
... | def __init__(self, ax, raster_source, **kwargs):
self.raster_source = raster_source
super(SlippyImageArtist, self).__init__(ax, **kwargs)
self.cache = []
ax.figure.canvas.mpl_connect("button_press_event", self.on_press)
ax.figure.canvas.mpl_connect("button_release_event", self.on_release)
self... | https://github.com/SciTools/cartopy/issues/1451 | Traceback (most recent call last):
File "/home/dwells/anaconda3/envs/kando/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-7607f9c8266c>", line 59, in <module>
plt.show()
File "/home/dwells/anaconda3/envs/kand... | TypeError |
def _repr_html_(self):
if not six.PY2:
from html import escape
else:
from cgi import escape
try:
# As matplotlib is not a core cartopy dependency, don't error
# if it's not available.
import matplotlib.pyplot as plt
except ImportError:
# We can't return an... | def _repr_html_(self):
import cgi
try:
# As matplotlib is not a core cartopy dependency, don't error
# if it's not available.
import matplotlib.pyplot as plt
except ImportError:
# We can't return an SVG of the CRS, so let Jupyter fall back to
# a default repr by retu... | https://github.com/SciTools/cartopy/issues/1395 | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~/miniconda3/envs/py38/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj)
343 method = get_real_method(obj, self.print_method)
34... | AttributeError |
def __init__(self, desired_tile_form="RGB", user_agent="cartopybot/1.0"):
self.imgs = []
self.crs = ccrs.Mercator.GOOGLE
self.desired_tile_form = desired_tile_form
self.user_agent = user_agent
| def __init__(self, desired_tile_form="RGB"):
self.imgs = []
self.crs = ccrs.Mercator.GOOGLE
self.desired_tile_form = desired_tile_form
| https://github.com/SciTools/cartopy/issues/1341 | ValueError Traceback (most recent call last)
~/miniconda3/envs/education/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return printer(obj)
342 # Finally look for special meth... | ValueError |
def get_image(self, tile):
if six.PY3:
from urllib.request import urlopen, Request, HTTPError, URLError
else:
from urllib2 import urlopen, Request, HTTPError, URLError
url = self._image_url(tile)
try:
request = Request(url, headers={"user-agent": self.user_agent})
fh = u... | def get_image(self, tile):
if six.PY3:
from urllib.request import urlopen
else:
from urllib2 import urlopen
url = self._image_url(tile)
fh = urlopen(url)
im_data = six.BytesIO(fh.read())
fh.close()
img = Image.open(im_data)
img = img.convert(self.desired_tile_form)
... | https://github.com/SciTools/cartopy/issues/1341 | ValueError Traceback (most recent call last)
~/miniconda3/envs/education/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return printer(obj)
342 # Finally look for special meth... | ValueError |
def barbs(self, x, y, u, v, *args, **kwargs):
"""
Plot a field of barbs.
Extra Kwargs:
* transform: :class:`cartopy.crs.Projection` or matplotlib transform
The coordinate system in which the vectors are defined.
* regrid_shape: int or 2-tuple of ints
If given, specifies that the p... | def barbs(self, x, y, u, v, *args, **kwargs):
"""
Plot a 2-D field of barbs.
Extra Kwargs:
* transform: :class:`cartopy.crs.Projection` or matplotlib transform
The coordinate system in which the vectors are defined.
* regrid_shape: int or 2-tuple of ints
If given, specifies that t... | https://github.com/SciTools/cartopy/issues/806 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-57-ca96cf8f7709> in <module>()
16 ax.barbs(np.array(recon_data['lon']), np.array(recon_data['lat']),
17 np.array(recon_data['u']), np.array(reco... | ValueError |
def _axes_domain(self, nx=None, ny=None, background_patch=None):
"""Returns x_range, y_range"""
DEBUG = False
transform = self._crs_transform()
ax_transform = self.axes.transAxes
desired_trans = ax_transform - transform
nx = nx or 30
ny = ny or 30
x = np.linspace(1e-9, 1 - 1e-9, nx)
... | def _axes_domain(self, nx=None, ny=None, background_patch=None):
"""Returns x_range, y_range"""
DEBUG = False
transform = self._crs_transform()
ax_transform = self.axes.transAxes
desired_trans = ax_transform - transform
nx = nx or 30
ny = ny or 30
x = np.linspace(1e-9, 1 - 1e-9, nx)
... | https://github.com/SciTools/cartopy/issues/322 | ValueError: zero-size array to fmin.reduce without identity
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/sci/lib/python2.7/lib-tk/Tkinter.py", line 1410, in __call__
return self.func(*args)
File "/usr/local/sci/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line ... | SystemError |
def __init__(self, *args, **kwargs):
"""
Parameters
----------
token : str, required. Discord token
[default: ${TQDM_DISCORD_TOKEN}].
channel_id : int, required. Discord channel ID
[default: ${TQDM_DISCORD_CHANNEL_ID}].
mininterval : float, optional.
Minimum of [default:... | def __init__(self, *args, **kwargs):
"""
Parameters
----------
token : str, required. Discord token
[default: ${TQDM_DISCORD_TOKEN}].
channel_id : int, required. Discord channel ID
[default: ${TQDM_DISCORD_CHANNEL_ID}].
mininterval : float, optional.
Minimum of [default:... | https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def clear(self, *args, **kwargs):
super(tqdm_discord, self).clear(*args, **kwargs)
if not self.disable:
self.dio.write("")
| def clear(self, *args, **kwargs):
super(tqdm_discord, self).clear(*args, **kwargs)
self.dio.write("")
| https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def __init__(self, *args, **kwargs):
"""
Parameters
----------
token : str, required. Telegram token
[default: ${TQDM_TELEGRAM_TOKEN}].
chat_id : str, required. Telegram chat ID
[default: ${TQDM_TELEGRAM_CHAT_ID}].
See `tqdm.auto.tqdm.__init__` for other parameters.
"""
... | def __init__(self, *args, **kwargs):
"""
Parameters
----------
token : str, required. Telegram token
[default: ${TQDM_TELEGRAM_TOKEN}].
chat_id : str, required. Telegram chat ID
[default: ${TQDM_TELEGRAM_CHAT_ID}].
See `tqdm.auto.tqdm.__init__` for other parameters.
"""
... | https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def clear(self, *args, **kwargs):
super(tqdm_telegram, self).clear(*args, **kwargs)
if not self.disable:
self.tgio.write("")
| def clear(self, *args, **kwargs):
super(tqdm_telegram, self).clear(*args, **kwargs)
self.tgio.write("")
| https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def reset(self, total=None):
"""
Resets to 0 iterations for repeated use.
Consider combining with `leave=True`.
Parameters
----------
total : int or float, optional. Total to use for the new bar.
"""
if self.disable:
return super(tqdm_notebook, self).reset(total=total)
_, ... | def reset(self, total=None):
"""
Resets to 0 iterations for repeated use.
Consider combining with `leave=True`.
Parameters
----------
total : int or float, optional. Total to use for the new bar.
"""
_, pbar, _ = self.container.children
pbar.bar_style = ""
if total is not None... | https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def unpause(self):
"""Restart tqdm timer from last print time."""
if self.disable:
return
cur_t = self._time()
self.start_t += cur_t - self.last_print_t
self.last_print_t = cur_t
| def unpause(self):
"""Restart tqdm timer from last print time."""
cur_t = self._time()
self.start_t += cur_t - self.last_print_t
self.last_print_t = cur_t
| https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def reset(self, total=None):
"""
Resets to 0 iterations for repeated use.
Consider combining with `leave=True`.
Parameters
----------
total : int or float, optional. Total to use for the new bar.
"""
self.n = 0
if total is not None:
self.total = total
if self.disable:
... | def reset(self, total=None):
"""
Resets to 0 iterations for repeated use.
Consider combining with `leave=True`.
Parameters
----------
total : int or float, optional. Total to use for the new bar.
"""
self.last_print_n = self.n = 0
self.last_print_t = self.start_t = self._time()
... | https://github.com/tqdm/tqdm/issues/1125 | haendel:~/projects/telekom/trunk/sandbox/tqdm> python3
Python 3.9.1 (default, Jan 8 2021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
4.56.0 3.9.1 (default, Jan 8 2021... | AttributeError |
def format_dict(self):
"""Public API for read-only member access."""
if self.disable and not hasattr(self, "unit"):
return defaultdict(
lambda: None, {"n": self.n, "total": self.total, "elapsed": 0, "unit": "it"}
)
if self.dynamic_ncols:
self.ncols, self.nrows = self.dyna... | def format_dict(self):
"""Public API for read-only member access."""
if self.dynamic_ncols:
self.ncols, self.nrows = self.dynamic_ncols(self.fp)
ncols, nrows = self.ncols, self.nrows
return {
"n": self.n,
"total": self.total,
"elapsed": self._time() - self.start_t if hasa... | https://github.com/tqdm/tqdm/issues/624 | import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
('4.26.0', '2.7.14 (default, Mar 22 2018, 15:04:47) \n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]', 'darwin')
a = tqdm.tqdm([], disable=True)
print a
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kra... | AttributeError |
def display(self, msg=None, pos=None):
"""
Use `self.sp` to display `msg` in the specified `pos`.
Consider overloading this function when inheriting to use e.g.:
`self.some_frontend(**self.format_dict)` instead of `self.sp`.
Parameters
----------
msg : str, optional. What to display (defa... | def display(self, msg=None, pos=None):
"""
Use `self.sp` to display `msg` in the specified `pos`.
Consider overloading this function when inheriting to use e.g.:
`self.some_frontend(**self.format_dict)` instead of `self.sp`.
Parameters
----------
msg : str, optional. What to display (defa... | https://github.com/tqdm/tqdm/issues/624 | import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
('4.26.0', '2.7.14 (default, Mar 22 2018, 15:04:47) \n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]', 'darwin')
a = tqdm.tqdm([], disable=True)
print a
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kra... | AttributeError |
def __new__(cls, *_, **__):
instance = object.__new__(cls)
with cls.get_lock(): # also constructs lock if non-existent
cls._instances.add(instance)
# create monitoring thread
if cls.monitor_interval and (cls.monitor is None or not cls.monitor.report()):
try:
... | def __new__(cls, *_, **__):
# Create a new instance
instance = object.__new__(cls)
# Construct the lock if it does not exist
with cls.get_lock():
# Add to the list of instances
if not hasattr(cls, "_instances"):
cls._instances = WeakSet()
cls._instances.add(instance)
... | https://github.com/tqdm/tqdm/issues/1084 | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<timed exec> in <module>
/kaggle/usr/lib/nlp_profiler_class/nlp_profiler_class.py in apply_text_profiling(self, dataframe, text_column, params)
94 """
95
---> ... | AttributeError |
def status_printer(file):
"""
Manage the printing and in-place updating of a line of characters.
Note that if the string is longer than a line, then in-place
updating may not work (it will print a new line at each refresh).
"""
fp = _force_encoding(file) if file in (sys.stdout, sys.stderr) else ... | def status_printer(file):
"""
Manage the printing and in-place updating of a line of characters.
Note that if the string is longer than a line, then in-place
updating may not work (it will print a new line at each refresh).
"""
fp = file
fp_flush = getattr(fp, "flush", lambda: None) # pragm... | https://github.com/tqdm/tqdm/issues/127 | 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/proj/venv/lib/python2.6/site-packages/tqdm/_tqdm.py", line 483, in __iter__
1 / avg_time if avg_time else None, bar_format))
File "/opt/proj/venv/lib/... | UnicodeEncodeError |
def main():
args = argopt(__doc__, version=__version__).parse_args()
if args.debug_trace:
args.debug = "NOTSET"
logging.basicConfig(
level=getattr(logging, args.debug, logging.INFO),
format="%(levelname)s:%(message)s",
)
log = logging.getLogger(__name__)
log.debug(args)
... | def main():
args = argopt(__doc__, version=__version__).parse_args()
if args.debug_trace:
args.debug = "NOTSET"
logging.basicConfig(
level=getattr(logging, args.debug, logging.INFO),
format="%(levelname)s:%(message)s",
)
log = logging.getLogger(__name__)
log.debug(args)
... | https://github.com/tqdm/tqdm/issues/127 | 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/proj/venv/lib/python2.6/site-packages/tqdm/_tqdm.py", line 483, in __iter__
1 / avg_time if avg_time else None, bar_format))
File "/opt/proj/venv/lib/... | UnicodeEncodeError |
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].
... | 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].
... | https://github.com/tqdm/tqdm/issues/127 | 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/proj/venv/lib/python2.6/site-packages/tqdm/_tqdm.py", line 483, in __iter__
1 / avg_time if avg_time else None, bar_format))
File "/opt/proj/venv/lib/... | UnicodeEncodeError |
def __init__(self, callback, stream, method="read"):
"""
Wrap a given `file`-like object's `read()` or `write()` to report
lengths to the given `callback`
"""
super(CallbackIOWrapper, self).__init__(stream)
func = getattr(stream, method)
if method == "write":
@wraps(func)
de... | def __init__(self, *args, **kwds):
if len(args) > 1:
raise TypeError("expected at 1 argument, got %d", len(args))
if not hasattr(self, "_keys"):
self._keys = []
self.update(*args, **kwds)
| https://github.com/tqdm/tqdm/issues/127 | 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/proj/venv/lib/python2.6/site-packages/tqdm/_tqdm.py", line 483, in __iter__
1 / avg_time if avg_time else None, bar_format))
File "/opt/proj/venv/lib/... | UnicodeEncodeError |
def __init__(self):
# Create global parallelism locks to avoid racing issues with parallel
# bars works only if fork available (Linux/MacOSX, but not Windows)
cls = type(self)
root_lock = cls.th_lock
if root_lock is not None:
root_lock.acquire()
cls.create_mp_lock()
if root_lock is n... | def __init__(self):
# Create global parallelism locks to avoid racing issues with parallel
# bars works only if fork available (Linux/MacOSX, but not Windows)
self.create_mp_lock()
self.create_th_lock()
cls = type(self)
self.locks = [lk for lk in [cls.mp_lock, cls.th_lock] if lk is not None]
| https://github.com/tqdm/tqdm/issues/982 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "tqdm_fail.py", line 11, in race_write
tqdm.write("spam")
File "/home/... | AssertionError |
def create_mp_lock(cls):
if not hasattr(cls, "mp_lock"):
try:
from multiprocessing import RLock
cls.mp_lock = RLock()
except (ImportError, OSError): # pragma: no cover
cls.mp_lock = None
| def create_mp_lock(cls):
if not hasattr(cls, "mp_lock"):
try:
from multiprocessing import RLock
cls.mp_lock = RLock() # multiprocessing lock
except ImportError: # pragma: no cover
cls.mp_lock = None
except OSError: # pragma: no cover
cls.mp... | https://github.com/tqdm/tqdm/issues/982 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "tqdm_fail.py", line 11, in race_write
tqdm.write("spam")
File "/home/... | AssertionError |
def create_th_lock(cls):
assert hasattr(cls, "th_lock")
warn("create_th_lock not needed anymore", TqdmDeprecationWarning, stacklevel=2)
| def create_th_lock(cls):
if not hasattr(cls, "th_lock"):
try:
cls.th_lock = th.RLock() # thread lock
except OSError: # pragma: no cover
cls.th_lock = None
| https://github.com/tqdm/tqdm/issues/982 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "tqdm_fail.py", line 11, in race_write
tqdm.write("spam")
File "/home/... | AssertionError |
def status_printer(_, total=None, desc=None, ncols=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)... | def status_printer(_, total=None, desc=None, ncols=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)... | https://github.com/tqdm/tqdm/issues/872 | NameError Traceback (most recent call last)
~\Anaconda3\envs\py3_TF2.0\lib\site-packages\tqdm\notebook.py in status_printer(_, total, desc, ncols)
95 try:
---> 96 if total:
97 pbar = IProgress(min=0, max=total)
NameError: name 'IProgress' is not defined | NameError |
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 ca... | https://github.com/tqdm/tqdm/issues/555 | from tqdm import tqdm
tqdm.pandas()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/.conda/envs/py36/lib/python3.6/site-packages/tqdm/_tqdm.py", line 545, in pandas
from pandas.core.groupby import PanelGroupBy
ImportError: cannot import name 'PanelGroupBy' | ImportError |
def pandas(tclass, *targs, **tkwargs):
"""
Registers the given `tqdm` class with
pandas.core.
( frame.DataFrame
| series.Series
| groupby.(generic.)DataFrameGroupBy
| groupby.(generic.)SeriesGroupBy
).progress_apply
A new instance will be create every time `p... | def pandas(tclass, *targs, **tkwargs):
"""
Registers the given `tqdm` class with
pandas.core.
( frame.DataFrame
| series.Series
| groupby.(generic.)DataFrameGroupBy
| groupby.(generic.)SeriesGroupBy
).progress_apply
A new instance will be create every time `p... | https://github.com/tqdm/tqdm/issues/555 | from tqdm import tqdm
tqdm.pandas()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/.conda/envs/py36/lib/python3.6/site-packages/tqdm/_tqdm.py", line 545, in pandas
from pandas.core.groupby import PanelGroupBy
ImportError: cannot import name 'PanelGroupBy' | ImportError |
def pandas(tclass, *targs, **tkwargs):
"""
Registers the given `tqdm` class with
pandas.core.
( frame.DataFrame
| series.Series
| groupby.(generic.)DataFrameGroupBy
| groupby.(generic.)SeriesGroupBy
).progress_apply
A new instance will be create every time `p... | def pandas(tclass, *targs, **tkwargs):
"""
Registers the given `tqdm` class with
pandas.core.
( frame.DataFrame
| series.Series
| groupby.(generic.)DataFrameGroupBy
| groupby.(generic.)SeriesGroupBy
).progress_apply
A new instance will be create every time `p... | https://github.com/tqdm/tqdm/issues/862 | ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-9d87c7bad499> in <module>
1 l = []
2 tqdm.tqdm.pandas(desc="Processing")
----> 3 df["title"].progress_apply(l.extend)
~/.anaconda3/envs/pytorch/lib/p... | TypeError |
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.
**kwargs : optional
... | https://github.com/tqdm/tqdm/issues/862 | ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-9d87c7bad499> in <module>
1 l = []
2 tqdm.tqdm.pandas(desc="Processing")
----> 3 df["title"].progress_apply(l.extend)
~/.anaconda3/envs/pytorch/lib/p... | TypeError |
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.
**kwargs : optional
Transmitted to `df.apply()`.
"""
# Precompute total iterations
... | https://github.com/tqdm/tqdm/issues/862 | ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-9d87c7bad499> in <module>
1 l = []
2 tqdm.tqdm.pandas(desc="Processing")
----> 3 df["title"].progress_apply(l.extend)
~/.anaconda3/envs/pytorch/lib/p... | TypeError |
def __init__(self, frac, default_len=10, charset=UTF):
if not (0 <= frac <= 1):
warn("clamping frac to range [0, 1]", TqdmWarning, stacklevel=2)
frac = max(0, min(1, frac))
assert default_len > 0
self.frac = frac
self.default_len = default_len
self.charset = charset
| def __init__(self, frac, default_len=10, charset=UTF):
assert 0 <= frac <= 1
assert default_len > 0
self.frac = frac
self.default_len = default_len
self.charset = charset
| https://github.com/tqdm/tqdm/issues/859 | 4.40.0 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31)
[GCC 7.3.0] linux
0%| | 0/9.6 [00:00<?, ?it/s\
]Traceback (most recent call last):
File "tqdm_te... | AssertionError |
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,
**extra_kwargs,
):
"""
Return a string-based progress bar given some parameters
Parameters
... | 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,
**extra_kwargs,
):
"""
Return a string-based progress bar given some parameters
Parameters
... | https://github.com/tqdm/tqdm/issues/849 | Progress: 0% 0/1.0 [00:00<?, ?it/s]Traceback (most recent call last):
File "tqdm_test.py", line 13, in <module>
pbar.close()
File "/home/dan/software/anaconda3/envs/ame/lib/python3.7/site-packages/tqdm/std.py", line 1254, in close
self.display(pos=0)
File "/home/dan/software/anaconda3/envs/ame/lib/python3.7/site-pack... | TypeError |
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,
**extra_kwargs,
):
"""
Return a string-based progress bar given some parameters
Parameters
... | 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,
**extra_kwargs,
):
"""
Return a string-based progress bar given some parameters
Parameters
... | https://github.com/tqdm/tqdm/issues/851 | import tqdm, sys
print(tqdm.__version__, sys.version, sys.platform)
('4.34.0', '2.7.15+ (default, Oct 7 2019, 17:39:04) \n[GCC 7.4.0]', 'linux2')
pbar = tqdm.tqdm(total=10, leave=False)
0%| | 0/10 [00:00<?, ?it/s]
pbar.set_description(u"áéíóú")
Traceback (most recent call last):
File "<stdin>", line 1, in <mo... | UnicodeEncodeError |
def display(
self,
msg=None,
pos=None,
# additional signals
close=False,
bar_style=None,
):
# Note: contrary to native tqdm, msg='' 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... | def display(
self,
msg=None,
pos=None,
# additional signals
close=False,
bar_style=None,
):
# Note: contrary to native tqdm, msg='' 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... | https://github.com/tqdm/tqdm/issues/594 | for _ in tqdm_notebook(range(10), ncols='400px', bar_format='{bar}'):
sleep(0.1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-aced8917afa9> in <module>()
1 # px ncols
----> 2 for _ in tqdm_noteboo... | TypeError |
def __init__(self, *args, **kwargs):
# Setup default output
if kwargs.get("file", sys.stderr) is sys.stderr:
kwargs["file"] = sys.stdout # avoid the red block in IPython
# Initialize parent class + avoid printing by using gui=True
kwargs["gui"] = True
kwargs.setdefault("bar_format", "{l_ba... | def __init__(self, *args, **kwargs):
# Setup default output
if kwargs.get("file", sys.stderr) is sys.stderr:
kwargs["file"] = sys.stdout # avoid the red block in IPython
# Remove the bar from the printed string, only print stats
if not kwargs.get("bar_format", None):
kwargs["bar_format... | https://github.com/tqdm/tqdm/issues/594 | for _ in tqdm_notebook(range(10), ncols='400px', bar_format='{bar}'):
sleep(0.1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-aced8917afa9> in <module>()
1 # px ncols
----> 2 for _ in tqdm_noteboo... | TypeError |
def pandas(tclass, *targs, **tkwargs):
"""
Registers the given `tqdm` class with
pandas.core.
( frame.DataFrame
| series.Series
| groupby.(generic.)DataFrameGroupBy
| groupby.(generic.)SeriesGroupBy
).progress_apply
A new instance will be create every time `p... | 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/tqdm/tqdm/issues/780 | Traceback (most recent call last):
File "/Users/martin/anaconda3/envs/momepy37/lib/python3.7/site-packages/tqdm/_tqdm.py", line 613, in pandas
from pandas.core.groupby.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'DataFrameGroupBy' from 'pandas.core.groupby.groupby' (/Users/martin/anaconda3/envs/m... | ImportError |
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/tqdm/tqdm/issues/673 | Traceback (most recent call last):
File "./patcher/env/bin/autopatch", line 11, in <module>
load_entry_point('PearPatcher==0.1', 'console_scripts', 'autopatch')()
File "build/bdist.macosx-10.13-x86_64/egg/pearpatcher/commandlineinterface.py", line 40, in main
File "build/bdist.macosx-10.13-x86_64/egg/pearpatcher/util.p... | TypeError |
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()
if "_lock" not in cls.__dict__:
cls._lock = TqdmDefaultWriteLock()
with cls._lock:
cls.... | https://github.com/tqdm/tqdm/issues/522 | [s1758208@login04(eddie) ~]$ conda create -n test
Solving environment: done
## Package Plan ##
environment location: /exports/eddie/scratch/s1758208/minitest/envs/test
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# ... | 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()
if "_lock" not in cls.__dict__:
cls._lock = TqdmDefaultWriteLock()
with cls._lock:
cls.... | https://github.com/tqdm/tqdm/issues/522 | [s1758208@login04(eddie) ~]$ conda create -n test
Solving environment: done
## Package Plan ##
environment location: /exports/eddie/scratch/s1758208/minitest/envs/test
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# ... | RuntimeError |
def write(cls, s, file=sys.stdout, end="\n"):
"""
Print a message via tqdm (without overlap with bars)
"""
fp = file
# Clear all bars
inst_cleared = []
for inst in getattr(cls, "_instances", []):
# Clear instance if in the target output file
# or if write output + tqdm outpu... | def write(cls, s, file=sys.stdout, end="\n"):
"""
Print a message via tqdm (without overlap with bars)
"""
fp = file
# Clear all bars
inst_cleared = []
for inst in getattr(cls, "_instances", []):
# Clear instance if in the target output file
# or if write output + tqdm outpu... | https://github.com/tqdm/tqdm/issues/268 | Traceback (most recent call last):
File "x.py", line 273, in train
bar.update(0)
File "C:\Python27\lib\site-packages\tqdm\_tqdm.py", line 808, in update
if self.avg_time is None \
ZeroDivisionError: float division by zero | ZeroDivisionError |
def __init__(
self,
iterable=None,
desc=None,
total=None,
leave=True,
file=sys.stderr,
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=... | def __init__(
self,
iterable=None,
desc=None,
total=None,
leave=True,
file=sys.stderr,
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=... | https://github.com/tqdm/tqdm/issues/268 | Traceback (most recent call last):
File "x.py", line 273, in train
bar.update(0)
File "C:\Python27\lib\site-packages\tqdm\_tqdm.py", line 808, in update
if self.avg_time is None \
ZeroDivisionError: float division by zero | ZeroDivisionError |
def __repr__(self):
return self.format_meter(
self.n,
self.total,
self._time() - self.start_t,
self.ncols,
self.desc,
self.ascii,
self.unit,
self.unit_scale,
1 / self.avg_time if self.avg_time else None,
self.bar_format,
)
| def __repr__(self):
return self.format_meter(
self.n,
self.total,
time() - self.last_print_t,
self.ncols,
self.desc,
self.ascii,
self.unit,
self.unit_scale,
1 / self.avg_time if self.avg_time else None,
self.bar_format,
)
| https://github.com/tqdm/tqdm/issues/268 | Traceback (most recent call last):
File "x.py", line 273, in train
bar.update(0)
File "C:\Python27\lib\site-packages\tqdm\_tqdm.py", line 808, in update
if self.avg_time is None \
ZeroDivisionError: float division by zero | ZeroDivisionError |
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/tqdm/tqdm/issues/268 | Traceback (most recent call last):
File "x.py", line 273, in train
bar.update(0)
File "C:\Python27\lib\site-packages\tqdm\_tqdm.py", line 808, in update
if self.avg_time is None \
ZeroDivisionError: float division by zero | ZeroDivisionError |
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/tqdm/tqdm/issues/268 | Traceback (most recent call last):
File "x.py", line 273, in train
bar.update(0)
File "C:\Python27\lib\site-packages\tqdm\_tqdm.py", line 808, in update
if self.avg_time is None \
ZeroDivisionError: float division by zero | ZeroDivisionError |
def status_printer(_, total=None, desc=None, ncols=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)... | def status_printer(_, total=None, desc=None, ncols=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)... | https://github.com/tqdm/tqdm/issues/187 | NameError Traceback (most recent call last)
<ipython-input-6-207cef0f8cd2> in <module>()
1 import tqdm
----> 2 for i in tqdm.tqdm_notebook(range(1000000)):
3 i * 2
~/.local/lib/python3.4/site-packages/tqdm/__init__.py in tqdm_notebook(*args, **kwargs)
17 """See tqdm._tqdm_notebo... | NameError |
def validate(cls: Type["Model"], value: Any) -> "Model":
if isinstance(value, cls):
return value.copy() if cls.__config__.copy_on_model_validation else value
value = cls._enforce_dict_if_root(value)
if isinstance(value, dict):
return cls(**value)
elif cls.__config__.orm_mode:
re... | def validate(cls: Type["Model"], value: Any) -> "Model":
value = cls._enforce_dict_if_root(value)
if isinstance(value, dict):
return cls(**value)
elif isinstance(value, cls):
return value.copy() if cls.__config__.copy_on_model_validation else value
elif cls.__config__.orm_mode:
r... | https://github.com/samuelcolvin/pydantic/issues/2449 | from typing import Generic
from typing import TypeVar
from typing import List
from pydantic.generics import GenericModel
from pydantic import BaseModel
T = TypeVar("T")
class BaseList(GenericModel, Generic[T]):
__root__: List[T]
class Test(BaseModel):
mylist: BaseList[int]
Test(mylist=[1,2,3,4])
# Test(mylist=BaseLi... | ValidationError |
def iter_contained_typevars(v: Any) -> Iterator[TypeVarType]:
"""Recursively iterate through all subtypes and type args of `v` and yield any typevars that are found."""
if isinstance(v, TypeVar):
yield v
elif (
hasattr(v, "__parameters__")
and not get_origin(v)
and lenient_is... | def iter_contained_typevars(v: Any) -> Iterator[TypeVarType]:
"""Recursively iterate through all subtypes and type args of `v` and yield any typevars that are found."""
if isinstance(v, TypeVar):
yield v
elif (
hasattr(v, "__parameters__")
and not get_origin(v)
and lenient_is... | https://github.com/samuelcolvin/pydantic/issues/2454 | Traceback (most recent call last):
File "scratch_101.py", line 12, in <module>
GModelType = GModel[Fields, str]
File "virtualenvs\foobar-HGIuaRl7-py3.9\lib\site-packages\pydantic\generics.py", line 110, in __class_getitem__
{param: None for param in iter_contained_typevars(typevars_map.values())}
File "virtualenvs\foob... | RecursionError |
def _type_analysis(self) -> None: # noqa: C901 (ignore complexity)
# typing interface is horrible, we have to do some ugly checks
if lenient_issubclass(self.type_, JsonWrapper):
self.type_ = self.type_.inner_type
self.parse_json = True
elif lenient_issubclass(self.type_, Json):
self... | def _type_analysis(self) -> None: # noqa: C901 (ignore complexity)
# typing interface is horrible, we have to do some ugly checks
if lenient_issubclass(self.type_, JsonWrapper):
self.type_ = self.type_.inner_type
self.parse_json = True
elif lenient_issubclass(self.type_, Json):
self... | https://github.com/samuelcolvin/pydantic/issues/2416 | TypeError Traceback (most recent call last)
~/miniconda3/envs/napdev/lib/python3.8/site-packages/pydantic/validators.cpython-38-darwin.so in pydantic.validators.find_validators()
TypeError: issubclass() arg 1 must be a class
During handling of the above exception, another exception occ... | TypeError |
def __new__(mcs, name, bases, namespace, **kwargs): # noqa C901
fields: Dict[str, ModelField] = {}
config = BaseConfig
validators: "ValidatorListDict" = {}
pre_root_validators, post_root_validators = [], []
private_attributes: Dict[str, ModelPrivateAttr] = {}
slots: SetStr = namespace.get("__s... | def __new__(mcs, name, bases, namespace, **kwargs): # noqa C901
fields: Dict[str, ModelField] = {}
config = BaseConfig
validators: "ValidatorListDict" = {}
pre_root_validators, post_root_validators = [], []
private_attributes: Dict[str, ModelPrivateAttr] = {}
slots: SetStr = namespace.get("__s... | https://github.com/samuelcolvin/pydantic/issues/2422 | Traceback (most recent call last):
File "bug.py", line 4, in <module>
class Foo1(BaseModel):
File "pydantic/main.py", line 352, in pydantic.main.ModelMetaclass.__new__
File "/usr/lib/python3.8/abc.py", line 85, in __new__
cls = super().__new__(mcls, name, bases, namespace, **kwargs)
ValueError: '__hash__' in __slots__ ... | ValueError |
def list_length_validator(cls, v: "Optional[List[T]]") -> "Optional[List[T]]":
if v is None:
return None
v = list_validator(v)
v_len = len(v)
if cls.min_items is not None and v_len < cls.min_items:
raise errors.ListMinLengthError(limit_value=cls.min_items)
if cls.max_items is not ... | def list_length_validator(
cls, v: "Optional[List[T]]", field: "ModelField"
) -> "Optional[List[T]]":
if v is None and not field.required:
return None
v = list_validator(v)
v_len = len(v)
if cls.min_items is not None and v_len < cls.min_items:
raise errors.ListMinLengthError(limit_... | https://github.com/samuelcolvin/pydantic/issues/2320 | Info model set: network_segments=None
Info model conset: network_segments=None
Info settings set: network_segments=None
Traceback (most recent call last):
File "/home/mihai/bug.py", line 25, in <module>
print(f"Info settings conset: {InfoSettingsConset()}")
File "pydantic/env_settings.py", line 34, in pydantic.env_set... | pydantic.error_wrappers.ValidationError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.