Bug 1114394 - [abrt] jbrout: jbrout.py:42:<module>:TypeError: sequence item 0: expected string, NoneType found
Summary: [abrt] jbrout: jbrout.py:42:<module>:TypeError: sequence item 0: expected str...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jbrout
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matěj Cepl
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:667ba03043369ff46a4c82a3e8b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-29 23:14 UTC by Mark Walker
Modified: 2018-04-11 16:37 UTC (History)
4 users (show)

Fixed In Version: jbrout-0.4-0.13.git20140930reva7c8fb8.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-10 16:00:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.25 KB, text/plain)
2014-06-29 23:14 UTC, Mark Walker
no flags Details
File: environ (2.09 KB, text/plain)
2014-06-29 23:14 UTC, Mark Walker
no flags Details
Screenshot of jbrout display showing only placeholder thumnails. (41.92 KB, image/png)
2014-11-30 01:40 UTC, Mark Walker
no flags Details

Description Mark Walker 2014-06-29 23:14:48 UTC
Version-Release number of selected component:
jbrout-0.3.338-0.9.svn338.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python /usr/share/jbrout/jbrout.py
executable:     /usr/share/jbrout/jbrout.py
kernel:         3.14.7-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
jbrout.py:42:<module>:TypeError: sequence item 0: expected string, NoneType found

Traceback (most recent call last):
  File "/usr/share/jbrout/jbrout.py", line 42, in <module>
    locale.setlocale(locale.LC_ALL, '.'.join(locale.getdefaultlocale()))
TypeError: sequence item 0: expected string, NoneType found

Local variables in innermost frame:
GPollableInputStream: <class 'gio.__main__.GPollableInputStream'>
string: <module 'string' from '/usr/lib64/python2.7/string.pyc'>
GFileDescriptorBased: <class 'gio.__main__.GFileDescriptorBased'>
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/share/jbrout/jbrout.py'
gtk: <module 'gtk' from '/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.pyc'>
pygtk: <module 'pygtk' from '/usr/lib64/python2.7/site-packages/pygtk.pyc'>
__package__: None
sys: <module 'sys' (built-in)>
locale: <module 'locale' from '/usr/lib64/python2.7/locale.pyc'>
time: <module 'time' from '/usr/lib64/python2.7/lib-dynload/timemodule.so'>
GInitiallyUnowned: <class 'gtk.__main__.GInitiallyUnowned'>
__name__: '__main__'
GPollableOutputStream: <class 'gio.__main__.GPollableOutputStream'>
subprocess: <module 'subprocess' from '/usr/lib64/python2.7/subprocess.pyc'>
os: <module 'os' from '/usr/lib64/python2.7/os.pyc'>
__doc__: None

Comment 1 Mark Walker 2014-06-29 23:14:52 UTC
Created attachment 913230 [details]
File: backtrace

Comment 2 Mark Walker 2014-06-29 23:14:54 UTC
Created attachment 913231 [details]
File: environ

Comment 3 Fedora Admin XMLRPC Client 2014-09-07 22:33:02 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Matěj Cepl 2014-09-30 16:53:36 UTC
I am still in the process of resurrecting orphaned jbrout package in Fedora (bug 1139066), but could you please test RPM from https://kojipkgs.fedoraproject.org//work/tasks/2471/7732471/jbrout-0.4-0.13.git20140930reva7c8fb8.fc20.noarch.rpm whether it fixes this bug, please?

Thank you

Comment 5 Fedora Update System 2014-10-01 17:27:34 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/jbrout-0.4-0.13.git20140930reva7c8fb8.fc19

Comment 6 Fedora Update System 2014-10-01 17:29:07 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/jbrout-0.4-0.13.git20140930reva7c8fb8.fc21

Comment 7 Fedora Update System 2014-10-01 17:30:13 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/jbrout-0.4-0.13.git20140930reva7c8fb8.fc20

Comment 8 Fedora Update System 2014-10-01 17:31:10 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/jbrout-0.4-0.13.git20140930reva7c8fb8.el6

Comment 9 Fedora Update System 2014-10-02 17:05:48 UTC
Package jbrout-0.4-0.13.git20140930reva7c8fb8.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing jbrout-0.4-0.13.git20140930reva7c8fb8.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-3085/jbrout-0.4-0.13.git20140930reva7c8fb8.el6
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-10-10 16:00:12 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-10-16 02:00:04 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-10-16 02:02:33 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2014-11-02 21:09:11 UTC
jbrout-0.4-0.13.git20140930reva7c8fb8.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Mark Walker 2014-11-30 01:36:21 UTC
I apologize for not repying sooner. I checked and I have the latest version listed above installed (I run a nightly yum cron job).

When trying to import my Pictures folder into jbrout just now I got the following error message:
Traceback (most recent call last):
   File "/usr/share/jbrout/jbrout.py", line 2814, in on_btn_addFolder_clicked
    self.on_drop_folders_from_os(self.treeviewdb.get_model(), [folder])
   File "/usr/share/jbrout/jbrout.py", line 1826, in on_drop_folders_from_os
    total = iterator.next()
   File "/usr/share/jbrout/jbrout/db.py", line 156, in add
    if os.path.isfile(file):
   File "/usr/lib64/python2.7/genericpath.py", line 29, in isfile
    st = os.stat(path)
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 66: ordinal not in range(128)

As my Pictures folder, with all its subfolders, is 9.5G according to the du utility, I tried a small subfolder with only 6 .jpg files totaling 348K. That did not produce an error message, but jbrout displayed only placeholder images instead of thumbnails for the actual images, as shown in the screenshot in the attached file screen.png. Clicking on the images in the jbrout listing did open them in a full screen viewer. Pressing esc returned to the listing display but with a duplicate placeholder thumb included until clicking inside the jbrout display.

Comment 15 Mark Walker 2014-11-30 01:40:10 UTC
Created attachment 962846 [details]
Screenshot of jbrout display showing only placeholder thumnails.

Attachment referred to in reply on November 28, 2014.

Comment 16 Mark Walker 2014-11-30 01:42:22 UTC
Comment on attachment 962846 [details]
Screenshot of jbrout display showing only placeholder thumnails.

Attachment is referred to by comment on  2014-11-29 to show the display results.


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