Bug 1275259 - Union type not working correctly with python 3 and GObject introspection
Summary: Union type not working correctly with python 3 and GObject introspection
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject3
Version: 24
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 12:03 UTC by Vratislav Podzimek
Modified: 2017-08-08 12:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 12:19:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
the reproducer sources (1.67 KB, application/x-gzip)
2015-10-26 12:03 UTC, Vratislav Podzimek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 761101 0 None None None 2016-01-25 18:39:33 UTC

Description Vratislav Podzimek 2015-10-26 12:03:56 UTC
Created attachment 1086482 [details]
the reproducer sources

Description of problem:
If I have a union type in my GObject-based code and try to use it from python 3, the right value doesn't get to the "C side". However, this works just fine with python 2. Running the attached reproducer I get this:

$ GI_TYPELIB_PATH=. LD_LIBRARY_PATH=. python reproducer.py 
got unit with int value: 1
got unit with int value: 2
got unit with int value: 3

$ GI_TYPELIB_PATH=. LD_LIBRARY_PATH=. python3 reproducer.py 
got unit with int value: 1
got unit with int value: 1
got unit with int value: 1

How reproducible:
100%

Steps to Reproduce:
1. unpack the attached reproducer
2. run rebuild_test_data.sh
3. run $ GI_TYPELIB_PATH=. LD_LIBRARY_PATH=. python reproducer.py
4. run $ GI_TYPELIB_PATH=. LD_LIBRARY_PATH=. python3 reproducer.py

Actual results:
different behaviour for python 2 (correct) and python 3 (wrong)

Expected results:
the same (correct) behaviour in python 3 as in python 2

Additional info:
this blocks python-blivet [1] from starting to use the new libbytesize library [2]

[1] https://github.com/rhinstaller/blivet
[2] https://github.com/rhinstaller/libbytesize

Comment 1 Vratislav Podzimek 2015-10-26 12:04:35 UTC
One more piece of info -- this seems to be an issue in all F21-Rawhide.

Comment 2 Vratislav Podzimek 2015-11-26 09:44:43 UTC
Anything more I could do to help things move on here? It's really a big issue blocking us from using new, better code.

Comment 3 Fedora Admin XMLRPC Client 2016-01-27 17:43:01 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2016-01-27 17:59:13 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2016-01-27 18:00:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2016-01-27 18:12:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora End Of Life 2016-11-24 12:55:25 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Vratislav Podzimek 2016-12-12 08:11:40 UTC
Still the same in F24.

Comment 9 Fedora End Of Life 2017-07-25 19:23:53 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-08-08 12:19:41 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.