[Bug 2140018] New: convert to a size from SVG
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2140018
Bug ID: 2140018
Summary: convert to a size from SVG
Product: Fedora
Version: 36
Hardware: x86_64
OS: Linux
Status: NEW
Component: ImageMagick
Assignee: luya_tfz(a)thefinalzone.net
Reporter: fredrik.kortetjarvi(a)cendio.com
QA Contact: extras-qa(a)fedoraproject.org
CC: blaise(a)gmail.com, dcavalca(a)fb.com,
epel-packagers-sig(a)lists.fedoraproject.org,
fedora(a)famillecollet.com, luya_tfz(a)thefinalzone.net,
michel(a)michel-slm.name, ngompa13(a)gmail.com,
pampelmuse(a)gmx.at, sergio(a)serjux.com,
troy(a)troycurtisjr.com
Target Milestone: ---
Classification: Fedora
Description of problem:
When using the convert tool from ImageMagick and want to make a PNG with a
specified size
it produces the SVG size instead.
Version-Release number of selected component (if applicable):
ImageMagick 7.0.8
librsvg 2.54.5
How reproducible:
every time
Steps to Reproduce:
1. identify pic.svg -> (48x48)
2. convert -size 16x16 pic.svg test.png
3. idenfify test.png -> (48x48)
Actual results:
48x48 is the size on test
Expected results:
16x16 should be the size
Additional info:
Have confirmed this worked on a red hat 7 with ImageMagick 6.9.19 librsvg
2.40.20
, Arch linux with ImageMagick 7.1.0 librsvg 2.55.1, Ubuntu 22.04 with
ImageMagick 6.9.11
but it didnt work on Fedora 35 with ImageMagick 6.9.12 librsvg 2.52.9
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2140018
8 months, 1 week
[Bug 2216452] New: [abrt] gnome-calendar: gcal_event_widget_clone(): gnome-calendar killed by SIGSEGV
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2216452
Bug ID: 2216452
Summary: [abrt] gnome-calendar: gcal_event_widget_clone():
gnome-calendar killed by SIGSEGV
Product: Fedora
Version: 38
Hardware: x86_64
Status: NEW
Whiteboard: abrt_hash:269578cfefb56f8073d9ab3fee3f444a49d16cb8;VAR
IANT_ID=workstation;
Component: gnome-calendar
Assignee: gnome-sig(a)lists.fedoraproject.org
Reporter: q.cooremans(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: epel-packagers-sig(a)lists.fedoraproject.org,
gnome-sig(a)lists.fedoraproject.org,
igor.raits(a)gmail.com, klember(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
ouverture du calendrier, clic sur le mois suivant dans le panneau en haut à
gauche
= crash (à 3 reprises puis ok la 4e en attendant une bonne minute après
l'ouverture de l'application avant de changer de mois)
Version-Release number of selected component:
gnome-calendar-44.1-1.fc38
Additional info:
reporter: libreport-2.17.10
type: CCpp
reason: gnome-calendar killed by SIGSEGV
journald_cursor:
s=e30469c8cf9d4d988b69d073a031733a;i=190f36;b=806f908085b649059c4b6aa3f0d14768;m=3cdbcde64;t=5fea20443346c;x=f05cfe5363e4c743
executable: /usr/bin/gnome-calendar
cmdline: /usr/bin/gnome-calendar --gapplication-service
cgroup:
0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus-:1.2-org.gnome.Calendar@1.service
rootdir: /
uid: 1000
kernel: 6.3.8-200.fc38.x86_64
package: gnome-calendar-44.1-1.fc38
runlevel: N 5
backtrace_rating: 4
crash_function: gcal_event_widget_clone
Truncated backtrace:
Thread no. 1 (10 frames)
#0 gcal_event_widget_clone at ../src/gui/gcal-event-widget.c:1002
#1 split_event_widget_at_column at ../src/gui/views/gcal-week-header.c:650
#2 apply_overflow_at_weekday at ../src/gui/views/gcal-week-header.c:766
#4 add_event_to_grid at ../src/gui/views/gcal-week-header.c:877
#5 gcal_week_header_add_event at ../src/gui/views/gcal-week-header.c:1639
#6 add_event_to_subscriber at ../src/core/gcal-timeline.c:205
#7 timeline_source_dispatch at ../src/core/gcal-timeline.c:682
#10 g_main_context_iterate.isra.0 at ../glib/gmain.c:4276
#11 g_main_context_iteration at ../glib/gmain.c:4343
#12 g_application_run at ../gio/gapplication.c:2573
Potential duplicate: bug 1476568
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2216452
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-...
8 months, 1 week
[Bug 2238041] New: [abrt] gnome-calendar: g_source_get_ready_time(): gnome-calendar killed by SIGSEGV
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2238041
Bug ID: 2238041
Summary: [abrt] gnome-calendar: g_source_get_ready_time():
gnome-calendar killed by SIGSEGV
Product: Fedora
Version: rawhide
Hardware: x86_64
Status: NEW
Whiteboard: abrt_hash:5a4552917cadf034646236e501c99c138310a894;VAR
IANT_ID=workstation;
Component: gnome-calendar
Assignee: gnome-sig(a)lists.fedoraproject.org
Reporter: mikhail.v.gavrilov(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: epel-packagers-sig(a)lists.fedoraproject.org,
gnome-sig(a)lists.fedoraproject.org,
igor.raits(a)gmail.com, klember(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
Crash happened when I disabled Location Services in the gnome control center
Version-Release number of selected component:
gnome-calendar-45~rc-1.fc40
Additional info:
reporter: libreport-2.17.11
type: CCpp
reason: gnome-calendar killed by SIGSEGV
journald_cursor:
s=f827a241bc594a8692c445e9c63f51b7;i=11d891;b=bd0203c34ca145b6bc6aa492cdf6f76b;m=1304070f1;t=604db4e402ae1;x=3634a4e15c20a5e8
executable: /usr/bin/gnome-calendar
cmdline: /usr/bin/gnome-calendar --gapplication-service
cgroup:
0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus-:1.2-org.gnome.Calendar@0.service
rootdir: /
uid: 1000
kernel: 6.6.0-0.rc0.20230907git7ba2090ca64e.9.fc40.x86_64+debug
package: gnome-calendar-45~rc-1.fc40
runlevel: N 5
backtrace_rating: 4
crash_function: g_source_get_ready_time
comment: Crash happened when I disabled Location Services in the gnome
control center
Truncated backtrace:
Thread no. 1 (15 frames)
#0 g_source_get_ready_time at ../glib/gmain.c:2100
#1 gcal_timer_is_running at ../src/core/gcal-timer.c:233
#2 update_location at ../src/weather/gcal-weather-service.c:619
#4 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3980
#5 signal_emit_valist_unlocked at ../gobject/gsignal.c:3612
#9 g_object_notify_by_spec_internal at ../gobject/gobject.c:1551
#12 gclue_client_proxy_g_properties_changed at libgeoclue/gclue-client.c:1389
#14 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:4020
#15 signal_emit_valist_unlocked at ../gobject/gsignal.c:3612
#18 on_properties_changed at ../gio/gdbusproxy.c:1102
#19 emit_signal_instance_in_idle_cb at ../gio/gdbusconnection.c:3802
#22 g_main_context_dispatch_unlocked at ../glib/gmain.c:4284
#23 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4349
#24 g_main_context_iteration at ../glib/gmain.c:4414
#25 g_application_run at ../gio/gapplication.c:2577
Potential duplicate: bug 1846955
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2238041
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-...
8 months, 2 weeks
[Bug 2237928] New: [abrt] gnome-calendar: g_type_check_instance_is_fundamentally_a(): gnome-calendar killed by SIGSEGV
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2237928
Bug ID: 2237928
Summary: [abrt] gnome-calendar:
g_type_check_instance_is_fundamentally_a():
gnome-calendar killed by SIGSEGV
Product: Fedora
Version: 39
Hardware: x86_64
Status: NEW
Whiteboard: abrt_hash:6fed9eb3a136c039d8f338ee7905bc5ef9eead43;VAR
IANT_ID=workstation;
Component: gnome-calendar
Assignee: gnome-sig(a)lists.fedoraproject.org
Reporter: mcatanza(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: epel-packagers-sig(a)lists.fedoraproject.org,
gnome-sig(a)lists.fedoraproject.org,
igor.raits(a)gmail.com, klember(a)redhat.com
Target Milestone: ---
Classification: Fedora
Version-Release number of selected component:
gnome-calendar-45~beta-1.fc39
Additional info:
reporter: libreport-2.17.11
type: CCpp
reason: gnome-calendar killed by SIGSEGV
journald_cursor:
s=aaef4910badd46e4acedc0792428158c;i=e683ee;b=50703ef803ad42aca20719d217971895;m=30f88fa20;t=604c697455449;x=59419ae7ed6fb66c
executable: /usr/bin/gnome-calendar
cmdline: /usr/bin/gnome-calendar --gapplication-service
cgroup:
0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus-:1.2-org.gnome.Calendar@0.service
rootdir: /
uid: 1000
kernel: 6.5.0-0.rc7.20230821gitf7757129e3de.50.fc39.x86_64
package: gnome-calendar-45~beta-1.fc39
runlevel: N 5
backtrace_rating: 4
crash_function: g_type_check_instance_is_fundamentally_a
Truncated backtrace:
Thread no. 1 (7 frames)
#0 g_type_check_instance_is_fundamentally_a at ../gobject/gtype.c:4184
#2 queue_data_free at ../src/core/gcal-timeline.c:117
#3 timeline_source_dispatch at ../src/core/gcal-timeline.c:763
#5 g_main_context_dispatch_unlocked at ../glib/gmain.c:4284
#6 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4349
#7 g_main_context_iteration at ../glib/gmain.c:4414
#8 g_application_run at ../gio/gapplication.c:2577
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2237928
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-...
8 months, 2 weeks
[Bug 2153537] New: meld-3.22.0-1.el9 is missing dependency for python3-gobject
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2153537
Bug ID: 2153537
Summary: meld-3.22.0-1.el9 is missing dependency for
python3-gobject
Product: Fedora EPEL
Version: epel9
Status: NEW
Component: meld
Assignee: lkundrak(a)v3.sk
Reporter: lopresti(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: cwickert(a)fedoraproject.org, dmaphy(a)fedoraproject.org,
epel-packagers-sig(a)lists.fedoraproject.org,
lkundrak(a)v3.sk, michel(a)michel-slm.name
Target Milestone: ---
Classification: Fedora
Description of problem:
Package is missing dependency for python3-gobject.
Version-Release number of selected component (if applicable):
3.22.0-1.el9
How reproducible:
always, as long as python3-gobject is not installed
Steps to Reproduce:
1. make sure python3-gobject is not installed
2. run meld from console, e.g. meld dir1 dir2
Actual results:
Many error messages "TypeError: Couldn't find foreign struct converter for
'cairo.Context'" on console, no comparison in GUI.
Expected results:
Comparison is shown in GUI.
Additional info:
This is the same problem as bug 1832776, but for EPEL 9 (where it is not yet
fixed)
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2153537
8 months, 2 weeks
[Bug 2219334] New: python-cloudpickle: FTBFS in f39-python side tag with Python 3.12
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2219334
Bug ID: 2219334
Summary: python-cloudpickle: FTBFS in f39-python side tag with
Python 3.12
Product: Fedora
Version: rawhide
URL: https://koschei.fedoraproject.org/package/python-cloud
pickle
Status: NEW
Component: python-cloudpickle
Assignee: lbalhar(a)redhat.com
Reporter: thrnciar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: epel-packagers-sig(a)lists.fedoraproject.org,
jonathan(a)almalinux.org, lbalhar(a)redhat.com,
python-packagers-sig(a)lists.fedoraproject.org
Target Milestone: ---
Classification: Fedora
python-cloudpickle fails to build with Python 3.12.0b3 in f39-sidetag
For the build logs, see:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2218638
To reproduce this locally you can do:
fedpkg mock-config --target f39-python > ~/.config/mock/f39-python.cfg
fedpkg srpm
mock -r f39-python --rebuild $SRPM
Or you can submit a scratch build in side tag with:
fedpkg build --target=f39-python --scratch --srpm
Once fixed, please submit the real build into side tag with:
fedpkg build --target=f39-python
=================================== FAILURES
===================================
____________________ CloudPickleTest.test_generic_subclass
_____________________
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_generic_subclass>
def test_generic_subclass(self):
T = typing.TypeVar('T')
class Base(typing.Generic[T]):
pass
class DerivedAny(Base):
pass
class LeafAny(DerivedAny):
pass
class DerivedInt(Base[int]):
pass
class LeafInt(DerivedInt):
pass
class DerivedT(Base[T]):
pass
class LeafT(DerivedT[T]):
pass
klasses = [
Base, DerivedAny, LeafAny, DerivedInt, LeafInt, DerivedT, LeafT
]
for klass in klasses:
> assert pickle_depickle(klass, protocol=self.protocol) is klass
tests/cloudpickle_test.py:2423:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
______________________ CloudPickleTest.test_generic_type
_______________________
self = <tests.cloudpickle_test.CloudPickleTest testMethod=test_generic_type>
def test_generic_type(self):
T = typing.TypeVar('T')
class C(typing.Generic[T]):
pass
> assert pickle_depickle(C, protocol=self.protocol) is C
tests/cloudpickle_test.py:2364:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
__________ CloudPickleTest.test_locally_defined_class_with_type_hints
__________
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_locally_defined_class_with_type_hints>
def test_locally_defined_class_with_type_hints(self):
with subprocess_worker(protocol=self.protocol) as worker:
for type_ in _all_types_to_test():
class MyClass:
def method(self, arg: type_) -> type_:
return arg
MyClass.__annotations__ = {'attribute': type_}
def check_annotations(obj, expected_type, expected_type_str):
assert obj.__annotations__["attribute"] == expected_type
assert (
obj.method.__annotations__["arg"] == expected_type
)
assert (
obj.method.__annotations__["return"]
== expected_type
)
return "ok"
obj = MyClass()
assert check_annotations(obj, type_, "type_") == "ok"
> assert (
worker.run(check_annotations, obj, type_, "type_") == "ok"
)
tests/cloudpickle_test.py:2457:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:146: in run
input_payload = dumps((func, args, kwargs), protocol=self.protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_
CloudPickleTest.test_pickle_constructs_from_module_registered_for_pickling_by_value
_
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_pickle_constructs_from_module_registered_for_pickling_by_value>
def
test_pickle_constructs_from_module_registered_for_pickling_by_value(self): #
noqa
_prev_sys_path = sys.path.copy()
try:
# We simulate an interactive session that:
# - we start from the /path/to/cloudpickle/tests directory, where a
# local .py file (mock_local_file) is located.
# - uses constructs from mock_local_file in remote workers that do
# not have access to this file. This situation is
# the justification behind the
# (un)register_pickle_by_value(module) api that cloudpickle
# exposes.
_mock_interactive_session_cwd = os.path.dirname(__file__)
# First, remove sys.path entries that could point to
# /path/to/cloudpickle/tests and be in inherited by the worker
_maybe_remove(sys.path, '')
_maybe_remove(sys.path, _mock_interactive_session_cwd)
# Add the desired session working directory
sys.path.insert(0, _mock_interactive_session_cwd)
with subprocess_worker(protocol=self.protocol) as w:
# Make the module unavailable in the remote worker
w.run(
lambda p: sys.path.remove(p), _mock_interactive_session_cwd
)
# Import the actual file after starting the module since the
# worker is started using fork on Linux, which will inherits
# the parent sys.modules. On Python>3.6, the worker can be
# started using spawn using mp_context in ProcessPoolExectutor.
# TODO Once Python 3.6 reaches end of life, rely on mp_context
# instead.
import mock_local_folder.mod as mod
# The constructs whose pickling mechanism is changed using
# register_pickle_by_value are functions, classes, TypeVar and
# modules.
from mock_local_folder.mod import (
local_function, LocalT, LocalClass
)
# Make sure the module/constructs are unimportable in the
# worker.
with pytest.raises(ImportError):
w.run(lambda: __import__("mock_local_folder.mod"))
with pytest.raises(ImportError):
w.run(
lambda: __import__("mock_local_folder.subfolder.mod")
)
for o in [mod, local_function, LocalT, LocalClass]:
with pytest.raises(ImportError):
w.run(lambda: o)
register_pickle_by_value(mod)
# function
assert w.run(lambda: local_function()) == local_function()
# typevar
> assert w.run(lambda: LocalT.__name__) == LocalT.__name__
tests/cloudpickle_test.py:2583:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:146: in run
input_payload = dumps((func, args, kwargs), protocol=self.protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:911: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~LocalT, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_________________ CloudPickleTest.test_pickle_dynamic_typevar
__________________
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_pickle_dynamic_typevar>
def test_pickle_dynamic_typevar(self):
T = typing.TypeVar('T')
> depickled_T = pickle_depickle(T, protocol=self.protocol)
tests/cloudpickle_test.py:2330:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
___________ CloudPickleTest.test_pickle_dynamic_typevar_memoization
____________
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_pickle_dynamic_typevar_memoization>
def test_pickle_dynamic_typevar_memoization(self):
T = typing.TypeVar('T')
> depickled_T1, depickled_T2 = pickle_depickle((T, T),
protocol=self.protocol)
tests/cloudpickle_test.py:2345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_____________ CloudPickleTest.test_pickle_dynamic_typevar_tracking
_____________
self = <tests.cloudpickle_test.CloudPickleTest
testMethod=test_pickle_dynamic_typevar_tracking>
def test_pickle_dynamic_typevar_tracking(self):
T = typing.TypeVar("T")
> T2 = subprocess_pickle_echo(T, protocol=self.protocol)
tests/cloudpickle_test.py:2340:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:89: in subprocess_pickle_echo
out = subprocess_pickle_string(input_data,
tests/testutils.py:63: in subprocess_pickle_string
pickle_string = dumps(input_data, protocol=protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
________________ Protocol2CloudPickleTest.test_generic_subclass
________________
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_generic_subclass>
def test_generic_subclass(self):
T = typing.TypeVar('T')
class Base(typing.Generic[T]):
pass
class DerivedAny(Base):
pass
class LeafAny(DerivedAny):
pass
class DerivedInt(Base[int]):
pass
class LeafInt(DerivedInt):
pass
class DerivedT(Base[T]):
pass
class LeafT(DerivedT[T]):
pass
klasses = [
Base, DerivedAny, LeafAny, DerivedInt, LeafInt, DerivedT, LeafT
]
for klass in klasses:
> assert pickle_depickle(klass, protocol=self.protocol) is klass
tests/cloudpickle_test.py:2423:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
__________________ Protocol2CloudPickleTest.test_generic_type
__________________
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_generic_type>
def test_generic_type(self):
T = typing.TypeVar('T')
class C(typing.Generic[T]):
pass
> assert pickle_depickle(C, protocol=self.protocol) is C
tests/cloudpickle_test.py:2364:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_____ Protocol2CloudPickleTest.test_locally_defined_class_with_type_hints
______
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_locally_defined_class_with_type_hints>
def test_locally_defined_class_with_type_hints(self):
with subprocess_worker(protocol=self.protocol) as worker:
for type_ in _all_types_to_test():
class MyClass:
def method(self, arg: type_) -> type_:
return arg
MyClass.__annotations__ = {'attribute': type_}
def check_annotations(obj, expected_type, expected_type_str):
assert obj.__annotations__["attribute"] == expected_type
assert (
obj.method.__annotations__["arg"] == expected_type
)
assert (
obj.method.__annotations__["return"]
== expected_type
)
return "ok"
obj = MyClass()
assert check_annotations(obj, type_, "type_") == "ok"
> assert (
worker.run(check_annotations, obj, type_, "type_") == "ok"
)
tests/cloudpickle_test.py:2457:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:146: in run
input_payload = dumps((func, args, kwargs), protocol=self.protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_
Protocol2CloudPickleTest.test_pickle_constructs_from_module_registered_for_pickling_by_value
_
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_pickle_constructs_from_module_registered_for_pickling_by_value>
def
test_pickle_constructs_from_module_registered_for_pickling_by_value(self): #
noqa
_prev_sys_path = sys.path.copy()
try:
# We simulate an interactive session that:
# - we start from the /path/to/cloudpickle/tests directory, where a
# local .py file (mock_local_file) is located.
# - uses constructs from mock_local_file in remote workers that do
# not have access to this file. This situation is
# the justification behind the
# (un)register_pickle_by_value(module) api that cloudpickle
# exposes.
_mock_interactive_session_cwd = os.path.dirname(__file__)
# First, remove sys.path entries that could point to
# /path/to/cloudpickle/tests and be in inherited by the worker
_maybe_remove(sys.path, '')
_maybe_remove(sys.path, _mock_interactive_session_cwd)
# Add the desired session working directory
sys.path.insert(0, _mock_interactive_session_cwd)
with subprocess_worker(protocol=self.protocol) as w:
# Make the module unavailable in the remote worker
w.run(
lambda p: sys.path.remove(p), _mock_interactive_session_cwd
)
# Import the actual file after starting the module since the
# worker is started using fork on Linux, which will inherits
# the parent sys.modules. On Python>3.6, the worker can be
# started using spawn using mp_context in ProcessPoolExectutor.
# TODO Once Python 3.6 reaches end of life, rely on mp_context
# instead.
import mock_local_folder.mod as mod
# The constructs whose pickling mechanism is changed using
# register_pickle_by_value are functions, classes, TypeVar and
# modules.
from mock_local_folder.mod import (
local_function, LocalT, LocalClass
)
# Make sure the module/constructs are unimportable in the
# worker.
with pytest.raises(ImportError):
w.run(lambda: __import__("mock_local_folder.mod"))
with pytest.raises(ImportError):
w.run(
lambda: __import__("mock_local_folder.subfolder.mod")
)
for o in [mod, local_function, LocalT, LocalClass]:
with pytest.raises(ImportError):
w.run(lambda: o)
register_pickle_by_value(mod)
# function
assert w.run(lambda: local_function()) == local_function()
# typevar
> assert w.run(lambda: LocalT.__name__) == LocalT.__name__
tests/cloudpickle_test.py:2583:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:146: in run
input_payload = dumps((func, args, kwargs), protocol=self.protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:911: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~LocalT, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_____________ Protocol2CloudPickleTest.test_pickle_dynamic_typevar
_____________
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_pickle_dynamic_typevar>
def test_pickle_dynamic_typevar(self):
T = typing.TypeVar('T')
> depickled_T = pickle_depickle(T, protocol=self.protocol)
tests/cloudpickle_test.py:2330:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
_______ Protocol2CloudPickleTest.test_pickle_dynamic_typevar_memoization
_______
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_pickle_dynamic_typevar_memoization>
def test_pickle_dynamic_typevar_memoization(self):
T = typing.TypeVar('T')
> depickled_T1, depickled_T2 = pickle_depickle((T, T),
protocol=self.protocol)
tests/cloudpickle_test.py:2345:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cloudpickle_test.py:81: in pickle_depickle
return pickle.loads(cloudpickle.dumps(obj, protocol=protocol))
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
________ Protocol2CloudPickleTest.test_pickle_dynamic_typevar_tracking
_________
self = <tests.cloudpickle_test.Protocol2CloudPickleTest
testMethod=test_pickle_dynamic_typevar_tracking>
def test_pickle_dynamic_typevar_tracking(self):
T = typing.TypeVar("T")
> T2 = subprocess_pickle_echo(T, protocol=self.protocol)
tests/cloudpickle_test.py:2340:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/testutils.py:89: in subprocess_pickle_echo
out = subprocess_pickle_string(input_data,
tests/testutils.py:63: in subprocess_pickle_string
pickle_string = dumps(input_data, protocol=protocol)
cloudpickle/cloudpickle_fast.py:73: in dumps
cp.dump(obj)
cloudpickle/cloudpickle_fast.py:632: in dump
return Pickler.dump(self, obj)
cloudpickle/cloudpickle.py:909: in _typevar_reduce
return (_make_typevar, _decompose_typevar(obj))
cloudpickle/cloudpickle.py:899: in _decompose_typevar
_get_or_create_tracker_id(obj),
cloudpickle/cloudpickle.py:107: in _get_or_create_tracker_id
class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <WeakKeyDictionary at 0xf6742fc0>, key = ~T, default = None
def get(self, key, default=None):
> return self.data.get(ref(key),default)
E TypeError: cannot create weak reference to 'typing.TypeVar' object
/usr/lib/python3.12/weakref.py:452: TypeError
...
=========================== short test summary info
============================
FAILED tests/cloudpickle_test.py::CloudPickleTest::test_generic_subclass -
Ty...
FAILED tests/cloudpickle_test.py::CloudPickleTest::test_generic_type -
TypeEr...
FAILED
tests/cloudpickle_test.py::CloudPickleTest::test_locally_defined_class_with_type_hints
FAILED
tests/cloudpickle_test.py::CloudPickleTest::test_pickle_constructs_from_module_registered_for_pickling_by_value
FAILED tests/cloudpickle_test.py::CloudPickleTest::test_pickle_dynamic_typevar
FAILED
tests/cloudpickle_test.py::CloudPickleTest::test_pickle_dynamic_typevar_memoization
FAILED
tests/cloudpickle_test.py::CloudPickleTest::test_pickle_dynamic_typevar_tracking
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_generic_subclass
FAILED tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_generic_type
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_locally_defined_class_with_type_hints
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_pickle_constructs_from_module_registered_for_pickling_by_value
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_pickle_dynamic_typevar
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_pickle_dynamic_typevar_memoization
FAILED
tests/cloudpickle_test.py::Protocol2CloudPickleTest::test_pickle_dynamic_typevar_tracking
==== 14 failed, 226 passed, 15 skipped, 5 deselected, 12 warnings in 21.86s
====
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2219334
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-...
8 months, 2 weeks