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 housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
delete = """
DELETE FROM alerts
WHERE (status IN ('closed', 'expired')
... | def housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
delete = """
DELETE FROM alerts
WHERE (status IN ('closed', 'expired')
... | https://github.com/alerta/alerta/issues/528 | 2018-04-28 00:06:43,862 - alerta[18702]: ERROR - HOUSEKEEPING FAILED: Type names and field names can only contain alphanumeric characters and underscores: '?column?' [in /usr/lib/python2.7/site-packages/alerta_server-5.2.0_-py2.7.egg/alerta/exceptions.py:67]
Traceback (most recent call last):
File "/usr/lib/python2.7/s... | ApiError |
def housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
expired_hours_ago = datetime.utcnow() - timedelta(hours=expired_threshold)
g.db.alerts.remove(
{
... | def housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
expired_hours_ago = datetime.utcnow() - timedelta(hours=expired_threshold)
g.db.alerts.remove(
{
... | https://github.com/alerta/alerta/issues/528 | 2018-04-28 00:06:43,862 - alerta[18702]: ERROR - HOUSEKEEPING FAILED: Type names and field names can only contain alphanumeric characters and underscores: '?column?' [in /usr/lib/python2.7/site-packages/alerta_server-5.2.0_-py2.7.egg/alerta/exceptions.py:67]
Traceback (most recent call last):
File "/usr/lib/python2.7/s... | ApiError |
def housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
delete = """
DELETE FROM alerts
WHERE (status IN ('closed', 'expired')
... | def housekeeping(self, expired_threshold, info_threshold):
# delete 'closed' or 'expired' alerts older than "expired_threshold" hours
# and 'informational' alerts older than "info_threshold" hours
delete = """
DELETE FROM alerts
WHERE (status IN ('closed', 'expired')
... | https://github.com/alerta/alerta/issues/528 | 2018-04-28 00:06:43,862 - alerta[18702]: ERROR - HOUSEKEEPING FAILED: Type names and field names can only contain alphanumeric characters and underscores: '?column?' [in /usr/lib/python2.7/site-packages/alerta_server-5.2.0_-py2.7.egg/alerta/exceptions.py:67]
Traceback (most recent call last):
File "/usr/lib/python2.7/s... | ApiError |
def housekeeping(expired_threshold=2, info_threshold=12):
expired, unshelved = db.housekeeping(expired_threshold, info_threshold)
for id, event, last_receive_id in expired:
history = History(
id=last_receive_id,
event=event,
status="expired",
text="expire... | def housekeeping(expired_threshold=2, info_threshold=12):
for id, event, status, last_receive_id in db.housekeeping(
expired_threshold, info_threshold
):
if status == "open":
text = "unshelved after timeout"
elif status == "expired":
text = "expired after timeout"... | https://github.com/alerta/alerta/issues/528 | 2018-04-28 00:06:43,862 - alerta[18702]: ERROR - HOUSEKEEPING FAILED: Type names and field names can only contain alphanumeric characters and underscores: '?column?' [in /usr/lib/python2.7/site-packages/alerta_server-5.2.0_-py2.7.egg/alerta/exceptions.py:67]
Traceback (most recent call last):
File "/usr/lib/python2.7/s... | ApiError |
def is_flapping(self, alert, window=1800, count=2):
"""
Return true if alert severity has changed more than X times in Y seconds
"""
pipeline = [
{
"$match": {
"environment": alert.environment,
"resource": alert.resource,
"event": alert... | def is_flapping(self, alert, window=1800, count=2):
"""
Return true if alert severity has changed more than X times in Y seconds
"""
pipeline = [
{
"$match": {
"environment": alert.environment,
"resource": alert.resource,
"event": alert... | https://github.com/alerta/alerta/issues/456 | 2018-01-26 11:04:16,782 - alerta.plugins.flapping[9]: INFO - recieved exception [in /usr/local/lib/python3.6/site-packages/alerta_flapping-1.0.1-py3.6.egg/alerta_flapping.py:28]
2018-01-26 11:04:16,782 - alerta.plugins.flapping[9]: ERROR - A pipeline stage specification object must contain exactly one field. [in /usr/l... | pymongo.errors.OperationFailure |
def main():
app.logger.info("Starting alerta version %s ...", __version__)
app.logger.info("Using MongoDB version %s ...", db.get_version())
app.run(host="0.0.0.0", port=8080, threaded=True)
| def main():
app.run(host="0.0.0.0", port=8080, threaded=True)
| https://github.com/alerta/alerta/issues/99 | [Sat Jun 20 12:53:00.260834 2015] [:error] [pid 19124:tid 140441230903040] 2015-06-20 12:53:00,260 - alerta.app[19124]: INFO - Starting alerta version 4.4.7 ...
[Sat Jun 20 12:53:00.322813 2015] [:error] [pid 19124:tid 140441230903040] 2015-06-20 12:53:00,322 - alerta.app[19124]: DEBUG - Connected to mongodb://localhos... | ServerSelectionTimeoutError |
def set(self, value):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"$set": {
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"value": value,... | def set(self, value):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"value": value,
"type": "gauge",
},
... | https://github.com/alerta/alerta/issues/96 | 5.172.237.230 - - [13/Jun/2015 19:50:25] "GET /management/status HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in w... | ValueError |
def inc(self):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"$set": {
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"type": "counter",
... | def inc(self):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"$set": {
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"type": "counter",
... | https://github.com/alerta/alerta/issues/96 | 5.172.237.230 - - [13/Jun/2015 19:50:25] "GET /management/status HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in w... | ValueError |
def stop_timer(self, start):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"$set": {
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"type": ... | def stop_timer(self, start):
db.metrics.update_one(
{"group": self.group, "name": self.name},
{
"$set": {
"group": self.group,
"name": self.name,
"title": self.title,
"description": self.description,
"type": ... | https://github.com/alerta/alerta/issues/96 | 5.172.237.230 - - [13/Jun/2015 19:50:25] "GET /management/status HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in w... | ValueError |
def refine_from_db(path, video):
if isinstance(video, Episode):
db = sqlite3.connect(
os.path.join(args.config_dir, "db", "bazarr.db"), timeout=30
)
c = db.cursor()
data = c.execute(
"SELECT table_shows.title, table_episodes.season, table_episodes.episode, tab... | def refine_from_db(path, video):
if isinstance(video, Episode):
db = sqlite3.connect(
os.path.join(args.config_dir, "db", "bazarr.db"), timeout=30
)
c = db.cursor()
data = c.execute(
"SELECT table_shows.title, table_episodes.season, table_episodes.episode, tab... | https://github.com/morpheus65535/bazarr/issues/346 | 2/03/2019 20:39:25|ERROR |root |BAZARR Error trying to get video information for this file: /volume1/remote/media/TV/Nice Serie/Season 01/the.serie.s01e10.1080p.web.x264-tbs.mkv|Traceback (most recent call last): File "/volume1/@appstore/bazarr/bazarr/get_subtitle.py", line 69, in get_vide... | TypeError |
def sync_episodes():
logging.debug("Starting episode sync from Sonarr.")
from get_settings import get_sonarr_settings
url_sonarr = get_sonarr_settings()[6]
apikey_sonarr = get_sonarr_settings()[4]
# Open database connection
db = sqlite3.connect(os.path.join(config_dir, "db/bazarr.db"), timeout... | def sync_episodes():
logging.debug("Starting episode sync from Sonarr.")
from get_settings import get_sonarr_settings
url_sonarr = get_sonarr_settings()[6]
apikey_sonarr = get_sonarr_settings()[4]
# Open database connection
db = sqlite3.connect(os.path.join(config_dir, "db/bazarr.db"), timeout... | https://github.com/morpheus65535/bazarr/issues/153 | 26/09/2018 04:04:37|ERROR|Job "Update movies list from Radarr (trigger: interval[0:05:00], next run at: 2018-09-26 04:09:33 PDT)" raised an exception|'Traceback (most recent call last):\n File "/app/libs/apscheduler/executors/base.py", line 125, in run_job\n retval = job.func(*job.args, **job.kwargs)\n File "/app/... | nIntegrityError |
def update_movies():
logging.debug("Starting movie sync from Radarr.")
from get_settings import get_radarr_settings
url_radarr = get_radarr_settings()[6]
apikey_radarr = get_radarr_settings()[4]
movie_default_enabled = get_general_settings()[18]
movie_default_language = get_general_settings()[1... | def update_movies():
logging.debug("Starting movie sync from Radarr.")
from get_settings import get_radarr_settings
url_radarr = get_radarr_settings()[6]
apikey_radarr = get_radarr_settings()[4]
movie_default_enabled = get_general_settings()[18]
movie_default_language = get_general_settings()[1... | https://github.com/morpheus65535/bazarr/issues/153 | 26/09/2018 04:04:37|ERROR|Job "Update movies list from Radarr (trigger: interval[0:05:00], next run at: 2018-09-26 04:09:33 PDT)" raised an exception|'Traceback (most recent call last):\n File "/app/libs/apscheduler/executors/base.py", line 125, in run_job\n retval = job.func(*job.args, **job.kwargs)\n File "/app/... | nIntegrityError |
def update_series():
from get_settings import get_sonarr_settings
url_sonarr = get_sonarr_settings()[6]
apikey_sonarr = get_sonarr_settings()[4]
serie_default_enabled = get_general_settings()[15]
serie_default_language = get_general_settings()[16]
serie_default_hi = get_general_settings()[17]
... | def update_series():
from get_settings import get_sonarr_settings
url_sonarr = get_sonarr_settings()[6]
apikey_sonarr = get_sonarr_settings()[4]
serie_default_enabled = get_general_settings()[15]
serie_default_language = get_general_settings()[16]
serie_default_hi = get_general_settings()[17]
... | https://github.com/morpheus65535/bazarr/issues/153 | 26/09/2018 04:04:37|ERROR|Job "Update movies list from Radarr (trigger: interval[0:05:00], next run at: 2018-09-26 04:09:33 PDT)" raised an exception|'Traceback (most recent call last):\n File "/app/libs/apscheduler/executors/base.py", line 125, in run_job\n retval = job.func(*job.args, **job.kwargs)\n File "/app/... | nIntegrityError |
def save_subtitles(video, subtitles, single=False, directory=None, encoding=None):
"""Save subtitles on filesystem.
Subtitles are saved in the order of the list. If a subtitle with a language has already been saved, other subtitles
with the same language are silently ignored.
The extension used is `.l... | def save_subtitles(video, subtitles, single=False, directory=None, encoding=None):
"""Save subtitles on filesystem.
Subtitles are saved in the order of the list. If a subtitle with a language has already been saved, other subtitles
with the same language are silently ignored.
The extension used is `.l... | https://github.com/morpheus65535/bazarr/issues/158 | Traceback (most recent call last):
File "c:\\bazarr\\get_subtitle.py", line 215, in manual_download_subtitle
result = save_subtitles(video, [best_subtitle], single=True, encoding=\utf-8\)
File "c:\\bazarr\\libs/subliminal\\core.py", line 771, in save_subtitles
return [saved_subtitles, subtitle_path]
UnboundLocalError: ... | UnboundLocalError |
def download_subtitle(
path, language, hi, providers, providers_auth, sceneName, media_type
):
if hi == "True":
hi = True
else:
hi = False
if media_type == "series":
type_of_score = 360
minimum_score = float(get_general_settings()[8]) / 100 * type_of_score
elif media_... | def download_subtitle(
path, language, hi, providers, providers_auth, sceneName, media_type
):
if hi == "True":
hi = True
else:
hi = False
if media_type == "series":
type_of_score = 360
minimum_score = float(get_general_settings()[8]) / 100 * type_of_score
elif media_... | https://github.com/morpheus65535/bazarr/issues/158 | Traceback (most recent call last):
File "c:\\bazarr\\get_subtitle.py", line 215, in manual_download_subtitle
result = save_subtitles(video, [best_subtitle], single=True, encoding=\utf-8\)
File "c:\\bazarr\\libs/subliminal\\core.py", line 771, in save_subtitles
return [saved_subtitles, subtitle_path]
UnboundLocalError: ... | UnboundLocalError |
def manual_download_subtitle(
path, language, hi, subtitle, provider, providers_auth, sceneName, media_type
):
if hi == "True":
hi = True
else:
hi = False
subtitle = pickle.loads(codecs.decode(subtitle.encode(), "base64"))
if media_type == "series":
type_of_score = 360
el... | def manual_download_subtitle(
path, language, hi, subtitle, provider, providers_auth, sceneName, media_type
):
if hi == "True":
hi = True
else:
hi = False
subtitle = pickle.loads(codecs.decode(subtitle.encode(), "base64"))
if media_type == "series":
type_of_score = 360
el... | https://github.com/morpheus65535/bazarr/issues/158 | Traceback (most recent call last):
File "c:\\bazarr\\get_subtitle.py", line 215, in manual_download_subtitle
result = save_subtitles(video, [best_subtitle], single=True, encoding=\utf-8\)
File "c:\\bazarr\\libs/subliminal\\core.py", line 771, in save_subtitles
return [saved_subtitles, subtitle_path]
UnboundLocalError: ... | UnboundLocalError |
def download(
obj,
provider,
refiner,
language,
age,
directory,
encoding,
single,
force,
hearing_impaired,
min_score,
max_workers,
archives,
verbose,
path,
):
"""Download best subtitles.
PATH can be an directory containing videos, a video file path or... | def download(
obj,
provider,
refiner,
language,
age,
directory,
encoding,
single,
force,
hearing_impaired,
min_score,
max_workers,
archives,
verbose,
path,
):
"""Download best subtitles.
PATH can be an directory containing videos, a video file path or... | https://github.com/morpheus65535/bazarr/issues/158 | Traceback (most recent call last):
File "c:\\bazarr\\get_subtitle.py", line 215, in manual_download_subtitle
result = save_subtitles(video, [best_subtitle], single=True, encoding=\utf-8\)
File "c:\\bazarr\\libs/subliminal\\core.py", line 771, in save_subtitles
return [saved_subtitles, subtitle_path]
UnboundLocalError: ... | UnboundLocalError |
def save_subtitles(video, subtitles, single=False, directory=None, encoding=None):
"""Save subtitles on filesystem.
Subtitles are saved in the order of the list. If a subtitle with a language has already been saved, other subtitles
with the same language are silently ignored.
The extension used is `.l... | def save_subtitles(video, subtitles, single=False, directory=None, encoding=None):
"""Save subtitles on filesystem.
Subtitles are saved in the order of the list. If a subtitle with a language has already been saved, other subtitles
with the same language are silently ignored.
The extension used is `.l... | https://github.com/morpheus65535/bazarr/issues/158 | Traceback (most recent call last):
File "c:\\bazarr\\get_subtitle.py", line 215, in manual_download_subtitle
result = save_subtitles(video, [best_subtitle], single=True, encoding=\utf-8\)
File "c:\\bazarr\\libs/subliminal\\core.py", line 771, in save_subtitles
return [saved_subtitles, subtitle_path]
UnboundLocalError: ... | UnboundLocalError |
def _get_filters_from_where_node(self, where_node, check_only=False):
# Check if this is a leaf node
if isinstance(where_node, Lookup):
if isinstance(where_node.lhs, ExtractDate):
if isinstance(where_node.lhs, ExtractYear):
field_attname = where_node.lhs.lhs.target.attname
... | def _get_filters_from_where_node(self, where_node, check_only=False):
# Check if this is a leaf node
if isinstance(where_node, Lookup):
field_attname = where_node.lhs.target.attname
lookup = where_node.lookup_name
value = where_node.rhs
# Ignore pointer fields that show up in sp... | https://github.com/wagtail/wagtail/issues/5967 | Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/gadirrustamli/anaconda/envs/wagtail-test/lib/python3.8/site-packages/wagtail/search/queryset.py", line 11, in search
return search_backend.search(query, self, fields=fields,
File "/Users/gadirrustamli/anaconda/envs/wagtail-test/lib/py... | AttributeError |
def find_embed(self, url, max_width=None):
# Find provider
endpoint = self._get_endpoint(url)
if endpoint is None:
raise EmbedNotFoundException
# Work out params
params = self.options.copy()
params["url"] = url
params["format"] = "json"
if max_width:
params["maxwidth"] =... | def find_embed(self, url, max_width=None):
# Find provider
endpoint = self._get_endpoint(url)
if endpoint is None:
raise EmbedNotFoundException
# Work out params
params = self.options.copy()
params["url"] = url
params["format"] = "json"
if max_width:
params["maxwidth"] =... | https://github.com/wagtail/wagtail/issues/6646 | Internal Server Error: /admin/pages/127028/edit/
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 179, in _get_response
r... | json.decoder.JSONDecodeError |
def handle(self, *args, **options):
current_page_id = None
missing_models_content_type_ids = set()
for revision in (
PageRevision.objects.order_by("page_id", "created_at")
.select_related("page")
.iterator()
):
# This revision is for a page type that is no longer in the d... | def handle(self, *args, **options):
current_page_id = None
missing_models_content_type_ids = set()
for revision in (
PageRevision.objects.order_by("page_id", "created_at")
.select_related("page")
.iterator()
):
# This revision is for a page type that is no longer in the d... | https://github.com/wagtail/wagtail/issues/6498 | $ python manage.py create_log_entries_from_revisions
Traceback (most recent call last):
File "manage.py", line 12, in <module>
execute_from_command_line(sys.argv)
File "/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/lib/python3.6/site-p... | AttributeError |
def can_delete(self, locale):
if not self.queryset.exclude(pk=locale.pk).exists():
self.cannot_delete_message = gettext_lazy(
"This locale cannot be deleted because there are no other locales."
)
return False
if get_locale_usage(locale) != (0, 0):
self.cannot_delete_... | def can_delete(self, locale):
return get_locale_usage(locale) == (0, 0)
| https://github.com/wagtail/wagtail/issues/6533 | Internal Server Error: /locales/1/delete/
Traceback (most recent call last):
File "C:\Work\virtual_env\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Work\virtual_env\lib\site-packages\django\core\handlers\base.py", line 179, in _get_response
response =... | django.db.models.deletion.ProtectedError |
def get_content_languages():
"""
Cache of settings.WAGTAIL_CONTENT_LANGUAGES in a dictionary for easy lookups by key.
"""
content_languages = getattr(settings, "WAGTAIL_CONTENT_LANGUAGES", None)
languages = dict(settings.LANGUAGES)
if content_languages is None:
# Default to a single lan... | def get_content_languages():
"""
Cache of settings.WAGTAIL_CONTENT_LANGUAGES in a dictionary for easy lookups by key.
"""
content_languages = getattr(settings, "WAGTAIL_CONTENT_LANGUAGES", None)
languages = dict(settings.LANGUAGES)
if content_languages is None:
# Default to a single lan... | https://github.com/wagtail/wagtail/issues/6539 | Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/matthew/.virtualenvs/use18n/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/Users/matthew/.virtualenvs/use18n/lib/... | KeyError |
def get_active(cls):
"""
Returns the Locale that corresponds to the currently activated language in Django.
"""
try:
return cls.objects.get_for_language(translation.get_language())
except (cls.DoesNotExist, LookupError):
return cls.get_default()
| def get_active(cls):
"""
Returns the Locale that corresponds to the currently activated language in Django.
"""
try:
return cls.objects.get_for_language(translation.get_language())
except cls.DoesNotExist:
return cls.get_default()
| https://github.com/wagtail/wagtail/issues/6540 | Traceback (most recent call last):
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/base.py",... | LookupError |
def localized(self):
"""
Finds the translation in the current active language.
If there is no translation in the active language, self is returned.
"""
try:
locale = Locale.get_active()
except (LookupError, Locale.DoesNotExist):
return self
if locale.id == self.locale_id:
... | def localized(self):
"""
Finds the translation in the current active language.
If there is no translation in the active language, self is returned.
"""
locale = Locale.get_active()
if locale.id == self.locale_id:
return self
return self.get_translation_or_none(locale) or self
| https://github.com/wagtail/wagtail/issues/6540 | Traceback (most recent call last):
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/base.py",... | LookupError |
def localized_draft(self):
"""
Finds the translation in the current active language.
If there is no translation in the active language, self is returned.
Note: This will return translations that are in draft. If you want to exclude
these, use the ``.localized`` attribute.
"""
try:
... | def localized_draft(self):
"""
Finds the translation in the current active language.
If there is no translation in the active language, self is returned.
Note: This will return translations that are in draft. If you want to exclude
these, use the ``.localized`` attribute.
"""
locale = Loca... | https://github.com/wagtail/wagtail/issues/6540 | Traceback (most recent call last):
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/sef/.virtualenvs/wagtail-bugreport-u47kcAMn/lib/python3.8/site-packages/django/core/handlers/base.py",... | LookupError |
def get_url_parts(self, request=None):
"""
Determine the URL for this page and return it as a tuple of
``(site_id, site_root_url, page_url_relative_to_site_root)``.
Return None if the page is not routable.
This is used internally by the ``full_url``, ``url``, ``relative_url``
and ``get_site`` p... | def get_url_parts(self, request=None):
"""
Determine the URL for this page and return it as a tuple of
``(site_id, site_root_url, page_url_relative_to_site_root)``.
Return None if the page is not routable.
This is used internally by the ``full_url``, ``url``, ``relative_url``
and ``get_site`` p... | https://github.com/wagtail/wagtail/issues/6511 | Internal Server Error: /admin/api/main/pages/
Traceback (most recent call last):
File "/Users/matthew/.virtualenvs/langwithoutwagtail/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/matthew/.virtualenvs/langwithoutwagtail/lib/python3.9/site... | LookupError |
def handle(self, *args, **options):
current_page_id = None
missing_models_content_type_ids = set()
for revision in (
PageRevision.objects.order_by("page_id", "created_at")
.select_related("page")
.iterator()
):
# This revision is for a page type that is no longer in the d... | def handle(self, *args, **options):
current_page_id = None
missing_models_content_type_ids = set()
for revision in (
PageRevision.objects.order_by("page_id", "created_at")
.select_related("page")
.iterator()
):
# This revision is for a page type that is no longer in the d... | https://github.com/wagtail/wagtail/issues/6368 | Traceback (most recent call last):
File "./cfgov/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/Users/higginsw/.pyenv/versions/c15gov/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/Users/higginsw/.pyenv/versio... | Exception |
def timesince_last_update(last_update, time_prefix="", use_shorthand=True):
"""
Returns:
- the time of update if last_update is today, if any prefix is supplied, the output will use it
- time since last update othewise. Defaults to the simplified timesince,
but can return the full s... | def timesince_last_update(last_update, time_prefix="", use_shorthand=True):
"""
Returns:
- the time of update if last_update is today, if any prefix is supplied, the output will use it
- time since last update othewise. Defaults to the simplified timesince,
but can return the full s... | https://github.com/wagtail/wagtail/issues/6345 | Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/pages/3/edit/
Django Version: 3.1
Python Version: 3.8.3
Installed Applications:
['home',
'search',
'wagtail.contrib.forms',
'wagtail.contrib.redirects',
'wagtail.embeds',
'wagtail.sites',
'wagtail.users',
'wagtail.snippets',
'wagtail.documents... | ValueError |
def __get__(self, obj, type=None):
if obj is None:
return self
field_name = self.field.name
if field_name not in obj.__dict__:
# Field is deferred. Fetch it from db.
obj.refresh_from_db(fields=[field_name])
return obj.__dict__[field_name]
| def __get__(self, obj, type=None):
if obj is None:
return self
return obj.__dict__[self.field.name]
| https://github.com/wagtail/wagtail/issues/5537 | (Pdb++) page
<SimplePage: test>
(Pdb++) page.content
*** KeyError: 'content'
Traceback (most recent call last):
File "/home/myproject/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.7/site-packages/wagtail/core/fields.py", line 34, in __get__
return obj.__dict__[self.field.name]
(Pdb++) page._meta.model.objects.get(p... | KeyError |
def to_representation(self, page):
if page.specific_class is None:
return None
name = page.specific_class._meta.app_label + "." + page.specific_class.__name__
self.context["view"].seen_types[name] = page.specific_class
return name
| def to_representation(self, page):
name = page.specific_class._meta.app_label + "." + page.specific_class.__name__
self.context["view"].seen_types[name] = page.specific_class
return name
| https://github.com/wagtail/wagtail/issues/4592 | Internal Server Error: /admin/api/v2beta/pages/
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/bakerydemo/lib/python3.4/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/home/vagrant/.virtualenvs/bakerydemo/lib/python3.4/site-packages/django... | AttributeError |
def get_queryset(self):
request = self.request
# Allow pages to be filtered to a specific type
try:
models = page_models_from_string(request.GET.get("type", "wagtailcore.Page"))
except (LookupError, ValueError):
raise BadRequestError("type doesn't exist")
if not models:
mod... | def get_queryset(self):
request = self.request
# Allow pages to be filtered to a specific type
try:
models = page_models_from_string(request.GET.get("type", "wagtailcore.Page"))
except (LookupError, ValueError):
raise BadRequestError("type doesn't exist")
if not models:
mod... | https://github.com/wagtail/wagtail/issues/3967 | Internal Server Error: /cms/api/v2beta/pages/
Traceback (most recent call last):
File "/Users/thomas/virtualenvs/djangoenv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Users/thomas/virtualenvs/djangoenv/lib/python3.5/site-packages/django/core/... | AttributeError |
def get_base_url(request=None):
base_url = getattr(
settings,
"WAGTAILAPI_BASE_URL",
request.site.root_url if request and request.site else None,
)
if base_url:
# We only want the scheme and netloc
base_url_parsed = urlparse(base_url)
return base_url_parsed.... | def get_base_url(request=None):
base_url = getattr(
settings, "WAGTAILAPI_BASE_URL", request.site.root_url if request else None
)
if base_url:
# We only want the scheme and netloc
base_url_parsed = urlparse(base_url)
return base_url_parsed.scheme + "://" + base_url_parsed.n... | https://github.com/wagtail/wagtail/issues/3967 | Internal Server Error: /cms/api/v2beta/pages/
Traceback (most recent call last):
File "/Users/thomas/virtualenvs/djangoenv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Users/thomas/virtualenvs/djangoenv/lib/python3.5/site-packages/django/core/... | AttributeError |
def dummy_request(self, original_request=None, **meta):
"""
Construct a HttpRequest object that is, as far as possible, representative of ones that would
receive this page as a response. Used for previewing / moderation and any other place where we
want to display a view of this page in the admin interf... | def dummy_request(self, original_request=None, **meta):
"""
Construct a HttpRequest object that is, as far as possible, representative of ones that would
receive this page as a response. Used for previewing / moderation and any other place where we
want to display a view of this page in the admin interf... | https://github.com/wagtail/wagtail/issues/2989 | [ERROR] [django.request] [exception/handle_uncaught_exception] Internal Server Error: /cmspnl/pages/53/edit/preview/
Traceback (most recent call last):
File "virtualenv\lib\site-packages\django\core\handlers\base.py", line 131, in get_response
response = middleware_method(request, response)
File "virtualenv\lib\site-pa... | KeyError |
def get_searchable_content(self, value):
# Return the display value as the searchable value
text_value = force_text(value)
for k, v in self.field.choices:
if isinstance(v, (list, tuple)):
# This is an optgroup, so look inside the group for options
for k2, v2 in v:
... | def get_searchable_content(self, value):
# Return the display value as the searchable value
text_value = force_text(value)
for k, v in self.field.choices:
if isinstance(v, (list, tuple)):
# This is an optgroup, so look inside the group for options
for k2, v2 in v:
... | https://github.com/wagtail/wagtail/issues/2928 | → python manage.py update_index
Updating backend: default
default: Rebuilding index wagtail_serialization
default: home.HomePage Traceback (most recent call last):
File "/Users/moritz/python/buchbasel/lib/python3.4/site-packages/elasticsearch/serializer.py", line 45, in dumps
return json.dumps(data, default... | TypeError |
def preview_on_create(
request, content_type_app_name, content_type_model_name, parent_page_id
):
# Receive the form submission that would typically be posted to the 'create' view. If submission is valid,
# return the rendered page; if not, re-render the edit form
try:
content_type = ContentType... | def preview_on_create(
request, content_type_app_name, content_type_model_name, parent_page_id
):
# Receive the form submission that would typically be posted to the 'create' view. If submission is valid,
# return the rendered page; if not, re-render the edit form
try:
content_type = ContentType... | https://github.com/wagtail/wagtail/issues/2599 | Internal Server Error: /admin/pages/add/core/articlepage/24/preview/
Traceback (most recent call last):
File "/var/www/inner.kiwi/.pyenv/versions/inner.kiwi/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "... | django.core.exceptions.ValidationError |
def get_form_class(cls, model):
"""
Construct a form class that has all the fields and formsets named in
the children of this edit handler.
"""
if cls._form_class is None:
# If a custom form class was passed to the EditHandler, use it.
# Otherwise, use the base_form_class from the mo... | def get_form_class(cls, model):
"""
Construct a form class that has all the fields and formsets named in
the children of this edit handler.
"""
if cls._form_class is None:
cls._form_class = get_form_for_model(
model,
form_class=cls.base_form_class,
fields=... | https://github.com/wagtail/wagtail/issues/2267 | Traceback (most recent call last):
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line ... | TypeError |
def __init__(self, children, base_form_class=None):
self.children = children
self.base_form_class = base_form_class
| def __init__(self, children, base_form_class=BaseFormEditHandler.base_form_class):
self.children = children
self.base_form_class = base_form_class
| https://github.com/wagtail/wagtail/issues/2267 | Traceback (most recent call last):
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line ... | TypeError |
def __init__(self, children, heading="", classname="", base_form_class=None):
self.children = children
self.heading = heading
self.classname = classname
self.base_form_class = base_form_class
| def __init__(
self,
children,
heading="",
classname="",
base_form_class=BaseFormEditHandler.base_form_class,
):
self.children = children
self.heading = heading
self.classname = classname
self.base_form_class = base_form_class
| https://github.com/wagtail/wagtail/issues/2267 | Traceback (most recent call last):
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line ... | TypeError |
def check(cls, **kwargs):
errors = super(Page, cls).check(**kwargs)
# Check that foreign keys from pages are not configured to cascade
# This is the default Django behaviour which must be explicitly overridden
# to prevent pages disappearing unexpectedly and the tree being corrupted
# get names of... | def check(cls, **kwargs):
errors = super(Page, cls).check(**kwargs)
# Check that foreign keys from pages are not configured to cascade
# This is the default Django behaviour which must be explicitly overridden
# to prevent pages disappearing unexpectedly and the tree being corrupted
# get names of... | https://github.com/wagtail/wagtail/issues/2267 | Traceback (most recent call last):
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/matt/Dev/MyProject/MyApp/lib/python3.4/site-packages/django/core/handlers/base.py", line ... | TypeError |
def process_response(self, request, response):
# No need to check for a redirect for non-404 responses.
if response.status_code != 404:
return response
# If a middleware before `SiteMiddleware` returned a response the
# `site` attribute was never set, ref #2120
if not hasattr(request, "site... | def process_response(self, request, response):
# No need to check for a redirect for non-404 responses.
if response.status_code != 404:
return response
# Get the path
path = models.Redirect.normalise_path(request.get_full_path())
# Get the path without the query string or params
path_w... | https://github.com/wagtail/wagtail/issues/2120 | Internal Server Error: /page/foo
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 223, in get_response
response = middleware_method(request, response)
File "/usr/local/lib/python2.7/dist-packages/wagtail/wagtailredirects/middleware.py", line 22, in proc... | AttributeError |
def __init__(self, content_type=None, **kwargs):
super(AdminPageChooser, self).__init__(**kwargs)
self._content_type = content_type
| def __init__(self, content_type=None, **kwargs):
super(AdminPageChooser, self).__init__(**kwargs)
self.target_content_types = content_type or ContentType.objects.get_for_model(Page)
# Make sure target_content_types is a list or tuple
if not isinstance(self.target_content_types, (list, tuple)):
... | https://github.com/wagtail/wagtail/issues/1673 | Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/opt/pyenv/versions/myproj/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/usr/local/opt/pyenv/versions/myproj/... | RuntimeError |
def get_willow_image(self):
# Open file if it is closed
close_file = False
try:
image_file = self.file
if self.file.closed:
# Reopen the file
if self.is_stored_locally():
self.file.open("rb")
else:
# Some external storage b... | def get_willow_image(self):
# Open file if it is closed
close_file = False
try:
if self.file.closed:
self.file.open("rb")
close_file = True
except IOError as e:
# re-throw this as a SourceImageIOError so that calling code can distinguish
# these from IOErr... | https://github.com/wagtail/wagtail/issues/1397 | [11/Jun/2015 13:05:29] "POST /cms/images/chooser/upload/ HTTP/1.1" 500 23947
Internal Server Error: /cms/images/chooser/upload/
Traceback (most recent call last):
File "/Users/john/.virtualenvs/website/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(reque... | ValueError |
def purge_page_from_cache(page, backend_settings=None, backends=None):
page_url = page.full_url
if page_url is None: # nothing to be done if the page has no routable URL
return
for backend_name, backend in get_backends(
backend_settings=backend_settings, backends=backends
).items():
... | def purge_page_from_cache(page, backend_settings=None, backends=None):
for backend_name, backend in get_backends(
backend_settings=backend_settings, backends=backends
).items():
# Purge cached paths from cache
for path in page.specific.get_cached_paths():
logger.info("[%s] Pu... | https://github.com/wagtail/wagtail/issues/1208 | [17/Apr/2015 20:02:28] ERROR [django.request:231] Internal Server Error: /admin/pages/new/pages/genericpage/1/
Traceback (most recent call last):
File "/Users/jryding/.virtualenvs/cms/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args... | TypeError |
def edit(request, image_id):
Image = get_image_model()
ImageForm = get_image_form(Image)
image = get_object_or_404(Image, id=image_id)
if not image.is_editable_by_user(request.user):
raise PermissionDenied
if request.POST:
original_file = image.file
form = ImageForm(reques... | def edit(request, image_id):
Image = get_image_model()
ImageForm = get_image_form(Image)
image = get_object_or_404(Image, id=image_id)
if not image.is_editable_by_user(request.user):
raise PermissionDenied
if request.POST:
original_file = image.file
form = ImageForm(reques... | https://github.com/wagtail/wagtail/issues/935 | Traceback (most recent call last):
File "/srv/django/site/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/django/site/env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 21, i... | OSError |
def create_project(parser, options, args):
# Validate args
if len(args) < 2:
parser.error("Please specify a name for your wagtail installation")
elif len(args) > 2:
parser.error("Too many arguments")
project_name = args[1]
# Make sure given name is not already in use by another pyt... | def create_project(parser, options, args):
# Validate args
if len(args) < 2:
parser.error("Please specify a name for your wagtail installation")
elif len(args) > 2:
parser.error("Too many arguments")
project_name = args[1]
# Make sure given name is not already in use by another pyt... | https://github.com/wagtail/wagtail/issues/625 | $ wagtail start wagtailtest
Creating a wagtail project called wagtailtest
Traceback (most recent call last):
File "d:\VirtualEnvs\wagtail_env\Scripts\wagtail-script.py", line 9, in <module>
load_entry_point('wagtail==0.6', 'console_scripts', 'wagtail')()
File "d:\VirtualEnvs\wagtail_env\lib\site-packages\wagtail\bin\wa... | WindowsError |
def serialize(self, form):
data = {}
for key in form.inputs.keys():
input = form.inputs[key]
if getattr(input, "type", "") == "submit":
try:
form.remove(input)
# Issue 595: throws ValueError: Element not child of this node
except ValueError:
... | def serialize(self, form):
data = {}
for key in form.inputs.keys():
input = form.inputs[key]
if getattr(input, "type", "") == "submit":
form.remove(input)
for k, v in form.fields.items():
if v is None:
continue
if isinstance(v, lxml.html.MultipleSel... | https://github.com/cobrateam/splinter/issues/595 | Traceback (most recent call last):
File "/home/suresh/appt/myproject/appt/tests/test_blackout2.py", line 96, in test_delete
browser.find_by_name('login').click()
File "/home/suresh/appt/local/lib/python3.5/site-packages/splinter/driver/lxmldriver.py", line 397, in click
return self.parent.submit_data(parent_form)
File ... | ValueError |
def connect(self, url):
if not (url.startswith("file:") or url.startswith("about:")):
self.request_url = url
self._create_connection()
self._store_response()
self.conn.close()
else:
self.status_code = StatusCode(200, "Ok")
| def connect(self, url):
if not url.startswith("file:"):
self.request_url = url
self._create_connection()
self._store_response()
self.conn.close()
else:
self.status_code = StatusCode(200, "Ok")
| https://github.com/cobrateam/splinter/issues/233 | from splinter import Browser
browser = Browser()
browser.visit('about:blank')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/lorin/.virtualenvs/myvenv/lib/python2.7/site-packages/splinter/dr
iver/webdriver/__init__.py", line 44, in visit
self.connect(url)
File "/Users/lorin/.virtual... | AttributeError |
def expect_compound_columns_to_be_unique(
self,
column_list,
ignore_row_if="all_values_are_missing",
result_format=None,
row_condition=None,
condition_parser=None,
include_config=True,
catch_exceptions=None,
meta=None,
):
columns = [
sa.column(col["name"]) for col in self... | def expect_compound_columns_to_be_unique(
self,
column_list,
ignore_row_if="all_values_are_missing",
result_format=None,
row_condition=None,
condition_parser=None,
include_config=True,
catch_exceptions=None,
meta=None,
):
columns = [
sa.column(col["name"]) for col in self... | https://github.com/great-expectations/great_expectations/issues/2451 | float division by zero
Traceback (most recent call last):
...
File "py_deps/pypi__great_expectations/great_expectations/data_asset/util.py", line 80, in f
return self.mthd(obj, *args, **kwargs)
File "py_deps/pypi__great_expectations/great_expectations/data_asset/data_asset.py", line 275, in wrapper
raise err
File "py_d... | ZeroDivisionError |
def __init__(
self,
table_name,
key_columns,
fixed_length_key=True,
credentials=None,
url=None,
connection_string=None,
engine=None,
store_name=None,
suppress_store_backend_id=False,
manually_initialize_store_backend_id: str = "",
**kwargs,
):
super().__init__(
... | def __init__(
self,
table_name,
key_columns,
fixed_length_key=True,
credentials=None,
url=None,
connection_string=None,
engine=None,
store_name=None,
suppress_store_backend_id=False,
**kwargs,
):
super().__init__(
fixed_length_key=fixed_length_key,
suppres... | https://github.com/great-expectations/great_expectations/issues/2181 | ➜ great_expectations store list [130 01:40:51P Wed 12/16/20]
Traceback (most recent call last):
File "/Users/ryan/.virtualenvs/ge-13/lib/python3.8... | TypeError |
def convert_to_json_serializable(data):
"""
Helper function to convert an object to one that is json serializable
Args:
data: an object to attempt to convert a corresponding json-serializable object
Returns:
(dict) A converted test_object
Warning:
test_obj may also be conv... | def convert_to_json_serializable(data):
"""
Helper function to convert an object to one that is json serializable
Args:
data: an object to attempt to convert a corresponding json-serializable object
Returns:
(dict) A converted test_object
Warning:
test_obj may also be conv... | https://github.com/great-expectations/great_expectations/issues/2029 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "env/lib/python3.8/site-packages/great_expectations/core/__init__.py", line 2000, in __repr__
return json.dumps(self.to_json_dict(), indent=2)
File "env/lib/python3.8/site-packages/great_expectations/core/__init__.py", line 2026, in to_json_dic... | TypeError |
def ensure_json_serializable(data):
"""
Helper function to convert an object to one that is json serializable
Args:
data: an object to attempt to convert a corresponding json-serializable object
Returns:
(dict) A converted test_object
Warning:
test_obj may also be converte... | def ensure_json_serializable(data):
"""
Helper function to convert an object to one that is json serializable
Args:
data: an object to attempt to convert a corresponding json-serializable object
Returns:
(dict) A converted test_object
Warning:
test_obj may also be converte... | https://github.com/great-expectations/great_expectations/issues/2029 | Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "env/lib/python3.8/site-packages/great_expectations/core/__init__.py", line 2000, in __repr__
return json.dumps(self.to_json_dict(), indent=2)
File "env/lib/python3.8/site-packages/great_expectations/core/__init__.py", line 2026, in to_json_dic... | TypeError |
def remove_key(self, key):
from google.cloud import storage
from google.cloud.exceptions import NotFound
gcs = storage.Client(project=self.project)
bucket = gcs.get_bucket(self.bucket)
try:
bucket.delete_blobs(blobs=list(bucket.list_blobs(prefix=self.prefix)))
except NotFound:
r... | def remove_key(self, key):
from google.cloud import storage
from google.cloud.exceptions import NotFound
gcs = storage.Client(project=self.project)
bucket = gcs.get_bucket(self.bucket)
try:
bucket.delete_blobs(blobs=bucket.list_blobs(prefix=self.prefix))
except NotFound:
return ... | https://github.com/great-expectations/great_expectations/issues/1882 | jovyan@41da7a95ddee:~/ecp-jupyter-notebooks$ great_expectations checkpoint run parquet_check
Heads up! This feature is Experimental. It may change. Please give us your feedback!
Error running action with name update_data_docs
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/great_expectat... | TypeError |
def render(self, validation_results: ExpectationSuiteValidationResult):
run_id = validation_results.meta["run_id"]
if isinstance(run_id, str):
try:
run_time = parse(run_id).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
except (ValueError, TypeError):
run_time = "__none__"
run... | def render(self, validation_results: ExpectationSuiteValidationResult):
run_id = validation_results.meta["run_id"]
if isinstance(run_id, str):
try:
run_time = parse(run_id).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
except (ValueError, TypeError):
run_time = "__none__"
run... | https://github.com/great-expectations/great_expectations/issues/1913 | ❯ great_expectations docs build
The following Data Docs sites will be built:
- local_site: file:///Users/taylor/repos/sdap/ge/great_expectations/uncommitted/data_docs/local_site/index.html
Would you like to proceed? [Y/n]:
Building Data Docs...
--- Logging error ---
Traceback (most recent call last):
File "/Users/... | TypeError |
def _render_validation_header(cls, validation_results):
success = validation_results.success
expectation_suite_name = validation_results.meta["expectation_suite_name"]
expectation_suite_path_components = (
[".." for _ in range(len(expectation_suite_name.split(".")) + 3)]
+ ["expectations"]
... | def _render_validation_header(cls, validation_results):
success = validation_results.success
expectation_suite_name = validation_results.meta["expectation_suite_name"]
expectation_suite_path_components = (
[".." for _ in range(len(expectation_suite_name.split(".")) + 3)]
+ ["expectations"]
... | https://github.com/great-expectations/great_expectations/issues/1913 | ❯ great_expectations docs build
The following Data Docs sites will be built:
- local_site: file:///Users/taylor/repos/sdap/ge/great_expectations/uncommitted/data_docs/local_site/index.html
Would you like to proceed? [Y/n]:
Building Data Docs...
--- Logging error ---
Traceback (most recent call last):
File "/Users/... | TypeError |
def render(self, expectations):
columns, ordered_columns = self._group_and_order_expectations_by_column(
expectations
)
expectation_suite_name = expectations.expectation_suite_name
overview_content_blocks = [
self._render_expectation_suite_header(),
self._render_expectation_suit... | def render(self, expectations):
columns, ordered_columns = self._group_and_order_expectations_by_column(
expectations
)
expectation_suite_name = expectations.expectation_suite_name
overview_content_blocks = [
self._render_expectation_suite_header(),
self._render_expectation_suit... | https://github.com/great-expectations/great_expectations/issues/1913 | ❯ great_expectations docs build
The following Data Docs sites will be built:
- local_site: file:///Users/taylor/repos/sdap/ge/great_expectations/uncommitted/data_docs/local_site/index.html
Would you like to proceed? [Y/n]:
Building Data Docs...
--- Logging error ---
Traceback (most recent call last):
File "/Users/... | TypeError |
def render(self, validation_results):
run_id = validation_results.meta["run_id"]
if isinstance(run_id, str):
try:
run_time = parse(run_id).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
except (ValueError, TypeError):
run_time = "__none__"
run_name = run_id
elif isinstance... | def render(self, validation_results):
run_id = validation_results.meta["run_id"]
if isinstance(run_id, str):
try:
run_time = parse(run_id).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
except (ValueError, TypeError):
run_time = "__none__"
run_name = run_id
elif isinstance... | https://github.com/great-expectations/great_expectations/issues/1913 | ❯ great_expectations docs build
The following Data Docs sites will be built:
- local_site: file:///Users/taylor/repos/sdap/ge/great_expectations/uncommitted/data_docs/local_site/index.html
Would you like to proceed? [Y/n]:
Building Data Docs...
--- Logging error ---
Traceback (most recent call last):
File "/Users/... | TypeError |
def build(self, resource_identifiers=None):
source_store_keys = self.source_store.list_keys()
if self.name == "validations" and self.validation_results_limit:
source_store_keys = sorted(
source_store_keys, key=lambda x: x.run_id.run_time, reverse=True
)[: self.validation_results_limi... | def build(self, resource_identifiers=None):
source_store_keys = self.source_store.list_keys()
if self.name == "validations" and self.validation_results_limit:
source_store_keys = sorted(
source_store_keys, key=lambda x: x.run_id.run_time, reverse=True
)[: self.validation_results_limi... | https://github.com/great-expectations/great_expectations/issues/1913 | ❯ great_expectations docs build
The following Data Docs sites will be built:
- local_site: file:///Users/taylor/repos/sdap/ge/great_expectations/uncommitted/data_docs/local_site/index.html
Would you like to proceed? [Y/n]:
Building Data Docs...
--- Logging error ---
Traceback (most recent call last):
File "/Users/... | TypeError |
def __init__(
self,
expectation_suite_name,
expectations=None,
evaluation_parameters=None,
data_asset_type=None,
meta=None,
):
self.expectation_suite_name = expectation_suite_name
if expectations is None:
expectations = []
self.expectations = [
ExpectationConfiguratio... | def __init__(
self,
expectation_suite_name,
expectations=None,
evaluation_parameters=None,
data_asset_type=None,
meta=None,
):
self.expectation_suite_name = expectation_suite_name
if expectations is None:
expectations = []
self.expectations = [
ExpectationConfiguratio... | https://github.com/great-expectations/great_expectations/issues/1637 | --- Logging error ---
Traceback (most recent call last):
File "/Users/taylor/repos/forks/great_expectations/great_expectations/render/renderer/site_builder.py", line 427, in build
rendered_content = self.renderer_class.render(resource)
File "/Users/taylor/repos/forks/great_expectations/great_expectations/render/rendere... | KeyError |
def _set(self, key, value, content_encoding="utf-8", content_type="application/json"):
gcs_object_key = os.path.join(self.prefix, self._convert_key_to_filepath(key))
from google.cloud import storage
gcs = storage.Client(project=self.project)
bucket = gcs.get_bucket(self.bucket)
blob = bucket.blob(... | def _set(self, key, value, content_encoding="utf-8", content_type="application/json"):
gcs_object_key = os.path.join(self.prefix, self._convert_key_to_filepath(key))
from google.cloud import storage
gcs = storage.Client(project=self.project)
bucket = gcs.get_bucket(self.bucket)
blob = bucket.blob(... | https://github.com/great-expectations/great_expectations/issues/1393 | $ great_expectations docs build
Building Data Docs...
Traceback (most recent call last):
File "/Users/taylor/repos/great_expectations/.venv/bin/great_expectations", line 11, in <module>
load_entry_point('great-expectations', 'console_scripts', 'great_expectations')()
File "/Users/taylor/repos/great_expectations/great_e... | TypeError |
def build_docs(context, site_name=None, view=True):
"""Build documentation in a context"""
logger.debug("Starting cli.datasource.build_docs")
cli_message("Building Data Docs...")
if site_name is not None:
site_names = [site_name]
else:
site_names = None
index_page_locator_info... | def build_docs(context, site_name=None, view=True):
"""Build documentation in a context"""
logger.debug("Starting cli.datasource.build_docs")
cli_message("Building Data Docs...")
if site_name is not None:
site_names = [site_name]
else:
site_names = None
index_page_locator_info... | https://github.com/great-expectations/great_expectations/issues/1378 | Running great_expectations docs build --site-name local_site
Building Data Docs...
The following Data Docs sites were built:
- local_site: file:///great_expectations/uncommitted/data_docs/local_site/index.html
Traceback (most recent call last):
File "/usr/local/bin/great_expectations", line 8, in <module>
sys.exit(main... | botocore.exceptions.ClientError |
def get_docs_sites_urls(
self, resource_identifier=None, site_name: Optional[str] = None
) -> List[Dict[str, str]]:
"""
Get URLs for a resource for all data docs sites.
This function will return URLs for any configured site even if the sites
have not been built yet.
Args:
resource_iden... | def get_docs_sites_urls(self, resource_identifier=None):
"""
Get URLs for a resource for all data docs sites.
This function will return URLs for any configured site even if the sites have not
been built yet.
:param resource_identifier: optional. It can be an identifier of ExpectationSuite's,
... | https://github.com/great-expectations/great_expectations/issues/1378 | Running great_expectations docs build --site-name local_site
Building Data Docs...
The following Data Docs sites were built:
- local_site: file:///great_expectations/uncommitted/data_docs/local_site/index.html
Traceback (most recent call last):
File "/usr/local/bin/great_expectations", line 8, in <module>
sys.exit(main... | botocore.exceptions.ClientError |
def open_data_docs(
self, resource_identifier: Optional[str] = None, site_name: Optional[str] = None
) -> None:
"""
A stdlib cross-platform way to open a file in a browser.
Args:
resource_identifier: ExpectationSuiteIdentifier,
ValidationResultIdentifier or any other type's identifi... | def open_data_docs(self, resource_identifier=None):
"""
A stdlib cross-platform way to open a file in a browser.
:param resource_identifier: ExpectationSuiteIdentifier, ValidationResultIdentifier
or any other type's identifier. The argument is optional - when
not supplied, the metho... | https://github.com/great-expectations/great_expectations/issues/1378 | Running great_expectations docs build --site-name local_site
Building Data Docs...
The following Data Docs sites were built:
- local_site: file:///great_expectations/uncommitted/data_docs/local_site/index.html
Traceback (most recent call last):
File "/usr/local/bin/great_expectations", line 8, in <module>
sys.exit(main... | botocore.exceptions.ClientError |
def setConfig(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
os.environ["HOME"] + "/.config/kinto/kinto.py",
]
)
elif which("gedit") is... | def setConfig(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
os.environ["HOME"] + "/.config/kinto/kinto.py",
]
)
elif which(gedit) is n... | https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def setService(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
"/lib/systemd/system/xkeysnail.service",
]
)
elif which("gedit") is not N... | def setService(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
"/lib/systemd/system/xkeysnail.service",
]
)
elif which(gedit) is not Non... | https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def setSysKB(self, button):
if self.ostype == "XFCE":
Popen(["xfce4-keyboard-settings"])
elif self.ostype == "KDE":
self.queryConfig(
"systemsettings >/dev/null 2>&1 || systemsettings5 >/dev/null 2>&1"
)
else:
Popen(["gnome-control-center", "keyboard"])
| def setSysKB(self, button):
if self.ostype == "XFCE":
Popen(["xfce4-keyboard-settings"])
else:
Popen(["gnome-control-center", "keyboard"])
| https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def setRegion(self, button):
if self.ostype == "XFCE":
Popen(["gnome-language-selector"])
elif self.ostype == "KDE":
self.queryConfig(
"kcmshell4 kcm_translations >/dev/null 2>&1 || kcmshell5 kcm_translations >/dev/null 2>&1"
)
else:
Popen(["gnome-control-center",... | def setRegion(self, button):
if self.ostype == "XFCE":
Popen(["gnome-language-selector"])
else:
Popen(["gnome-control-center", "region"])
| https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def setConfig(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
os.environ["HOME"] + "/.config/kinto/kinto.py",
]
)
elif which("gedit") is... | def setConfig(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
os.environ["HOME"] + "/.config/kinto/kinto.py",
]
)
elif which(gedit) is n... | https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def setService(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
"/lib/systemd/system/xkeysnail.service",
]
)
elif which("gedit") is not N... | def setService(self, button):
try:
if os.path.exists("/opt/sublime_text/sublime_text"):
Popen(
[
"/opt/sublime_text/sublime_text",
"/lib/systemd/system/xkeysnail.service",
]
)
elif which(gedit) is not Non... | https://github.com/rbreaves/kinto/issues/317 | Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 623, in setConfig
elif which(gedit) is not None:
NameError: name 'gedit' is not defined
Traceback (most recent call last):
File "/home/nemokden/.config/kinto/kintotray.py", line 635, in setService
elif which(gedit) is not None:
Na... | NameError |
def keyboard_detect():
global internalid, usbid, chromeswap, system_type
internal_kbname = ""
usb_kbname = ""
# If chromebook
if system_type == "2":
print()
print("Looking for keyboards...")
print()
result = subprocess.check_output(
'xinput list | grep -i... | def keyboard_detect():
global internalid, usbid, chromeswap, system_type
internal_kbname = ""
usb_kbname = ""
print()
print("Looking for keyboards...")
print()
result = subprocess.check_output(
'xinput list | grep -iv "Virtual\|USB" | grep -i "keyboard.*keyboard" | grep -o -P "(?<=↳)... | https://github.com/rbreaves/kinto/issues/5 | K!nt◎
- F!x the dɑmn kɐyb◎ɑrd. -
Press Enter to begin...
What type of system are you using?
1) Windows
2) Chromebook
3) Mac
3
Would you like to swap Command back to Super/Win and Ctrl key back to Ctrl when using terminal applications? (y/n)
Note: For a more mac like experience & less issues with terminal based i... | subprocess.CalledProcessError |
def pull(
self,
repository,
tag=None,
stream=False,
auth_config=None,
decode=False,
platform=None,
):
"""
Pulls an image. Similar to the ``docker pull`` command.
Args:
repository (str): The repository to pull
tag (str): The tag to pull
stream (bool): Stre... | def pull(
self,
repository,
tag=None,
stream=False,
auth_config=None,
decode=False,
platform=None,
):
"""
Pulls an image. Similar to the ``docker pull`` command.
Args:
repository (str): The repository to pull
tag (str): The tag to pull
stream (bool): Stre... | https://github.com/docker/docker-py/issues/2116 | python
client = docker.DockerClient(base_url='unix://var/run/docker.sock')
client.login(username='XXXX', password='XXXX', registry='https://index.docker.io/v1/')
client.images.pull('docker.io/vdmtl/portail-datamigration-worker-gcs-lib:latest', stream=True)
Traceback (most recent call last):
File "/Users/XXXX/apps/open... | requests.exceptions.HTTPError |
def pull(self, repository, tag=None, **kwargs):
"""
Pull an image of the given name and return it. Similar to the
``docker pull`` command.
If no tag is specified, all tags from that repository will be
pulled.
If you want to get the raw pull output, use the
:py:meth:`~docker.api.image.ImageA... | def pull(self, repository, tag=None, **kwargs):
"""
Pull an image of the given name and return it. Similar to the
``docker pull`` command.
If no tag is specified, all tags from that repository will be
pulled.
If you want to get the raw pull output, use the
:py:meth:`~docker.api.image.ImageA... | https://github.com/docker/docker-py/issues/2116 | python
client = docker.DockerClient(base_url='unix://var/run/docker.sock')
client.login(username='XXXX', password='XXXX', registry='https://index.docker.io/v1/')
client.images.pull('docker.io/vdmtl/portail-datamigration-worker-gcs-lib:latest', stream=True)
Traceback (most recent call last):
File "/Users/XXXX/apps/open... | requests.exceptions.HTTPError |
def pull(
self,
repository,
tag=None,
stream=False,
auth_config=None,
decode=False,
platform=None,
):
"""
Pulls an image. Similar to the ``docker pull`` command.
Args:
repository (str): The repository to pull
tag (str): The tag to pull
stream (bool): Stre... | def pull(
self,
repository,
tag=None,
stream=False,
auth_config=None,
decode=False,
platform=None,
):
"""
Pulls an image. Similar to the ``docker pull`` command.
Args:
repository (str): The repository to pull
tag (str): The tag to pull
stream (bool): Stre... | https://github.com/docker/docker-py/issues/2116 | python
client = docker.DockerClient(base_url='unix://var/run/docker.sock')
client.login(username='XXXX', password='XXXX', registry='https://index.docker.io/v1/')
client.images.pull('docker.io/vdmtl/portail-datamigration-worker-gcs-lib:latest', stream=True)
Traceback (most recent call last):
File "/Users/XXXX/apps/open... | requests.exceptions.HTTPError |
def build(
self,
path=None,
tag=None,
quiet=False,
fileobj=None,
nocache=False,
rm=False,
timeout=None,
custom_context=False,
encoding=None,
pull=False,
forcerm=False,
dockerfile=None,
container_limits=None,
decode=False,
buildargs=None,
gzip=False,
... | def build(
self,
path=None,
tag=None,
quiet=False,
fileobj=None,
nocache=False,
rm=False,
timeout=None,
custom_context=False,
encoding=None,
pull=False,
forcerm=False,
dockerfile=None,
container_limits=None,
decode=False,
buildargs=None,
gzip=False,
... | https://github.com/docker/docker-py/issues/1980 | $> docker-compose build
Building testservice
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.20.1', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3.6/site-packages/compose/cli/main.py", line 71, in main
command()
File "/usr/lib/py... | FileNotFoundError |
def pull(self, repository, tag=None, **kwargs):
"""
Pull an image of the given name and return it. Similar to the
``docker pull`` command.
If no tag is specified, all tags from that repository will be
pulled.
If you want to get the raw pull output, use the
:py:meth:`~docker.api.image.ImageA... | def pull(self, repository, tag=None, **kwargs):
"""
Pull an image of the given name and return it. Similar to the
``docker pull`` command.
If no tag is specified, all tags from that repository will be
pulled.
If you want to get the raw pull output, use the
:py:meth:`~docker.api.image.ImageA... | https://github.com/docker/docker-py/issues/1912 | import docker
client = docker.from_env()
client.images.pull('python@sha256:7c3028aa4b9a30a34ce778b1fd4f460c9cdf174515a94641a89ef40c115b51e5')
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/docker/api/client.py", line 223, in _raise_for_status
response.raise_for_status()
File "/usr/lib/python3... | requests.exceptions.HTTPError |
def create_archive(root, files=None, fileobj=None, gzip=False):
if not fileobj:
fileobj = tempfile.NamedTemporaryFile()
t = tarfile.open(mode="w:gz" if gzip else "w", fileobj=fileobj)
if files is None:
files = build_file_list(root)
for path in files:
full_path = os.path.join(root... | def create_archive(root, files=None, fileobj=None, gzip=False):
if not fileobj:
fileobj = tempfile.NamedTemporaryFile()
t = tarfile.open(mode="w:gz" if gzip else "w", fileobj=fileobj)
if files is None:
files = build_file_list(root)
for path in files:
full_path = os.path.join(root... | https://github.com/docker/docker-py/issues/1899 | tim@mbp ~/C/d/docker_archive python3 test_dockerpy_tar.py
Traceback (most recent call last):
File "test_dockerpy_tar.py", line 20, in <module>
CLIENT.build(path=str(CWD), dockerfile=str(DOCKER_FILE))
File "/Users/tim/Code/dockerpy_bug/dockerpy_env/lib/python3.6/site-packages/docker/api/build.py", line 149, in build
pat... | OSError |
def create_archive(root, files=None, fileobj=None, gzip=False):
if not fileobj:
fileobj = tempfile.NamedTemporaryFile()
t = tarfile.open(mode="w:gz" if gzip else "w", fileobj=fileobj)
if files is None:
files = build_file_list(root)
for path in files:
full_path = os.path.join(root... | def create_archive(root, files=None, fileobj=None, gzip=False):
if not fileobj:
fileobj = tempfile.NamedTemporaryFile()
t = tarfile.open(mode="w:gz" if gzip else "w", fileobj=fileobj)
if files is None:
files = build_file_list(root)
for path in files:
full_path = os.path.join(root... | https://github.com/docker/docker-py/issues/1841 | $ python
Python 2.7.6 (default, Nov 23 2017, 15:49:48)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import docker
docker.__version__
'2.7.0'
docker.utils.create_archive(".", ['doesnt_exist'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/us... | IOError |
def attach(self, container, stdout=True, stderr=True, stream=False, logs=False):
"""
Attach to a container.
The ``.logs()`` function is a wrapper around this method, which you can
use instead if you want to fetch/stream container output without first
retrieving the entire backlog.
Args:
... | def attach(self, container, stdout=True, stderr=True, stream=False, logs=False):
"""
Attach to a container.
The ``.logs()`` function is a wrapper around this method, which you can
use instead if you want to fetch/stream container output without first
retrieving the entire backlog.
Args:
... | https://github.com/docker/docker-py/issues/1717 | Traceback (most recent call last):
File "reproducer.py", line 18, in <module>
t = Test()
File "reproducer.py", line 16, in __init__
at=self.attach(self.containerid, logs=True)
File "/home/jonny/Src/foo/foo/npmvirt/lib/python2.7/site-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *... | AttributeError |
def exec_start(self, exec_id, detach=False, tty=False, stream=False, socket=False):
"""
Start a previously set up exec instance.
Args:
exec_id (str): ID of the exec instance
detach (bool): If true, detach from the exec command.
Default: False
tty (bool): Allocate a pseud... | def exec_start(self, exec_id, detach=False, tty=False, stream=False, socket=False):
"""
Start a previously set up exec instance.
Args:
exec_id (str): ID of the exec instance
detach (bool): If true, detach from the exec command.
Default: False
tty (bool): Allocate a pseud... | https://github.com/docker/docker-py/issues/1271 | In [9]: import docker
In [10]: docker.version
Out[10]: '1.10.4'
In [11]: cli = docker.Client()
In [12]: container = cli.create_container('python:2.7.11', command='sleep 1h')
In [13]: cli.start(container['Id'])
In [14]: e = cli.exec_create(container['Id'], 'echo "123"')
In [15]: cli.exec_start(e['Id'], detach=True... | SocketError |
def update_headers(f):
def inner(self, *args, **kwargs):
if "HttpHeaders" in self._auth_configs:
if not kwargs.get("headers"):
kwargs["headers"] = self._auth_configs["HttpHeaders"]
else:
kwargs["headers"].update(self._auth_configs["HttpHeaders"])
... | def update_headers(f):
def inner(self, *args, **kwargs):
if "HttpHeaders" in self._auth_configs:
if "headers" not in kwargs:
kwargs["headers"] = self._auth_configs["HttpHeaders"]
else:
kwargs["headers"].update(self._auth_configs["HttpHeaders"])
... | https://github.com/docker/docker-py/issues/1148 | import docker
c = docker.Client()
c.build('https://github.com/docker/compose.git')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-d78c607c9627> in <module>()
----> 1 c.build('https://github.com/doc... | AttributeError |
def inner(self, *args, **kwargs):
if "HttpHeaders" in self._auth_configs:
if not kwargs.get("headers"):
kwargs["headers"] = self._auth_configs["HttpHeaders"]
else:
kwargs["headers"].update(self._auth_configs["HttpHeaders"])
return f(self, *args, **kwargs)
| def inner(self, *args, **kwargs):
if "HttpHeaders" in self._auth_configs:
if "headers" not in kwargs:
kwargs["headers"] = self._auth_configs["HttpHeaders"]
else:
kwargs["headers"].update(self._auth_configs["HttpHeaders"])
return f(self, *args, **kwargs)
| https://github.com/docker/docker-py/issues/1148 | import docker
c = docker.Client()
c.build('https://github.com/docker/compose.git')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-d78c607c9627> in <module>()
----> 1 c.build('https://github.com/doc... | AttributeError |
def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
if response.raw._fp.chunked:
reader = response.raw
while not reader.closed:
# this read call will block until we get a chunk
data = reader.read(1)
if not ... | def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
reader = response.raw
assert reader._fp.chunked
while not reader.closed:
# this read call will block until we get a chunk
data = reader.read(1)
if not data:
break... | https://github.com/docker/docker-py/issues/443 | Traceback (most recent call last):
File "/Users/omrib/git/docker/main.py", line 6, in <module>
print "\n".join(client.build(fileobj=BytesIO(), tag="a/b/c"))
File "/Users/omrib/git/docker/env/lib/python2.7/site-packages/docker/client.py", line 295, in _stream_helper
assert reader._fp.chunked
AssertionError | AssertionError |
def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
socket_fp = self._get_raw_response_socket(response)
socket_fp.setblocking(1)
socket = socket_fp.makefile()
while True:
# Because Docker introduced newlines at the end of chunks in v0.9,
... | def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
socket_fp = self._get_raw_response_socket(response)
socket_fp.setblocking(1)
socket = socket_fp.makefile()
while True:
# Because Docker introduced newlines at the end of chunks in v0.9,
... | https://github.com/docker/docker-py/issues/257 | $ python build.py
{"stream":" ---\u003e b750fe79269d\n"}
Traceback (most recent call last):
File "build.py", line 8, in <module>
for line in client.build('.', tag='atag', rm=True):
File "/Users/adam/PYTHON3/lib/python3.4/site-packages/docker/client.py", line 233, in _stream_helper
size = int(size_line, 16)
ValueError:... | ValueError |
def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
for line in response.iter_lines(chunk_size=32):
yield line
| def _stream_helper(self, response):
"""Generator for data coming from a chunked-encoded HTTP response."""
socket_fp = self._get_raw_response_socket(response)
socket_fp.setblocking(1)
socket = socket_fp.makefile()
while True:
size = int(socket.readline(), 16)
if size <= 0:
... | https://github.com/docker/docker-py/issues/176 | ubuntu@ip-10-77-1-34:/tmp/foo$ python test.py
{"stream":" ---\u003e Using cache\n"}
Traceback (most recent call last):
File "test.py", line 5, in <module>
for line in gen:
File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 239, in _stream_helper
size = int(socket.readline(), 16)
ValueError: invalid l... | ValueError |
def build(
self,
path=None,
tag=None,
quiet=False,
fileobj=None,
nocache=False,
rm=False,
stream=False,
timeout=None,
):
remote = context = headers = None
if path is None and fileobj is None:
raise Exception("Either path or fileobj needs to be provided.")
if file... | def build(
self,
path=None,
tag=None,
quiet=False,
fileobj=None,
nocache=False,
rm=False,
stream=False,
timeout=None,
):
remote = context = headers = None
if path is None and fileobj is None:
raise Exception("Either path or fileobj needs to be provided.")
if file... | https://github.com/docker/docker-py/issues/176 | ubuntu@ip-10-77-1-34:/tmp/foo$ python test.py
{"stream":" ---\u003e Using cache\n"}
Traceback (most recent call last):
File "test.py", line 5, in <module>
for line in gen:
File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 239, in _stream_helper
size = int(socket.readline(), 16)
ValueError: invalid l... | ValueError |
def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
self.allocate_temp_result(code)
self.function.generate_evaluation_code(code)
assert self.arg_tuple.mult_factor is None
args = self.arg_tuple.args
for arg in args:
arg.generate_evaluation_code(code)
# make sure functi... | def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
self.allocate_temp_result(code)
self.function.generate_evaluation_code(code)
assert self.arg_tuple.mult_factor is None
args = self.arg_tuple.args
for arg in args:
arg.generate_evaluation_code(code)
# make sure functi... | https://github.com/cython/cython/issues/4000 | $ cythonize -i -3 test_cpdef_func_ptr2.pyx
Compiling /home/leofang/dev/test_cpdef_func_ptr2.pyx because it changed.
[1/1] Cythonizing /home/leofang/dev/test_cpdef_func_ptr2.pyx
Traceback (most recent call last):
File "/home/leofang/miniconda3/envs/cupy_cuda112_dev/bin/cythonize", line 11, in <module>
sys.exit(main())
F... | AttributeError |
def infer_type(self, env):
# FIXME: this is way too redundant with analyse_types()
node = self.analyse_as_cimported_attribute_node(env, target=False)
if node is not None:
if node.entry.type and node.entry.type.is_cfunction:
# special-case - function converted to pointer
retur... | def infer_type(self, env):
# FIXME: this is way too redundant with analyse_types()
node = self.analyse_as_cimported_attribute_node(env, target=False)
if node is not None:
return node.entry.type
node = self.analyse_as_type_attribute(env)
if node is not None:
return node.entry.type
... | https://github.com/cython/cython/issues/4000 | $ cythonize -i -3 test_cpdef_func_ptr2.pyx
Compiling /home/leofang/dev/test_cpdef_func_ptr2.pyx because it changed.
[1/1] Cythonizing /home/leofang/dev/test_cpdef_func_ptr2.pyx
Traceback (most recent call last):
File "/home/leofang/miniconda3/envs/cupy_cuda112_dev/bin/cythonize", line 11, in <module>
sys.exit(main())
F... | AttributeError |
def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
self.allocate_temp_result(code)
self.function.generate_evaluation_code(code)
assert self.arg_tuple.mult_factor is None
args = self.arg_tuple.args
for arg in args:
arg.generate_evaluation_code(code)
# make sure functi... | def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
self.allocate_temp_result(code)
self.function.generate_evaluation_code(code)
assert self.arg_tuple.mult_factor is None
args = self.arg_tuple.args
for arg in args:
arg.generate_evaluation_code(code)
# make sure functi... | https://github.com/cython/cython/issues/4000 | $ cythonize -i -3 test_cpdef_func_ptr2.pyx
Compiling /home/leofang/dev/test_cpdef_func_ptr2.pyx because it changed.
[1/1] Cythonizing /home/leofang/dev/test_cpdef_func_ptr2.pyx
Traceback (most recent call last):
File "/home/leofang/miniconda3/envs/cupy_cuda112_dev/bin/cythonize", line 11, in <module>
sys.exit(main())
F... | AttributeError |
def get_type_information_cname(code, dtype, maxdepth=None):
"""
Output the run-time type information (__Pyx_TypeInfo) for given dtype,
and return the name of the type info struct.
Structs with two floats of the same size are encoded as complex numbers.
One can separate between complex numbers decla... | def get_type_information_cname(code, dtype, maxdepth=None):
"""
Output the run-time type information (__Pyx_TypeInfo) for given dtype,
and return the name of the type info struct.
Structs with two floats of the same size are encoded as complex numbers.
One can separate between complex numbers decla... | https://github.com/cython/cython/issues/2251 | % cythonize test.pyx
Compiling test.pyx because it changed.
[1/1] Cythonizing test.pyx
Traceback (most recent call last):
File "/home/zhanghj/.local/opt/conda/bin/cythonize", line 11, in <module>
sys.exit(main())
File "/home/zhanghj/.local/opt/conda/lib/python3.6/site-packages/Cython/Build/Cythonize.py", line 196, in m... | AssertionError |
def p_typecast(s):
# s.sy == "<"
pos = s.position()
s.next()
base_type = p_c_base_type(s)
is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode)
is_other_unnamed_type = isinstance(
base_type,
(
Nodes.TemplatedTypeNode,
Nodes.CConstOrVolatileTyp... | def p_typecast(s):
# s.sy == "<"
pos = s.position()
s.next()
base_type = p_c_base_type(s)
is_memslice = isinstance(base_type, Nodes.MemoryViewSliceTypeNode)
is_template = isinstance(base_type, Nodes.TemplatedTypeNode)
is_const_volatile = isinstance(base_type, Nodes.CConstOrVolatileTypeNode)
... | https://github.com/cython/cython/issues/3808 | Traceback (most recent call last):
File "/Users/jkirkham/miniconda/envs/cython/bin/cython", line 11, in <module>
sys.exit(setuptools_main())
File "/Users/jkirkham/miniconda/envs/cython/lib/python3.8/site-packages/Cython/Compiler/Main.py", line 840, in setuptools_main
return main(command_line = 1)
File "/Users/jkirkham/... | AttributeError |
def generate_evaluation_code(self, code):
function = self.function
if function.is_name or function.is_attribute:
code.globalstate.use_entry_utility_code(function.entry)
abs_function_cnames = ("abs", "labs", "__Pyx_abs_longlong")
is_signed_int = self.type.is_int and self.type.signed
if (
... | def generate_evaluation_code(self, code):
function = self.function
if function.is_name or function.is_attribute:
code.globalstate.use_entry_utility_code(function.entry)
if (
not function.type.is_pyobject
or len(self.arg_tuple.args) > 1
or (self.arg_tuple.args and self.arg_tu... | https://github.com/cython/cython/issues/1911 | ======================================================================
FAIL: int_abs (builtin_abs)
Doctest: builtin_abs.int_abs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/doctest.py", line 2199, in runTest
raise self.failureExcept... | AssertionError |
def generate_result_code(self, code):
func_type = self.function_type()
if func_type.is_pyobject:
arg_code = self.arg_tuple.py_result()
code.globalstate.use_utility_code(
UtilityCode.load_cached("PyObjectCall", "ObjectHandling.c")
)
code.putln(
"%s = __Pyx_... | def generate_result_code(self, code):
func_type = self.function_type()
if func_type.is_pyobject:
arg_code = self.arg_tuple.py_result()
code.globalstate.use_utility_code(
UtilityCode.load_cached("PyObjectCall", "ObjectHandling.c")
)
code.putln(
"%s = __Pyx_... | https://github.com/cython/cython/issues/1911 | ======================================================================
FAIL: int_abs (builtin_abs)
Doctest: builtin_abs.int_abs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/doctest.py", line 2199, in runTest
raise self.failureExcept... | AssertionError |
def generate_evaluation_code(self, code):
function = self.function
if function.is_name or function.is_attribute:
code.globalstate.use_entry_utility_code(function.entry)
abs_function_cnames = ("abs", "labs", "__Pyx_abs_longlong")
is_signed_int = self.type.is_int and self.type.signed
if (
... | def generate_evaluation_code(self, code):
function = self.function
if function.is_name or function.is_attribute:
code.globalstate.use_entry_utility_code(function.entry)
if (
not function.type.is_pyobject
or len(self.arg_tuple.args) > 1
or (self.arg_tuple.args and self.arg_tu... | https://github.com/cython/cython/issues/1911 | ======================================================================
FAIL: int_abs (builtin_abs)
Doctest: builtin_abs.int_abs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/doctest.py", line 2199, in runTest
raise self.failureExcept... | AssertionError |
def generate_result_code(self, code):
func_type = self.function_type()
if func_type.is_pyobject:
arg_code = self.arg_tuple.py_result()
code.globalstate.use_utility_code(
UtilityCode.load_cached("PyObjectCall", "ObjectHandling.c")
)
code.putln(
"%s = __Pyx_... | def generate_result_code(self, code):
func_type = self.function_type()
if func_type.is_pyobject:
arg_code = self.arg_tuple.py_result()
code.globalstate.use_utility_code(
UtilityCode.load_cached("PyObjectCall", "ObjectHandling.c")
)
code.putln(
"%s = __Pyx_... | https://github.com/cython/cython/issues/1911 | ======================================================================
FAIL: int_abs (builtin_abs)
Doctest: builtin_abs.int_abs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/doctest.py", line 2199, in runTest
raise self.failureExcept... | AssertionError |
def generate_stararg_copy_code(self, code):
if not self.star_arg:
code.globalstate.use_utility_code(
UtilityCode.load_cached("RaiseArgTupleInvalid", "FunctionArguments.c")
)
code.putln("if (unlikely(%s > 0)) {" % Naming.nargs_cname)
code.put(
"__Pyx_RaiseArgtu... | def generate_stararg_copy_code(self, code):
if not self.star_arg:
code.globalstate.use_utility_code(
UtilityCode.load_cached("RaiseArgTupleInvalid", "FunctionArguments.c")
)
code.putln("if (unlikely(%s > 0)) {" % Naming.nargs_cname)
code.put(
'__Pyx_RaiseArgtu... | https://github.com/cython/cython/issues/3090 | In [1]: %load_ext cython
In [2]: %%cython
...: def f(k): return k
In [3]: f(k=1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-2f40ef43e783> in <module>()
----> 1 f(k=1)
TypeError: f() takes no ... | TypeError |
def _build_fstring(self, pos, ustring, format_args):
# Issues formatting warnings instead of errors since we really only catch a few errors by accident.
args = iter(format_args)
substrings = []
can_be_optimised = True
for s in re.split(self._parse_string_format_regex, ustring):
if not s:
... | def _build_fstring(self, pos, ustring, format_args):
# Issues formatting warnings instead of errors since we really only catch a few errors by accident.
args = iter(format_args)
substrings = []
can_be_optimised = True
for s in re.split(self._parse_string_format_regex, ustring):
if not s:
... | https://github.com/cython/cython/issues/3476 | $ cython --embed -3 foo.py && gcc foo.c -lpython3.8 -o foo
$ ./foo
str: ' '
Traceback (most recent call last):
File "foo.py", line 2, in init foo
print("str: '%08s'" % ("",))
ValueError: '=' alignment not allowed in string format specifier | ValueError |
def _build_fstring(self, pos, ustring, format_args):
# Issues formatting warnings instead of errors since we really only catch a few errors by accident.
args = iter(format_args)
substrings = []
can_be_optimised = True
for s in re.split(self._parse_string_format_regex, ustring):
if not s:
... | def _build_fstring(self, pos, ustring, format_args):
# Issues formatting warnings instead of errors since we really only catch a few errors by accident.
args = iter(format_args)
substrings = []
can_be_optimised = True
for s in re.split(self._parse_string_format_regex, ustring):
if not s:
... | https://github.com/cython/cython/issues/3092 | (<class 'float'>, <class 'float'>)
(50.0, 50.0)
string being formatted=50
(<class 'float'>, <class 'float'>)
(50.0, 50.0)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "cytest/test.py", line 16, in init cytest.test
test_func_with_tuple(50.,50.)
File "cytest/test.py", line 11, in cytest.te... | ValueError |
def declare_builtin(self, name, pos):
name = self.mangle_class_private_name(name)
return self.outer_scope.declare_builtin(name, pos)
| def declare_builtin(self, name, pos):
return self.outer_scope.declare_builtin(name, pos)
| https://github.com/cython/cython/issues/3548 | (bleeding) ✔ ~/source/other_source/pandas [master {pandas/master}|✚ 2]
jupiter@15:19 ➤ pip install -v .
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-zcmyaxf3
Created temporary directory: /tmp/pip-req-tracker-dfm6xgbp
Initialized build tracking at /tmp/p... | Cython.Compiler.Errors.CompileError |
def lookup(self, name):
# Look up name in this scope or an enclosing one.
# Return None if not found.
mangled_name = self.mangle_class_private_name(name)
entry = (
self.lookup_here(name) # lookup here also does mangling
or (self.outer_scope and self.outer_scope.lookup(mangled_name))
... | def lookup(self, name):
# Look up name in this scope or an enclosing one.
# Return None if not found.
name = self.mangle_class_private_name(name)
return (
self.lookup_here(name)
or (self.outer_scope and self.outer_scope.lookup(name))
or None
)
| https://github.com/cython/cython/issues/3548 | (bleeding) ✔ ~/source/other_source/pandas [master {pandas/master}|✚ 2]
jupiter@15:19 ➤ pip install -v .
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-zcmyaxf3
Created temporary directory: /tmp/pip-req-tracker-dfm6xgbp
Initialized build tracking at /tmp/p... | Cython.Compiler.Errors.CompileError |
def lookup_here(self, name):
# Look up in this scope only, return None if not found.
entry = self.entries.get(self.mangle_class_private_name(name), None)
if entry:
return entry
# Also check the unmangled name in the current scope
# (even if mangling should give us something else).
# Thi... | def lookup_here(self, name):
# Look up in this scope only, return None if not found.
name = self.mangle_class_private_name(name)
return self.entries.get(name, None)
| https://github.com/cython/cython/issues/3548 | (bleeding) ✔ ~/source/other_source/pandas [master {pandas/master}|✚ 2]
jupiter@15:19 ➤ pip install -v .
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-zcmyaxf3
Created temporary directory: /tmp/pip-req-tracker-dfm6xgbp
Initialized build tracking at /tmp/p... | Cython.Compiler.Errors.CompileError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.