smartcontractkit / full-blockchain-solidity-course-py

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

ValueError: Unable to expand environment variable in host setting #1724

Open michaelclubman515 opened 2 years ago

michaelclubman515 commented 2 years ago

Hi there , I met this problem when try to deploy in Lesson 5 brownie Simple Storage

ValueError: Unable to expand environment variable in host setting: 'https://rinkeby.infura.io/v3/$WEB3_INFURA_PROJECT_ID'

I think the cause is from infura setting ,but don't know where go wrong.also I found out infura change project ID to API key,but in .env file I still typed " export WEB3_INFURA_PROJECT_ID "

ValueError: Unable to expand environment variable in host setting

brownie version:V1.16.4 node version:v18.9.0 macos:12.6 (M1 2020)

error information: image

.env file: image

config.yaml image

deploy.py image image

cromewar commented 1 year ago

Hello @michaelclubman515

Please remember to add: dotenv: .en on your brownie-config.yaml. Additionally you can just copy and paste the export commands to the terminal and execute then before running the code.