PatrickAlphaC/nft-mix

Cannot Run Scripts

Closed this issue · 7 comments

#112 (comment) I have provided here all the code and the error I am facing, I am stuck please can anyone help me out here? @PatrickAlphaC

To me this seems a problem related with python or brownie installation, as described here
https://stackoverflow.com/a/69364433/10648262

Maybe the first thing to try would be to reinstall brownie... https://ethereum.stackexchange.com/a/110380

Did what you said. Now I am getting this error:

NftFromScratchProject is the active project.
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\_cli\__main__.py", line 64, in main  
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\_cli\run.py", line 45, in main       
    network.connect(CONFIG.argv["network"])
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\network\main.py", line 50, in connect
    rpc.launch(active["cmd"], **active["cmd_settings"])
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\network\rpc\__init__.py", line 76, in launch 
    self.process = self.backend.launch(cmd, **kwargs)
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\network\rpc\ganache.py", line 70, in launch  
    ganache_version = get_ganache_version(cmd_list[0])
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\network\rpc\ganache.py", line 111, in get_ganache_version
    ganache_version_proc = psutil.Popen([ganache_executable, "--version"], stdout=PIPE)
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\psutil\__init__.py", line 1316, in __init__
    self.__subproc = subprocess.Popen(*args, **kwargs)
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Error:

FileNotFoundError: [WinError 2] The system cannot find the file specified

I have installed "ganache-cli" successfully also reinstalled "brownie", yet again I am getting this error:

ImportError: cannot import name 'AdvancedCollectible' from 'brownie' (C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\brownie\__init__.py)
Terminating local RPC client...

@ReasonZx there was a typo in class name due to which it could not import the file. After fixing that the error was resolved, thank you for your time and helping me out! <3

Affff, that’s one of the first things I looked at, don’t know how I missed it

But good that it is solved :)

Haha, was just missing a small 'd', easy to miss, hard to find.

Thanks once again!