https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Bug ID: 1218023 Summary: [abrt] ibus-table: posixpath.py:83:join:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' Product: Fedora Version: 21 Component: ibus-table Assignee: mfabian@redhat.com Reporter: netanyahu@hotmail.co.il QA Contact: extras-qa@fedoraproject.org CC: dchen@redhat.com, i18n-bugs@lists.fedoraproject.org, kent.neo@gmail.com, me@kaio.net, mfabian@redhat.com, pwu@redhat.com, shawn.p.huang@gmail.com
Version-Release number of selected component: ibus-table-1.9.4-1.fc21
Additional info: reporter: libreport-2.3.0 cmdline: /usr/bin/python3 /usr/share/ibus-table/engine/main.py --xml executable: /usr/share/ibus-table/engine/main.py kernel: 3.19.4-200.fc21.x86_64 runlevel: N 5 type: Python3 uid: 0
Truncated backtrace: posixpath.py:83:join:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Traceback (most recent call last): File "/usr/share/ibus-table/engine/main.py", line 32, in <module> import factory File "/usr/share/ibus-table/engine/factory.py", line 27, in <module> import tabsqlitedb File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 36, in <module> import ibus_table_location File "/usr/share/ibus-table/engine/ibus_table_location.py", line 93, in <module> __module_init = __ModuleInitializer() File "/usr/share/ibus-table/engine/ibus_table_location.py", line 87, in __init__ _init() File "/usr/share/ibus-table/engine/ibus_table_location.py", line 67, in _init ibus_table_location['data_home'] = os.path.join(os.getenv('HOME'), '.local/share') File "/usr/lib64/python3.4/posixpath.py", line 83, in join path += b TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Local variables in innermost frame: b: '.local/share' p: ('.local/share',) path: None sep: '/' a: None valid_types: False
Potential duplicate: bug 1088138
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #4 from Mike FABIAN mfabian@redhat.com --- commit 877e6059ceeb667d0a754c7acbcf630c49bbe2e3 Author: Mike FABIAN mfabian@redhat.com Date: Wed May 6 08:26:20 2015 +0200
Use os.path.expanduser('~') instead of os.getenv('HOME')
Resolves: rhbz#1218023 - [abrt] ibus-table: posixpath.py:83:join:TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' See: https://bugzilla.redhat.com/show_bug.cgi?id=1218023
The Python documentation says:
os.path.expanduser(path)
On Unix and Windows, return the argument with an initial component of ~ or ~user replaced by that user‘s home directory.
On Unix, an initial ~ is replaced by the environment variable HOME if it is set; otherwise the current user’s home directory is looked up in the password directory through the built-in module pwd. An initial ~user is looked up directly in the password directory.
This helps if HOME is not set.
diff --git a/engine/ibus_table_location.py b/engine/ibus_table_location.py index 03dae37..9c5bd67 100644 --- a/engine/ibus_table_location.py +++ b/engine/ibus_table_location.py @@ -64,7 +64,7 @@ def _init(): if not ibus_table_location['data_home'] or not os.path.exists(ibus_table_location['data_home']): ibus_table_location['data_home'] = os.getenv('XDG_DATA_HOME') if not ibus_table_location['data_home'] or not os.path.exists(ibus_table_location['data_home']): - ibus_table_location['data_home'] = os.path.join(os.getenv('HOME'), '.local/share') + ibus_table_location['data_home'] = os.path.expanduser('~/.local/share') ibus_table_location['data_home'] = os.path.join(ibus_table_location['data_home'], 'ibus-table') if not os.access(ibus_table_location['data_home'], os.F_OK): os.makedirs(ibus_table_location['data_home']) @@ -77,7 +77,7 @@ def _init(): if not ibus_table_location['cache_home'] or not os.path.exists(ibus_table_location['cache_home']): ibus_table_location['cache_home'] = os.getenv('XDG_CACHE_HOME') if not ibus_table_location['cache_home'] or not os.path.exists(ibus_table_location['cache_home']): - ibus_table_location['cache_home'] = os.path.join(os.getenv('HOME'), '.cache') + ibus_table_location['cache_home'] = os.path.expanduser('~/.cache') ibus_table_location['cache_home'] = os.path.join(ibus_table_location['cache_home'], 'ibus-table') if not os.access(ibus_table_location['cache_home'], os.F_OK): os.makedirs(ibus_table_location['cache_home'])
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.6-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/ibus-table-1.9.6-1.fc21
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.6-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/ibus-table-1.9.6-1.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.6-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/ibus-table-1.9.6-1.fc22
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- Package ibus-table-1.9.6-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-table-1.9.6-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-7757/ibus-table-1.9.6-1.... then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |ibus-table-1.9.6-1.fc22 Resolution|--- |ERRATA Last Closed| |2015-05-25 23:30:01
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.6-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.7-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f6cf35bc3d
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ON_QA Resolution|ERRATA |--- Keywords| |Reopened
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.7-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update ibus-table' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f6cf35bc3d
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.8-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-9e109344ba
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.8-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update ibus-table' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-9e109344ba
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #14 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. 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 '21'.
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 21 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
--- Comment #15 from Fedora Update System updates@fedoraproject.org --- ibus-table-1.9.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1218023
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|ibus-table-1.9.6-1.fc22 |ibus-table-1.9.6-1.fc22 | |ibus-table-1.9.8-1.fc21 Resolution|--- |ERRATA Last Closed|2015-05-25 23:30:01 |2015-11-12 21:52:26
i18n-bugs@lists.fedoraproject.org