pyinputstats counters on zero

Bug #740607 reported by Urtzi Anbustegi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyInputStats
Confirmed
Undecided
Unassigned

Bug Description

pyinputstats window works fine, but doesn't show statistics, shows all the counters on zero, no matter what i do.

I installed pyinputstats, Installation was ok, no errors. These are the last lines of installation process:

$ sudo python setup.py install
-----------------------------------
Installing pyinputstats script to /usr/local/bin
Installed /usr/local/lib/python2.6/dist-packages/pyInputStats-0.2.1-py2.6.egg
Processing dependencies for pyInputStats==0.2.1
Finished processing dependencies for pyInputStats==0.2.1
------------------------------

Thank you for your time.

My system is GNU\Linux Ubuntu 9.10 Karmic Koala
Python version: 2.6.4
Packages Installed: python2.6-dev, libsqlite3-dev, python-xlib

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

Hello,

thanks for reporting this issue. Sometimes pyInputStats needs some time to collect data. After five minutes there should be some data points under "day overview". Otherwise press "Refresh", this also helps sometimes.

If all this does not work for you, please exit pyInputStats and run it from terminal. Perhaps there are any errors.

Sincereley,

Daniel

Revision history for this message
Urtzi Anbustegi (soyurtzi) wrote :

Hello again,

Thanks for the reply, I run the aplication on startup for 1 hour, clicking on the "refresh" button, but counters remain in zero.

I closed the application and i run it from terminal. The same happens.
this is the output from the command:

-------------------------------
hideyoshi@Tokyo:~$ pyinputstats
Assuming DPI being 92

-------------------------------

It seems no permission issue, I have tried it as root with same results. i think it may be a db creation problem.
But i don't know how to check it, I'm searching for some sqlite3 info...

More test that i have done:

Running on terminal, If i press ctrl+c to close the program i get:

-------------------------------
hideyoshi@Tokyo:~$ pyinputstats
Assuming DPI being 92
^CTraceback (most recent call last):
  File "/usr/local/bin/pyinputstats", line 5, in <module>
    pkg_resources.run_script('pyInputStats==0.2.1', 'pyinputstats')
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1166, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/pyInputStats-0.2.1-py2.6.egg/EGG-INFO/scripts/pyinputstats", line 78, in <module>
    gtk.main()
KeyboardInterrupt
-------------------------------

then I can send the program to "stopped" with ctrl+z and kill it or recover it, and it works, but counters on zero.

Is there more log files or debugging arguments that i can check?

Thanks.

Revision history for this message
Urtzi Anbustegi (soyurtzi) wrote :

More info:

sqlite3 version: 3.6.16
Kernel version: 2.6.31-23-generic-pae #74-Ubuntu SMP Mon Feb 28 22:35:31 UTC 2011 i686 GNU/Linux
Python version: 2.6.4
Packages Installed: python2.6-dev, libsqlite3-dev, python-xlib

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

Hi,

the database is saved under "~/.local/share/pyinputstats/data.db". Is there a such file on your drive? What happens if you exit pyInputStats, delete "data.db" and run pyInputStats again from terminal? Do you get any error-output?

The output you posted above (KeyboardInterrupt) is not the problem.

Sincerely,

Daniel

Changed in pyinputstats:
status: New → Incomplete
Revision history for this message
Urtzi Anbustegi (soyurtzi) wrote :

Hi Daniel,

The database exists:
------------------------------------------
hideyoshi@Tokyo:~/.local/share/pyinputstats$ ls -l
-rw-r--r-- 1 hideyoshi hideyoshi 4096 2011-03-24 20:41 data.db
------------------------------------------

I removed it, and started pyinputstats again.
The database is created, same size:
------------------------------------------
hideyoshi@Tokyo:~/.local/share/pyinputstats$ ls -l
-rw-r--r-- 1 hideyoshi hideyoshi 4096 2011-03-28 22:11 data.db
------------------------------------------

I restarted the program, and the modification time of the database remains:
------------------------------------------
-rw-r--r-- 1 hideyoshi hideyoshi 4096 2011-03-28 22:11 data.db
------------------------------------------

I closed after 5 minutes, same modification date.

Thanks.

Revision history for this message
Urtzi Anbustegi (soyurtzi) wrote :

Maybe this is important, I first tried to install the package downloaded from softpedia website. but i couldn't.

I tried to install it from the command line getting finishing installation with errors and then i downloaded and installed the package from this website.

The files from the two websites had different sizes.

-rw-r--r-- 1 hideyoshi hideyoshi 127800 2011-03-23 23:15 pyInputStats-0.2.1.tar(FROM SOFTPEDIA).gz
-rw-r--r-- 1 hideyoshi hideyoshi 127512 2011-03-23 00:36 pyInputStats-0.2.1.tar(FROM LAUNCHPAD).gz

maybe there is some "trash" from the other installation?

Thanks

Revision history for this message
Urtzi Anbustegi (soyurtzi) wrote :

I have made more test, i get it working with Ubuntu 10.10. But not with Ubuntu 9.10.

I give some info about the packages and distributions i have tested, in all of them i have installed the "python-xlib" and "python-pysqlite2" using APT from the default repositories, in Ubuntu 9.10 i tried another xlib package with not success:

NOT WORKING:
============
>Ubuntu 9.10, LinuxMint 8.
python-xlib_0.14-2_all.deb
python-pysqlite2_2.5.5-1ubuntu1_i386.deb

>Debian 5:
python-xlib_0.14-2_all.deb
python-pysqlite2_2.4.1-1_i386.deb

>Ubuntu 9.10(different xlib):
python-xlib_0.14+20091101-1_all.deb
python-pysqlite2_2.5.5-1ubuntu1_i386.deb

WORKING:
============
Ubuntu 10.10
python-xlib_0.14+20091101-1_all.deb
python-pysqlite2_2.6.0-1_i386.deb

Changing the default xlib package for Ubuntu 9.10. I get this:

-------------------
root@Tokyo:/home/hideyoshi/Deskargak/pyInputStats-0.2.1# pyinputstats
Assuming DPI being 92
Xlib.protocol.request.QueryExtension
Xlib.protocol.request.QueryExtension
-------------------

Thank you.

Revision history for this message
Daniel Nögel (daniel-xn--ngel-5qa) wrote :

Hi Urtzi,

thanks for all your effort. I was able to reproduce the problem on Ubuntu 9.04 on VirtualBox. The problem seems to be related to the xlib's record-extension. But somehow there is no error-message at all: Everything seems to work normal but there are simply no calls to the record-extension-callback ("record_callback").

Perhaps this is somehow related to the x-version used. I'll will try to get some more information about this.

Sincerely,

Daniel

Changed in pyinputstats:
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.