-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: int() can't convert non-string with explicit base #172
Comments
I've the same issue. |
Same issue here as well, with the same stick. Thanks in advance! |
Me too! |
Same |
Same.
In my case I failed even with uartLog.py and Flash Programmer 2 described in flashing instruction. Be careful with that latest (20230507) it has some issues and 496. |
Thanks @bolovanos , with the patch for the cc2538-bsl.py it works for me (Python 3.9.1, Win10 64bit).
|
I used also the #168 patch and worked like a charm on Windows 11 Pro N, Python 3.10.7 and SONOFF Zigbee 3.0 USB Dongle Plus, TI CC2652P + CP2102(N) |
I got the same result, applied # Convert the entered IEEE address into an integer
def parse_ieee_address(inaddr):
try:
return int(inaddr, 16)
except ValueError:
sys.stdout.write(f"ValueError: IEEE address is reported as {inaddr!r}")
# Convert the entered IEEE address into an integer
def parse_ieee_address(inaddr):
try:
return int(inaddr, 16)
except ValueError:
sys.stdout.write(f"ValueError: IEEE address is reported as {inaddr!r}") I'll try the patch as well. |
The problem looks like in new behaviour of arg parser library which return None insead of 0 as default Patch looks like correct for modern python versions. IMHO it is better explicitly write types of fields in parameters model to allow linter to find such cases |
I had the same issue and the abovementioned fix worked for me |
Was the code already patched? I am using Python 3.12.3 and I still got get error.
|
It hasn't been applied. It's a one-liner though in #168. Easy to make a local change to the script. With that, I confirmed it's working with Python 3.12.2. |
Just caught this one with SONOFF ZBDongle-P; fix from #168 helped. |
I had the same problem. Google led me here. Patch in #164 resolved the problem, thanks. |
Same issue as others doing a standard -ewv. If I'm looking at the code correctly, if I were doing only -ewv and got this error at the end after the CRC check, I shouldn't have to worry, right? It seems everything is working, and I didn't need to change the IEEE address. |
Same issue here. Fixed via if args.ieee_address != 0 and args.ieee_address != None: |
I'm using the
SONOFF Zigbee 3.0 USB Dongle Plus,Zigbee Gateway TI CC2652P + CP2102N Zigbee USB Stick,Zigbee Hub for ZHA in Home Assistant or Zigbee2MQTT,Open HAB etc.
i want to flash the newsest firmware with your python script and became this error:
The text was updated successfully, but these errors were encountered: