maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Annouce] HealthCheck - Hardware/System checker for the N900 (https://talk.maemo.org/showthread.php?t=45453)

noobmonkey 2010-06-07 11:21

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by dharder (Post 703315)
I am having the same problem. The error is:

python: can't open file '/opt/healthcheck/python.py': [Errno 2] No such file or directory

Strange because it is in the directory and all.

Sorry looks like i made an obvious typo in that one!!

python /opt/healthcheck/healthcheck.py

noobmonkey 2010-06-07 11:31

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Ok, new version is in extras -devel NOW! wohooo

removed pyside dependencies, and confirming GPS fix!

qwerty12 2010-06-07 13:01

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Get FM Transmitter state & frequency

I don't know how Qt works (hell, I'm having trouble with python-dbus -- Vala and DBus-GLib in C FTW! :)) so I can't add any interface elements myself; nor do I know how its signal implementation works so I can't add checking for the "Error" signal sent by FMTxd.

Regardless,

Code:

# -*- coding: utf-8 -*-
import dbus

def FMTxPropertiesInterfaceConnect():

        bus = dbus.SystemBus()

        dbus_object = bus.get_object('com.nokia.FMTx', '/com/nokia/fmtx/default', False)

        dbus_interface = dbus.Interface(dbus_object, dbus_interface='org.freedesktop.DBus.Properties')

        return dbus_interface

def GetProp(dbus_interface, prop):
        return dbus_interface.Get('org.freedesktop.DBus.Properties', prop)

def FMTxState():
        return GetProp(FMTxPropertiesInterfaceConnect(), 'state')

def FMTxFrequency():
        return GetProp(FMTxPropertiesInterfaceConnect(), 'frequency')

def FMTxStartable():
        return GetProp(FMTxPropertiesInterfaceConnect(), 'startable')

#print "%s" % FMTxState()

More properties are available than what is there - check out http://maemo.org/api_refs/5.0/5.0-fi...html#id2989565 and many are also setable - http://talk.maemo.org/showpost.php?p...3&postcount=12 is an example of how the Set method of the 'org.freedesktop.DBus.Properties' interface can be used in Python

noobmonkey 2010-06-07 13:33

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Oooo wooohoooooooo!
Will see if i can get it in there, thanks Qwerty! Very much appreciate your input :)

noobmonkey 2010-06-07 14:10

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Tadaaaaaaaaaaaaa
New version - 1.2.1-2 is in extras-devel and should finally have the following:
Fixed pyside dependencies (Attempt No 3)
Fixed GPS Bug - confirmed by Frals
Added Qwerty12's great examples, and tested + added touch updates - like the rest of the info in the system tab.

chubbyisacat 2010-06-07 16:04

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Since the last 3 updates, I can't get Healthcheck to load - just reverts blankly to the desktop every time. It was working fine last night before I updated. I've tried uninstalling and reinstalling to no avail. Thanks for any help - really like the application.

noobmonkey 2010-06-07 16:10

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703674)
Since the last 3 updates, I can't get Healthcheck to load - just reverts blankly to the desktop every time. It was working fine last night before I updated. I've tried uninstalling and reinstalling to no avail. Thanks for any help - really like the application.



eeeeeeeek!
can you please try running it from terminal, and let me know where it falls over?

in terminal type:
python /opt/healthcheck/healthcheck.py

when it fails, you will see something appear in x-terminal, the last few lines should let me identify what and where the problem is.

