Platform: Win10+geth1.8.2 I have opened geth to sync block, it's ok to use 'geth attach' directly, but I can't get any return from web3.py. Anyone can help me?
Try re-running the code. (If there is some kind of cache clear option in that development environment, use it first).
The line in your console is showing an error on line 33 of
w3 = Web3(TestRPCProvider())
web3test.py in your screenshot is only 4 lines long, and doesn't include that line of code.