trezor / python-trezor

:snake: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU Lesser General Public License v3.0
201 stars 194 forks source link

test sometimes fail with "Unsupported device" #328

Closed matejcik closed 5 years ago

matejcik commented 5 years ago

with git checkouts in certain states WRT version of protobuf sources and/or build state of the protobuf classes, TrezorClient will report "Unsupported device". AFAICT so far, it is because it can't parse the Features message.

This state should be recognizable (and recognized) and a sensible error should be thrown - most likely an ImportError telling the user to fix their checkout

matejcik commented 5 years ago

this happens over the split between MessageType.FIELDS vs MesageType.get_features. In that case the class is imported successfully but doesn't seem to have any fields.