So when I use the command ns.address('jasoncarver.eth')
I get the following error (with Python 3.6)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 1431, in call_contract_function
output_data = web3.codec.decode_abi(output_types, return_data)
File "/usr/local/lib/python3.6/dist-packages/eth_abi/codec.py", line 179, in decode_abi
return decoder(stream)
File "/usr/local/lib/python3.6/dist-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/usr/local/lib/python3.6/dist-packages/eth_utils/functional.py", line 45, in inner
return callback(fn(*args, **kwargs))
File "/usr/local/lib/python3.6/dist-packages/eth_abi/decoding.py", line 173, in decode
yield decoder(stream)
File "/usr/local/lib/python3.6/dist-packages/eth_abi/decoding.py", line 127, in __call__
return self.decode(stream)
File "/usr/local/lib/python3.6/dist-packages/eth_abi/decoding.py", line 198, in decode
raw_data = self.read_data_from_stream(stream)
File "/usr/local/lib/python3.6/dist-packages/eth_abi/decoding.py", line 308, in read_data_from_stream
len(data),
eth_abi.exceptions.InsufficientDataBytes: Tried to read 32 bytes. Only got 0 bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/ens/main.py", line 111, in address
return cast(ChecksumAddress, self.resolve(name, 'addr'))
File "/usr/local/lib/python3.6/dist-packages/ens/main.py", line 211, in resolve
resolver = self.resolver(normal_name)
File "/usr/local/lib/python3.6/dist-packages/ens/main.py", line 223, in resolver
resolver_addr = self.ens.caller.resolver(normal_name_to_hash(normal_name))
File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 1373, in call_function
return fn(*args, **kwargs).call(transaction, block_identifier)
File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 903, in call
**self.kwargs
File "/usr/local/lib/python3.6/dist-packages/web3/contract.py", line 1453, in call_contract_function
raise BadFunctionCallOutput(msg) from e
web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced?