Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


noreply at mythtv

Jul 26, 2012, 2:58 AM

Post #1 of 6 (127 views)
Permalink
Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
--------------------------------------+-------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
I get an error in mythfrontend on all my frontends both when running 0.25
and master (using mythbuntu packages, version below).

I have attached the output of the python script when run from a terminal
with the same user as the one running mythtv.

I can assist in testing if needed.

Best regards,
Rune

My locale is:
{{{
locale
LANG=nb_NO.UTF-8
LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
LC_CTYPE="nb_NO.UTF-8"
LC_NUMERIC="nb_NO.UTF-8"
LC_TIME="nb_NO.UTF-8"
LC_COLLATE="nb_NO.UTF-8"
LC_MONETARY="nb_NO.UTF-8"
LC_MESSAGES="nb_NO.UTF-8"
LC_PAPER="nb_NO.UTF-8"
LC_NAME="nb_NO.UTF-8"
LC_ADDRESS="nb_NO.UTF-8"
LC_TELEPHONE="nb_NO.UTF-8"
LC_MEASUREMENT="nb_NO.UTF-8"
LC_IDENTIFICATION="nb_NO.UTF-8"
LC_ALL=
}}}

Mythtv version:
{{{
mythfrontend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.26-alpha-38-g643ad3e
MythTV Branch : master
Network Protocol : 75
Library API : 0.26.20120724-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv
using_joystick_menu using_libcec using_libcrypto using_libdns_sd
using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit
using_qtscript using_qtdbus using_v4l2 using_x11 using_xrandr using_xv
using_bindings_perl using_bindings_python using_bindings_php
using_mythtranscode using_opengl using_vaapi using_vdpau
using_ffmpeg_threads using_live using_mheg using_libass using_libxml2
}}}
Running sendProfile.py manually:
{{{
/usr/share/mythtv/hardwareprofile/sendProfile.py --submitOnly -a
Processing MythTV Data
Traceback (most recent call last):
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 420, in
<module>
main()
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 403, in
main
profile = read_profile(gate, smolt.read_uuid())
File "/usr/share/mythtv/hardwareprofile/sendProfile.py", line 299, in
read_profile
profile = smolt.create_profile(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 1251, in
create_profile
return create_profile_nocatch(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 1243, in
create_profile_nocatch
return _HardwareProfile(gate, uuid)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 517, in __init__
self.distro_specific = self.get_distro_specific_data(gate)
File "/usr/share/mythtv/hardwareprofile/smolt.py", line 530, in
get_distro_specific_data
d.gather(gate, debug=True)
File "/usr/share/mythtv/hardwareprofile/distros/mythtv_data/main.py",
line 42, in gather
features = create_mythtv_data(gate)
File
"/usr/share/mythtv/hardwareprofile/distros/mythtv_data/data_mythtv.py",
line 514, in create_mythtv_data
return _Mythtv_data(gate)
File
"/usr/share/mythtv/hardwareprofile/distros/mythtv_data/data_mythtv.py",
line 41, in __init__
self.get_data(gate)
File
"/usr/share/mythtv/hardwareprofile/distros/mythtv_data/data_mythtv.py",
line 463, in get_data
self._data.update(self.ProcessPrograms())
File
"/usr/share/mythtv/hardwareprofile/distros/mythtv_data/data_mythtv.py",
line 85, in ProcessPrograms
upcoming = list(_BE.getUpcomingRecordings())
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 753,
in __call__
return self.sortedrun(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 790,
in sortedrun
key=lambda p: p.starttime))
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 783,
in run
db=self.inst.db)
File "/usr/lib/python2.7/dist-packages/MythTV/mythproto.py", line 851,
in __init__
DictData.__init__(self, raw)
File "/usr/lib/python2.7/dist-packages/MythTV/altdict.py", line 141, in
__init__
data = self._process(data)
File "/usr/lib/python2.7/dist-packages/MythTV/altdict.py", line 157, in
_process
data[i] = self._trans[self._field_type[i]](v)
File "/usr/lib/python2.7/dist-packages/MythTV/altdict.py", line 103, in
<lambda>
lambda x: datetime.fromTimestamp(x, datetime.UTCTZ()),
File "/usr/lib/python2.7/dist-packages/MythTV/utility/dt.py", line 55,
in fromTimestamp
return cls.fromtimestamp(float(posix), tz)
File "/usr/lib/python2.7/dist-packages/MythTV/utility/dt.py", line 141,
in fromtimestamp
obj = super(datetime, cls).fromtimestamp(tz)
TypeError: a float is required
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Jul 26, 2012, 1:56 PM

Post #2 of 6 (118 views)
Permalink
Re: Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py) [In reply to]

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
----------------------------------+-----------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by wagnerrp):

* status: new => accepted
* milestone: unknown => 0.26


Comment:

The error as reported only applies to 0.26, and the incomplete handling of
timezone within the Python bindings, with the database now being UTC.
Please open a separate ticket with whatever problem you are having in
0.25.

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Sep 1, 2012, 2:29 PM

Post #3 of 6 (84 views)
Permalink
Re: Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py) [In reply to]

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
----------------------------------+-----------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------

Comment (by Raymond Wagner <rwagner@…>):

In [changeset:b393cbc969f26c470e0ae38e48d9780b67dad604/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="b393cbc969f26c470e0ae38e48d9780b67dad604"
Complete timezone handling in Python bindings following UTC change.

This adds proper timezone handling to the Python bindings, parsing zone
information out of the system TZif files. On systems without those
tables available, the code will revert to a simple offset, yielding
potentially inaccurate times when used on old recordings.

All user interaction with datetimes will be in local time, unless forced
otherwise by a timezone-aware datetime object. Times are converted to
UTC automatically for interfacing with MySQL and mythbackend.

Refs #10941

I'm leaving this ticket open for now, as the timezones will still need
to be created in a different manner on Windows, and potentially OSX.
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Sep 1, 2012, 2:29 PM

Post #4 of 6 (84 views)
Permalink
Re: Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py) [In reply to]

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
----------------------------------+-----------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by wagnerrp):

* milestone: 0.26 => unknown


--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Sep 1, 2012, 2:31 PM

Post #5 of 6 (84 views)
Permalink
Re: Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py) [In reply to]

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
----------------------------------+-----------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by wagnerrp):

* milestone: unknown => 0.26


--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Sep 1, 2012, 2:33 PM

Post #6 of 6 (84 views)
Permalink
Re: Ticket #10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py) [In reply to]

#10941: Error in submitting hardware profile (hardwareprofile/sendProfile.py)
----------------------------------+-----------------------------
Reporter: rune.evjen@… | Owner: wagnerrp
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution: Fixed
Keywords: | Ticket locked: 0
----------------------------------+-----------------------------
Changes (by wagnerrp):

* status: accepted => closed
* resolution: => Fixed


Comment:

In [changeset:b393cbc969f26c470e0ae38e48d9780b67dad604/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="b393cbc969f26c470e0ae38e48d9780b67dad604"
Complete timezone handling in Python bindings following UTC change.

This adds proper timezone handling to the Python bindings, parsing zone
information out of the system TZif files. On systems without those
tables available, the code will revert to a simple offset, yielding
potentially inaccurate times when used on old recordings.

All user interaction with datetimes will be in local time, unless forced
otherwise by a timezone-aware datetime object. Times are converted to
UTC automatically for interfacing with MySQL and mythbackend.

Refs #10941

I'm leaving this ticket open for now, as the timezones will still need
to be created in a different manner on Windows, and potentially OSX.
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10941#comment:5>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.