Error with latest

Posted on
Fri Apr 12, 2024 7:33 pm
vtmikel offline
Posts: 645
Joined: Aug 31, 2012
Location: Boston, MA

Error with latest

Hi-

Since upgrading to 40.98, I'm getting these errors on startup:

Code: Select all
ValueError: invalid literal for int() with base 10: ''
   fingscan Error                 
Traceback (most recent call last):
  File "plugin.py", line 920, in deviceStartComm
    if addrOld != self.formatiPforAddress(addrOld).strip(" "):
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "plugin.py", line 4701, in formatiPforAddress
    if   int(digit) < 10:   last = "00"
         ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Posted on
Sun Apr 14, 2024 1:58 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error with latest

v .99 should catch that error message.

you must have a device that has a blank address field,
the latest version is checking the address field (removing links and checking if its a proper ip number) and hence gets that error.
Now you will get a message with the name of the device that is not properly defined.

this should only happen during startup. and should not impact normal operations

Karl

Posted on
Sun Apr 14, 2024 10:15 am
vtmikel offline
Posts: 645
Joined: Aug 31, 2012
Location: Boston, MA

Re: Error with latest

Hey thanks-- one more exception to report. This started happening yesterday. I added a new device to my network, which may be the culprit.

Code: Select all
   fingscan Error                  name:FING-1C:63:49:3B:84:C7-Texas Instruments
Traceback (most recent call last):
  File "plugin.py", line 4110, in createDev
    address=self.formatiPforAddress(devI["ipNumber"]),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "plugin.py", line 4705, in formatiPforAddress
    if   int(digit) < 10:   last = "00"
         ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
   fingscan Error                 
Traceback (most recent call last):
  File "plugin.py", line 4121, in createDev
    dev = indigo.devices[theName]
          ~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'key name FING-1C:63:49:3B:84:C7-Texas Instruments not found in database'
   Cynical Weather Error           Weather - Westwood Location ignoring update request within {MIN_REFRESH} minutes of last one

Posted on
Sun Apr 14, 2024 12:00 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error with latest

I can catch that error, BUT what is the IP number of the device?

please check vhttps://github.com/kw123/fingscan/releases/tag/2022.40.100 not official release.
add some more if statements to catch more exceptions.

i deleted some devices, and added them back, no errors.

Karl

Posted on
Sun Apr 14, 2024 12:04 pm
vtmikel offline
Posts: 645
Joined: Aug 31, 2012
Location: Boston, MA

Re: Error with latest

Here's the log:

Code: Select all
   fingscan                        createDev; try to create new dev:FING-1C:63:49:3B:84:C7-Texas Instruments, with MAC:1C:63:49:3B:84:C7, ipN:>>{'ipNumber': '10.66.0.197', 'timeOfLastChange': '2024-04-14 13:59:08', 'status': 'up', 'noOfChanges': 75, 'hardwareVendor': 'Texas Instruments', 'deviceInfo': '', 'usePing': 'doNotUsePing', 'upToDownPing': 30, 'downToExpiredPing': 60, 'useWakeOnLanSecs': 0, 'useWakeOnLanLast': 0, 'suppressChangeMSG': 'show', 'deviceId': 0, 'deviceName': '', 'fingLastUp': 0, 'firstFingDown': 0, 'expirationTime': 0, 'variableName': '', 'devExists': 0}<<
   fingscan                        createDev; new dev:FING-1C:63:49:3B:84:C7-Texas Instruments, with States : (dict)

Posted on
Sun Apr 14, 2024 11:47 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error with latest

did it create the device and could you send a screen copy of the device states?

I will be out for 2 days, back on wednesday, but i can look at things, but can not d any updates

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests