Talk:PyPhonelog

From Openmoko

Revision as of 11:16, 13 December 2008 by Zupert (Talk | contribs)

Jump to: navigation, search

Hi, sorry, i have problem with phonelog. When i start it in the terminal i get the error

Traceback (most recent call last):
 File "/usr/bin/phonelog", line 471, in <module>
   populateList(incomingList, "incoming", last_time)
 File "/usr/bin/phonelog", line 250, in populateList
   calls = getPhonekitCallsList(type)
 File "/usr/bin/phonelog", line 141, in getPhonekitCallsList
   calls = database.execute("SELECT %s FROM calls WHERE direction = ? AND activeTime IS NOT NULL ORDER BY startTime DESC" % (get_fields, ), (CALL_STATUS_INCOMING, )).fetchall()
sqlite3.OperationalError: no such table: calls

I dont know what to set, to get logging on in ophonekitd. I use a SHR-image from 9.12.08. Do i need to use the daemon? The daemon doesn't seem to run:

Traceback (most recent call last):
 File "/usr/bin/phonelog", line 468, in <module>
   contacts = contactsObject.RetrievePhonebook("contacts")
 File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 68, in __call__
   return self._proxy_method(*args, **keywords)
 File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
   **keywords)
 File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 622, in call_blocking
   message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

What can i do? g0m3z

For the moment, including with SHR, we should install the daemon. try to reboot he phone if the daemon doesn't work at first try.

Also note that for the moment, there's a little bug that prevents populating the list. A workaround is, line 255 in phonelog : (take care of tabulating, it's python!)

 try:
   calls[0]
 except:
   return False

--Zupert 11:16, 13 December 2008 (UTC)

Personal tools

Hi, sorry, i have problem with phonelog. When i start it in the terminal i get the error

Traceback (most recent call last):
 File "/usr/bin/phonelog", line 471, in <module>
   populateList(incomingList, "incoming", last_time)
 File "/usr/bin/phonelog", line 250, in populateList
   calls = getPhonekitCallsList(type)
 File "/usr/bin/phonelog", line 141, in getPhonekitCallsList
   calls = database.execute("SELECT %s FROM calls WHERE direction = ? AND activeTime IS NOT NULL ORDER BY startTime DESC" % (get_fields, ), (CALL_STATUS_INCOMING, )).fetchall()
sqlite3.OperationalError: no such table: calls

I dont know what to set, to get logging on in ophonekitd. I use a SHR-image from 9.12.08. Do i need to use the daemon? The daemon doesn't seem to run:

Traceback (most recent call last):
 File "/usr/bin/phonelog", line 468, in <module>
   contacts = contactsObject.RetrievePhonebook("contacts")
 File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 68, in __call__
   return self._proxy_method(*args, **keywords)
 File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
   **keywords)
 File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 622, in call_blocking
   message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

What can i do? g0m3z

For the moment, including with SHR, we should install the daemon. try to reboot he phone if the daemon doesn't work at first try.

Also note that for the moment, there's a little bug that prevents populating the list. A workaround is, line 255 in phonelog : (take care of tabulating, it's python!)

 try:
   calls[0]
 except:
   return False

--Zupert 11:16, 13 December 2008 (UTC)