chubbyisacat 2010-06-07 16:22

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
~ $ python /opt/healthcheck/healthcheck.py
***** Start Imports *****
** Importing qtcore & gui **
** Importing ui.touchstub - accuracy tool **
** Importing sys **
** Importing commands **
** Importing os **
** Importing os.path **
** Importing subprocess **
** Importing dbus.glib **
** Importing Start location**
** Importing Cellinfo **
** Importing Hildon **
** Importing Functions **
** Importing Time **
** Importing GTK **
** Initialize Threads(GTK) **
** Importing Gobject **
***** Finish Imports *****
** Seting global variables **
** Starting Main **
** app = QtGui App** - Running app = QtGui.QApplication(sys.argv) **
/opt/healthcheck/healthcheck.py:1053: GtkWarning: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
app = QtGui.QApplication(sys.argv)
** Setting Main Window**
** Setting tool window #1**
Traceback (most recent call last):
File "/opt/healthcheck/healthcheck.py", line 1057, in <module>
win = healthcheckWindow(MainWindow)
File "/opt/healthcheck/healthcheck.py", line 185, in __init__
self.setAttribute(QtCore.Qt.WA_Maemo5StackedWindow )
AttributeError: type object 'Qt' has no attribute 'WA_Maemo5StackedWindow'
~ $

I hope the above is done right - this is new territory for me.

noobmonkey 2010-06-07 16:31

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
what is your firmware version? :)

chubbyisacat 2010-06-07 16:35

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I have the PR1.2 update installed since it was released. I have had Healtcheck since before that - has worked fine before and since, except after the last 3 updates.

noobmonkey 2010-06-07 16:38

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
i know the error, but it's not making a great amount of sense to me. just on my way home, will run some checks and write back in 5 mins :)

chubbyisacat 2010-06-07 16:41

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Thanks - take your time, it's worth waiting for :)

noobmonkey 2010-06-07 16:43

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703716)
Thanks - take your time, it's worth waiting for :)

Right back on my laptop! - just running a few tests :)
No, thank you , really :) - i appreciate the time it takes to test applications, as well as delving int extras devel.

I think you may not be the only one running with this issue, and its probably since i removed pyside :P (Typical! - but odd it is not happening on my device) - the other possible issue is an older version of qt(Doubt that though) - anyway running checks! :)

noobmonkey 2010-06-07 16:49

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
It does look like the version of PyQT you are running.
In x-terminal can you type

dpkg -l python2.5-qt4-core
(That is a lower case L after the -)

my version is 4.7.3-maemo5

Venemo 2010-06-07 16:51

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
My first bet would be that he has Qt 4.5 instead of 4.6 - the 4.5 version lacked Maemo 5 stacked windows, and he has that problem.

noobmonkey 2010-06-07 16:51

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by Venemo (Post 703732)
My first bet would be that he has Qt 4.5 instead of 4.6 - the 4.5 version lacked Maemo 5 stacked windows, and he has that problem.

Yeah my thought - but would have assumed that a fresh install and/or installing PR1.2 would fix that?

Venemo 2010-06-07 16:55

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 703734)
Yeah my thought - but would have assumed that a fresh install and/or installing PR1.2 would fix that?

Yes, that is the point of my confusion, too.
Perhaps his installation of Qt is somehow busted... Or not all libqt4-* packages are updated because of some dependency problem?

I would recommend an
Code:

apt-get -f install
and then trying to run healthcheck.

If that doesn't solve it, then we should see the output of
Code:

apt-get install libqt4-core
if it says that it is already at the newest version, then something else is the problem.

noobmonkey 2010-06-07 16:58

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hold on!
let me set the depends correctly :)

Gonna change the build file to - python2.5-qt4 (>= 4.6)
That should help! :)

chubbyisacat 2010-06-07 16:59

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 703729)
It does look like the version of PyQT you are running.
In x-terminal can you type

dpkg -l python2.5-qt4-core
(That is a lower case L after the -)

my version is 4.7.3-maemo5

I'm going to try this first - it looks the most straightforward :) The rest looks like :eek: to me - I'm a grandmother but I'm learning fast. Give me a few moments ...

Venemo 2010-06-07 17:03

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703750)
I'm going to try this first - it looks the most straightforward :) The rest looks like :eek: to me - I'm a grandmother but I'm learning fast. Give me a few moments ...

Don't worry, my post was adressed to Greg (noobmonkey), and it was pure speculation. :)
If it is necessary, we'll give you more detailed info, don't worry!

By the way, if you really are a grandmother, you have my congratulations! Neither of my grandmothers have such an affinity in technology.

chubbyisacat 2010-06-07 17:04

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
ok, what does all this mean?

dpkg -l python2.5-qt4-core
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii python2.5-qt4- 4.7-maemo7 Python bindings for Qt4 Core components.
~ $

chubbyisacat 2010-06-07 17:06

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Yes, really am a grandmother of 2. Almost afraid to admit it on a forum like this in case I am just dismissed, or thought of as a fossil :) I'm a quick learner and willing to try new things (as in gadgets ;))

noobmonkey 2010-06-07 17:10

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Wow - i am seriously impressed - and really love this community at times.
Kudos to you for getting involved and playing with the N900 :) - well done!

Right just pushed a new version to extras-devel - i'm trying a full uninstall myself and going to re-install.

In terminal i am trying:
sudo gainroot
apt-get remove healthcheck && apt-get autoremove

then i will just go back into app manager and do a fresh install of healthcheck - will report back - normally takes 5 minutes for the autobuilder to get it in there.

noobmonkey 2010-06-07 17:11

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703767)
Yes, really am a grandmother of 2. Almost afraid to admit it on a forum like this in case I am just dismissed, or thought of as a fossil :) I'm a quick learner and willing to try new things (as in gadgets ;))

Hehehe, i met up with reverand Kathy (RevdKathy on here) a few months ago, Trying to be polite as possible - Kathy would not be your normal expected user - but she is also doing an amazing job and has got thoroughly involved with documentation etc :)

noobmonkey 2010-06-07 17:12

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703761)
ok, what does all this mean?

dpkg -l python2.5-qt4-core
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii python2.5-qt4- 4.7-maemo7 Python bindings for Qt4 Core components.
~ $

Ok, well you do have an older version than me...

Will report back in a few minutes after my last test - if it works you can try what i said and/or what venemo said :)

noobmonkey 2010-06-07 17:18

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Whilst i wait for app manager to keep up with me - http://pixelpipe.com/item/33a3666d-4...8-1a3afa167ff5 <- that's the video from our N900 meetup, and the related tmo post is here - http://talk.maemo.org/showthread.php?t=48471&page=5

Shows kathy, I etc :)

noobmonkey 2010-06-07 17:23

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
ok reporting back.......
All working for me still - can you try the following please?
sudo gainroot
apt-get remove healthcheck && apt-get autoremove


then goto application manager and re-install healthcheck please.
(I'll cross my fingers)

edit - lol - i managed to bugger up the fm transmitter frequency making a quick change, will sort that out this week :)

chubbyisacat 2010-06-07 17:35

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
is the following what I was suoosed to get after putting the command into xterminal?
~ $ sudo gainroot
Enable RD mode if you want to break your device
~ $ apt-get remove healthcheck && apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~ $

noobmonkey 2010-06-07 17:36

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703812)
is the following what I was suoosed to get after putting the command into xterminal?
~ $ sudo gainroot
Enable RD mode if you want to break your device
~ $ apt-get remove healthcheck && apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~ $

Hehe - sorry you need to have application manager closed before you run the line :
apt-get remove healthcheck && apt-get autoremove

(Wasn't a bad error - just letting you know that it cant complete the command whilst app manager is alive - as they both use apt-get)

noobmonkey 2010-06-07 17:39

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
oh hang on, also you need rootsh installed from extras (That could be the other reason!)

chubbyisacat 2010-06-07 17:42

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 703815)
Hehe - sorry you need to have application manager closed before you run the line :
apt-get remove healthcheck && apt-get autoremove

(Wasn't a bad error - just letting you know that it cant complete the command whilst app manager is alive - as they both use apt-get)

Sorry, I'm lost. I didn't have application manager open - well, not as far as I know. I've tried again - this time typing it in rather than cutting and pasting - and it won't go past 'sudo gainroot' as it asks to 'Enable RD mode if you want to break your device'? I must be doing something wrong?

Venemo 2010-06-07 17:44

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703812)
is the following what I was suoosed to get after putting the command into xterminal?
~ $ sudo gainroot
Enable RD mode if you want to break your device

