Hi @RX1,
Wires are 0-indexed so the first wire in your circuit will be wire 0. However when you create a device the minimum number of wires you can have is 1 since this is not an index but a quantity.
I have the impression that you’re passing a wires argument with the wrong type somewhere in your code. It’s hard to know for sure though.
The error traceback is not enough to find the source of your problem. If you can copy-paste your code here it can help. Please try to strip your code of anything that doesn’t contribute to the error.