'getting error brownie cannot import AdvancedCollectibles

I'm trying to run this code:

from brownie import accounts, config, network
from brownie import AdvancedCollectible
from scripts.helpful_scripts import fund_advanced_collectible


def main():
    dev = accounts.add(config['wallets']['from_key'])
    print(network.show_active())
    publish_source = False
    advancedCollectible = AdvancedCollectible.deploy(
        config['networks'][network.show_active()]['vrf_coordinator'], 
        config['networks'][network.show_active()]['link_token'], 
        config['networks'][network.show_active()]['keyhash'], 
        {"from": dev},
        publish_source=publish_source 
    )
    fund_advanced_collectible(advancedCollectible)
    return advancedCollectible

with command

brownie run scripts/advanced_collectible/deploy_advanced.py

I tried pip freeze and I have brownie and eh-brownie Python version >= 3.7



Solution 1:[1]

I experienced the same exact same error because I misspelled AdvancedCollectible inside of the solidity file AdvancedCollectible.sol, during contract declaration.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman