Hi...I did some googling and found that occasionally this blunder seems when endeavoring to run a 32 bit application on 64 bit linux. Running the order "readelf - an arm-linux-gnueabihf-g++" affirmed that this was a 32 bit biniary. A bit really googling and I found that it has to do with the document, and that it can't discover the loader. By getting the 32 bit documents required, I no longer got any blunders.
In particular, I downloaded ia32-libs from my store yet libc6-i386 may simply get the job done fine.
This is absolute nonsense and has nothing to do with the original question.
The OP's problem is that the method Alstom2570class(), which is called from the Alstom2570() member function of the BMI class needs to have an argument of type BMI so it can call BMI methods. In addition, the BMI member function LCD() needs a value argument so that the LCD display can be set from outside the class.
...
def LCD(self, value ):
self.lcdNumber.display( value )
def Alstom2570class( bmi ):
global TonF #variable temps ON froid (15min)
global ToffF #variable temps OFF froid (15min)
global M
global T
T=ADC.get_nchan_vol_milli_data()
print(T) # debug
global count
global Netuve #declaration de la variable Netuve permettant de recuperer le N etuve saisie par l utilisateur
#print("Alstom2570class")
while T > SB: #tant que la temperature n'arrive pas au seuil bas (on commence le T2 par le seuil bas)
T=ADC.get_nchan_vol_milli_data() #(relecture de la temperature)
QtTest.QTest.qWait(10000) #tempo pour ne pas saturer le pi
print(T)
bmi.LCD( T ) #HERE A NEED TO CALL LCD FUNCTION FOR WRITE VARIABLE IN lcdNumber WIDGET
print("seuil bas atteind") #execution lorsque lon arrive au seuil bas
class BMI( QDialog ) :
...
def LCD(self, value ):
self.lcdNumber.display( value )
def Alstom2570class( bmi ):
global TonF #variable temps ON froid (15min)
global ToffF #variable temps OFF froid (15min)
global M
global T
T=ADC.get_nchan_vol_milli_data()
print(T) # debug
global count
global Netuve #declaration de la variable Netuve permettant de recuperer le N etuve saisie par l utilisateur
#print("Alstom2570class")
while T > SB: #tant que la temperature n'arrive pas au seuil bas (on commence le T2 par le seuil bas)
T=ADC.get_nchan_vol_milli_data() #(relecture de la temperature)
QtTest.QTest.qWait(10000) #tempo pour ne pas saturer le pi
print(T)
bmi.LCD( T ) #HERE A NEED TO CALL LCD FUNCTION FOR WRITE VARIABLE IN lcdNumber WIDGET
print("seuil bas atteind") #execution lorsque lon arrive au seuil bas
To copy to clipboard, switch view to plain text mode
But the structure of the code itself is terrible - global variables everywhere, confusion over what is a class and what is a function ("Alstom2570class" and "Alstom2570"). It looks like the OP just kept adding code, trying to get something to work, and ended up with spaghetti.
Bookmarks