Comments (18)
from full-blockchain-solidity-course-py.
- Brownie Version: v1.17.1
- Ganache-cli installed
- solc installed
- Python Version 3.10
- OS: Windows 10
Ganache-CLI is installed, if I run
npm install ganache-cli@latest --global
I get:
removed 97 packages, changed 1 package, and audited 5 packages in 1s
found 0 vulnerabilities
but If i call on it with ganache-cli
I still get the error
ganache-cli : The term 'ganache-cli' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ ganache-cli
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ganache-cli:String) [], Comma
ndNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
from full-blockchain-solidity-course-py.
Are you following the Youtube tutorial about blockchain/Python/Solidity, 16h? I'm doing it and I have the exact same problem, I'm stuck with Brownie not wanting to run the deploy.py script.... My error message is a bit different but it also shows this weird "INFO: Could not find files for the given pattern(s)." at the start of each terminal run.
Anyone can help?
from full-blockchain-solidity-course-py.
Yes! I may have an idea or two on how I got it to work. First of all, what operating system are you using?
I'm on Windows 10, my issue was (I believe) that I was using PowerShell for that portion of that lesson. It is hard to tell what Patrick is using because he's on a MacOS environment. I have like, 5 Macs lying around, I could have used them, but unfortunately my main PC is a Windows.
Anyway, try switching to cmd from the dropdown menu shown below, that kinda did it for me.
First, I would so just open a cmd from the Start menu, check sequentially if you have the following. Yarn, if not then get it first, and run the command FROM that cmd window, not VSCode. Then check for Ganache-Cli, if not get it (just google and use the text in the option that says 'Use yarn').
Good luck!
from full-blockchain-solidity-course-py.
Hi!
Thank you for your answer!
I'm on Windows 10 as well, I do have Yarn and Ganache-cli, but running through the cmd window still doesn't do it for me... Thanks anyway! If I find a solution on my side, I'll update my answer here in case that helps someone.
Have a good day!
from full-blockchain-solidity-course-py.
have you done
- npm install yarn first then
- 2.npm install ganache-cli@latest --global and after that
- 3.installing brownie
from full-blockchain-solidity-course-py.
I have indeed... here is where I'm stuck : https://ethereum.stackexchange.com/questions/113427/cannot-run-the-script-through-brownie-deploy-py?noredirect=1&lq=1
from full-blockchain-solidity-course-py.
how did you install brownie did you use pipx or pip?
i used pipx i had similar problem as you
Then I deleted pipx now am using pip install brownie and it works very well
from full-blockchain-solidity-course-py.
click that spot where arrow is pointing and try to check if you have multiable options for python
for me it stopped recognising brownie but after changing python path it recognised brownie again
from full-blockchain-solidity-course-py.
this is last resort
the problem might also be path related i had something similar it took me over 5 days
1.i deleted all pythons
2. nodejs
3. vscode
4. checked all my folders for python, pip, pipx, brownie and deleted everything i found
5. then i went to temporary files searched all python,pipx, pip, brownie and deleted them
6. then i went to sysdm.cpl to enviroment variables (i checked paths to files that i might have missed on my delete spree)
7. after deleting all the files that i found using env variables
8. i also deleted all python related paths
9. i hope this helps
from full-blockchain-solidity-course-py.
Hi! Thanks for the help, I think I'll have to use the last resort...
A week ago, I had Python 3.10 but yarn wouldn't run on it, so I downgraded to Python 3.9. But, when I tried to install brownie through pipx, an error message came back saying that it couldn't find Python310. I deleted everything and tried again, but the same message came back. Using pip was the only way I could get to Brownie, but then again, the script won't run.
Thank you for detailing the files to be deleted, I must have forgotten some on the way. I'll do that more thoroughly and try again. This weekend I'll have access to another computer (also Windows 10) and try on it, see if the same problem occurs.
from full-blockchain-solidity-course-py.
Ok so I uninstalled every single thing and some of the issue seems to be gone. I think I have a problem with the compiler now, as brownie doesn't automatically compile the .sol file that I made. But man, thank you. I definitely had missed some files in deleting everything, and your message helped me figure out which ones (temporary files mostly).
from full-blockchain-solidity-course-py.
Take screen shot cos am not on the pc
from full-blockchain-solidity-course-py.
Also check brownie-config files for typos.
Indentations etc
from full-blockchain-solidity-course-py.
here you go!
I'll check the config files today, although I'm not sure what kind of typos I should be looking for (still totally new to all that :D), thank you so much for the help!
from full-blockchain-solidity-course-py.
Am on this course
https://m.youtube.com/watch?v=M576WGiDBdQ
Ps.
Am only on the 7h on the video so am able to help on most recent problems I overcame and also this is closed issue if you want real pros to help you in this you need to open new issue
from full-blockchain-solidity-course-py.
he is using solidity 0.6.6 most of the time
You can copy paste from the GitHub his simple storage contract
from full-blockchain-solidity-course-py.
from full-blockchain-solidity-course-py.
Related Issues (20)
- Lesson 2 PLEASE I NEED HELP HOT 1
- Lesson 4 - No puedo desplegar la transaccion HOT 9
- Missing Store option on left Panel in simplestorage contract HOT 1
- Lesson 7 : Please help my end lottery function keeps getting reverted, HOT 1
- web3.py - AttributeError: 'Eth' object has no attribute 'getTransactionCount' HOT 1
- LESSON 4 error saying"solcx.exceptions.SolcNotInstalled: solc 0.6.0 has not been installed. HOT 1
- AttributeError: Contract 'FundMe' object has no attribute 'getEntranceFee' HOT 3
- Cant get to compile HOT 2
- i tried verify contract on sepolia testnet but it show error HOT 7
- Type Error due to environment variable and ganache HOT 1
- Lesson3 call to FundMe.getVersion error HOT 1
- Warning! Error encountered during contract execution [invalid opcode: PUSH0
- code size to deposit exceeds maximum code size HOT 1
- Could not find files for the given pattern(s)
- This error originates from a subprocess, and is likely not a problem with pip. HOT 1
- .call() function not working so I 'm not able to receive any data
- Lesson 5: brownie simple storage account address error
- Lesson 5: Error in Installing Brownie HOT 1
- Lesson 7 "test_can_end_lottery" error HOT 1
- Blockchain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-blockchain-solidity-course-py.