smartcontractkit / full-blockchain-solidity-course-py

Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
MIT License
10.67k stars 2.89k forks source link

Lesson #4: ImportError cannot import name 'getargspec' from 'inspect' #1769

Closed hoahamho closed 1 year ago

hoahamho commented 1 year ago

I'm using python 3.11, window 10. When i import Web3 from web3 and run deploy.py, it show me an error: ImportError: cannot import name 'getargspec' from 'inspect' (C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\inspect.py). And can not do anything from this on, it always shown this whenever i run the deploy.py command.

hoahamho commented 1 year ago

i fixed this by downgraded to Python 3.9. And all work well.