Lesson 11: Cannot import LinkToken from Brownie... #129
Unanswered
toddabraham
asked this question in
Q&A
Replies: 1 comment 14 replies
-
Wow lesson 11!! Great work so far. Could you put your deploy script here? |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i'm trying to run my
deploy_and_create.py
and I get this error (occurs for both Simple and Advanced)....ImportError: cannot import name 'LinkToken' from 'brownie'
`todd@fcc-blockchain-dev:~/fcc_blockchain_dev/nft-demo$ brownie run scripts/advanced_collectible/deploy_and_create.py
Brownie v1.16.3 - Python development framework for Ethereum
NftDemoProject is the active project.
Launching 'ganache-cli --accounts 10 --hardfork istanbul --gasLimit 12000000 --mnemonic brownie --port 8545'...
File "brownie/_cli/run.py", line 49, in main
return_value, frame = run(
File "brownie/project/scripts.py", line 53, in run
module = _import_from_path(script)
File "brownie/project/scripts.py", line 149, in _import_from_path
_import_cache[import_str] = importlib.import_module(import_str)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "./scripts/advanced_collectible/deploy_and_create.py", line 1, in
from scripts.helpful_scripts import (
File "./scripts/helpful_scripts.py", line 1, in
from brownie import accounts, network, config, LinkToken, VRFCoordinatorMock, Contract
ImportError: cannot import name 'LinkToken' from 'brownie' (/home/todd/.local/pipx/venvs/eth-brownie/lib/python3.8/site-packages/brownie/init.py)
Terminating local RPC client...`
Beta Was this translation helpful? Give feedback.
All reactions