CRYPTO NEWS

Famed Brit photographer Platon’s NFTs have stars in their eyes

Import brownie cannot be resolved

I try running this script from brownie import Token, accounts def main(): return Token.deploy("Test Token", "TST", 18, 1e21, {‘from’: accounts[0]}) Then error message is an issue of finding brownie as import [{ "resource": "/c:/Python/token/token/scripts/token.py", "owner": "generated_diagnostic_collection_name#0", "code": { "value": "reportMissingImports", "target": { "$mid": 1, "external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules", "path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md", "scheme": "https", "authority": "github.com", "fragment": "diagnostic-severity-rules" }::Listen

I try running this script

from brownie import Token, accounts

def main(): return Token.deploy("Test Token", "TST", 18, 1e21, {‘from’: accounts[0]})


Then error message is an issue of finding brownie as import [{ "resource": "/c:/Python/token/token/scripts/token.py", "owner": "generated_diagnostic_collection_name#0", "code": { "value": "reportMissingImports", "target": { "$mid": 1, "external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules", "path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md", "scheme": "https", "authority": "github.com", "fragment": "diagnostic-severity-rules" } }, "severity": 4, "message": "Import "brownie" could not be resolved", "source": "Pylance", "startLineNumber": 3, "startColumn": 6, "endLineNumber": 3, "endColumn": 13 }]

Famed Brit photographer Platon’s NFTs have stars in their eyes

Shopping cart
There are no products in the cart!
Continue shopping
0