I think this is the root of the problem:
import locale
locale.getlocale()
(None, None)
locale.setlocale(locale.LC_ALL, '')
'nb_NO.UTF-8'
locale.getlocale()
('nb_NO', 'UTF8')
locale.localeconv()['decimal_point']
','
locale.localeconv()['thousands_sep']
'\xc2\xa0'
It probably should have
Sorry, I have and an extra quotation mark in the above post.
This is the correct one:
su mythtv -c export LANG=en_US.UTF-8; /usr/bin/python
/usr/share/mythtv/mythvideo/scripts/jamu.py -MW
'/var/log/mythtv/jamu.log'
Georg
--
jamu.py crashed in Program._init_() from MythTV.py
Fixed temporarily by setting locale explicitly in
/etc/cron.hourly/mythvideo:
Original:
#!/bin/sh
#Hourly massive update to ensure users see graphics coming in for upcoming
recordings and current recordings
DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}')
if [ -f
Hello guys,
I have the same behaviour, even with mythplugins -
0.22.0+fixes22594-0ubuntu1 installed.
Anyway, the fix seems to be in the file
/usr/lib/python2.6/dist-packages/MythTV/MythTV.py, belonging to libmyth-python
(also 0.22.0+fixes22594-0ubuntu1), and my file has the fix, as referred to
This bug was fixed in the package mythplugins -
0.22.0+fixes22594-0ubuntu1
---
mythplugins (0.22.0+fixes22594-0ubuntu1) karmic; urgency=low
* New upstream checkout.
- Fixes jamu crash with non english locales. (LP: #452790)
- Needs to be updated to due new binary version of
** Visibility changed to: Public
--
jamu.py crashed in Program._init_() from MythTV.py
https://bugs.launchpad.net/bugs/452790
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
** Changed in: mythplugins (Ubuntu)
Assignee: (unassigned) = doug (r-d-vaughan)
--
jamu.py crashed in Program._init_() from MythTV.py
https://bugs.launchpad.net/bugs/452790
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
As far as I can tell, python should default to whatever C uses, and
processing floats should just work, however that never turns out as
planned... I can work around this using 'locale.atof()' instead of
'float()', assuming python interprets your localizations settings
properly.
Can you open
It lookes like you should be able to key off that.
http://www.doughellmann.com/PyMOTW/locale/index.html
--
jamu.py crashed in Program._init_() from MythTV.py
https://bugs.launchpad.net/bugs/452790
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
(To add, you can do more experiments by setting LANG env variables)
--
jamu.py crashed in Program._init_() from MythTV.py
https://bugs.launchpad.net/bugs/452790
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing
Here goes python output:
import locale
locale.getdefaultlocale()
('pl_PL', 'UTF8')
locale.localeconv()['decimal_point']
'.'
locale.atof(100,1)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.6/locale.py, line 292, in atof
return func(string)
Once again
import locale
locale.getlocale()
(None, None)
locale.setlocale(locale.LC_ALL, '')
'pl_PL.UTF-8'
locale.localeconv()['decimal_point']
','
locale.atof(100,1)
100.09
So after setting the locale it worked.
--
jamu.py crashed in Program._init_() from MythTV.py
http://svn.mythtv.org/trac/ticket/7346
Should set the defaults from the environment, and adjusts all conversion
between floats and strings to use their respective counterpart functions
in locale.
** Bug watch added: mythtv.org bug tracker #7346
http://svn.mythtv.org/trac/ticket/7346
--
** Also affects: mythplugins via
http://svn.mythtv.org/trac/ticket/7346
Importance: Unknown
Status: Unknown
** Changed in: mythplugins (Ubuntu)
Status: New = In Progress
** Changed in: mythplugins (Ubuntu)
Assignee: doug (r-d-vaughan) = (unassigned)
--
jamu.py crashed
** Changed in: mythplugins
Status: Unknown = Fix Released
--
jamu.py crashed in Program._init_() from MythTV.py
https://bugs.launchpad.net/bugs/452790
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
15 matches
Mail list logo