port instead of portnr
There are various points in the download code where portnr should be used but port is used. And example would be line 1582 in downloadversionIRdata.py. This appears to also be true in the threaded version of the download routines.
To upload designs, you'll need to enable LFS. More information