rigetti / rpcq

The RPC framework and message specification for @rigetti Quantum Cloud Services.
Apache License 2.0
75 stars 29 forks source link

RPCQ `from_json` et al fail if `rpcq.messages` or `rpcq.core_messages` modules have not been loaded. #137

Closed braised-babbage closed 3 years ago

braised-babbage commented 4 years ago

This works

>>> import rpcq.core_messages
>>> from rpcq._base import from_yaml_file, to_msgpack
>>> rack = from_yaml_file(open('/Users/erik/src/racks/BF09/BF09.yaml', 'r'))

but this does not

>>> from rpcq._base import from_yaml_file, to_msgpack
>>> rack = from_yaml_file(open('/Users/erik/src/racks/BF09/BF09.yaml', 'r'))