This means that you'll have to install rootsh from the application manager first. This grants you "root access" to the device's operating system, which allows you to mess up with more sensitive parts of the system.

After you installed rootsh, quit the app manager and proceed as Greg said.

noobmonkey 2010-06-07 17:46

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
ahhh yeah - i think that means you may not have rootsh installed - http://maemo.org/downloads/product/Maemo5/rootsh

It's my fault - i'm not being very clear.
To run the commands i said you need to be 'root' - translated that kinda means an administrator on your phone.

Rootsh is an application that allows you to easily get root access by typing 'sudo gainroot' (When you close terminal after doing things, it will stop that admin session. (just incase you wondered).

The reason why we are doing this in terminal, is because it provides a lot more feedback then the application manager :)

Venemo 2010-06-07 17:56

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 703786)
Whilst i wait for app manager to keep up with me - http://pixelpipe.com/item/33a3666d-4...8-1a3afa167ff5 <- that's the video from our N900 meetup, and the related tmo post is here - http://talk.maemo.org/showthread.php?t=48471&page=5

Shows kathy, I etc :)

Nice video. :)
Where did you take it?

noobmonkey 2010-06-07 18:07

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by Venemo (Post 703847)
Nice video. :)
Where did you take it?


hehe, was taken in the pub in the pub in dorset/devon area! just a random N900 meetup in apri! will be arranging another one soon!

chubbyisacat 2010-06-07 18:08

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Ok, did all that and reinstalled, but no joy :( Still the same as before. I cocked it up when I came across the first Y/n option - amazing the stages that noobies need to know. Was I supposed to keep the readout from X-terminal? Sorry for taking so long, but Maemo won't let me log on on my phone now and I'm at the desktop - don't why that is as it always worked before? Maybe I'm just jinxed ...

noobmonkey 2010-06-07 18:19

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by chubbyisacat (Post 703872)
Ok, did all that and reinstalled, but no joy :( Still the same as before. I cocked it up when I came across the first Y/n option - amazing the stages that noobies need to know. Was I supposed to keep the readout from X-terminal? Sorry for taking so long, but Maemo won't let me log on on my phone now and I'm at the desktop - don't why that is as it always worked before? Maybe I'm just jinxed ...

Hehehe well it was an attempt :) - and you've done well so far!
It's not really a newbie thing as you are venturing into extras-devel - these are the stages us 'developers'(I use that loosely!) go through to make sure apps work for all by the time they get to extras! (So all testers and testing is very much appreciated).


Don't worry about re-gurgitating everything in terminal, i know it is a pain to get it out onto the forums :)

Still not sure if you have all the latest versions - but can keep trying, try this in terminal: (Reboot your phone first - just to clean it up and start fresh)
Code:

sudo gainroot
apt-get -f install

It will list any apps upgraded , installed, or removed, should fix any probs with pyqt.

then try

Code:

dpkg -l python2.5-qt4*
This would print of a larrrrrrge list! - please if you can, copy it in here!

Then after that i think we may just need to get you to re-install pyqt - will walk you through that later :)

chubbyisacat 2010-06-07 18:23

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Well, I'm learning :) Going to try those things now - need time to get my head round it all and I'll post back. Thanks for the help.
And I couldn't even open the video - said something about format not being supported, but that's another day's work. I don't think I can afford to overclock my brain at my age (see, I've even picked up some jargon :D)

noobmonkey 2010-06-07 18:28

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Ok Hold on!

Good old frals is helping me very much on IRC trying to sort this :)

If the above doesnt work try the following

Code:

sudo gainroot
apt-get remove healthcheck && apt-get autoremove
apt-get install healthcheck

(Enter after each line)
Note from frals - "and make sure it says 1.2.1-3" !! hehe gd point! - need to check it is the right version that you are dloading!

chubbyisacat 2010-06-07 18:29

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
this is the first thing:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # apt-get - install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
/home/user #


All times are GMT. The time now is 21:06.

vBulletin® Version 3.8.8