I can't get Ganache going (1) automatically, or (2) running separately. Details:
- Ganache is supposed to auto-start from Brownie, if it isn't run before. The README expects it. Going through the README, I get to the following line:
pytest sol057/contracts/simpletoken/test/test_Simpletoken.py::test_transfer
And it returns
==================================================================== test session starts ====================================================================
platform linux -- Python 3.8.10, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/trentmc/code/tokenspice, configfile: pytest.ini
plugins: xdist-1.34.0, hypothesis-6.27.3, eth-brownie-1.18.2, web3-5.29.0, forked-1.4.0
collected 0 items / 1 error
========================================================================== ERRORS ===========================================================================
__________________________________________ ERROR collecting sol057/contracts/simpletoken/test/test_Simpletoken.py ___________________________________________
sol057/contracts/simpletoken/test/test_Simpletoken.py:2: in <module>
from util.constants import BROWNIE_PROJECT057
util/constants.py:24: in <module>
brownie.network.connect("development")
venv/lib/python3.8/site-packages/brownie/network/main.py:50: in connect
rpc.launch(active["cmd"], **active["cmd_settings"])
venv/lib/python3.8/site-packages/brownie/network/rpc/__init__.py:93: in launch
raise RPCProcessError(cmd, uri)
E brownie.exceptions.RPCProcessError: Unable to launch local RPC client.
E Command: ganache-cli
E URI: http://127.0.0.1:8545
---------------------------------------------------------------------- Captured stdout ----------------------------------------------------------------------
Launching 'ganache-cli --accounts 10 --hardfork istanbul --gasLimit 6721975 --mnemonic brownie --port 8545'...
================================================================== short test summary info ==================================================================
ERROR sol057/contracts/simpletoken/test/test_Simpletoken.py - brownie.exceptions.RPCProcessError: Unable to launch local RPC client.
===================================================================== 1 error in 4.03s ======================================================================
ERROR: not found: /home/trentmc/code/tokenspice/sol057/contracts/simpletoken/test/test_Simpletoken.py::test_transfer
(no name '/home/trentmc/code/tokenspice/sol057/contracts/simpletoken/test/test_Simpletoken.py::test_transfer' in any of [<Module test_Simpletoken.py>])
- I can't get Ganache by running it as its own process. Here's what happens
(venv) trentmc@trentmcLnv:~/code/tokenspice$ tsp ganache
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at p (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:527949)
at b.set (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:528548)
at Function.b.fromMasterSeed (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:530917)
at Function.i.fromMasterSeed (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:526525)
at new S (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:206543)
at new p (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:195647)
at new l (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:42:13485)
at Object.create (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:94:92509)
at Object.server (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:38637)
at Object.<anonymous> (/usr/lib/node_modules/ganache-cli/cli.js:106:22)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:827:12)
I can't get Ganache going (1) automatically, or (2) running separately. Details:
And it returns