Giter VIP home page Giter VIP logo

Comments (18)

AnneCh avatar AnneCh commented on May 17, 2024 1

20 11 21 2

Somehow the compile works now and the .json file has been created once I ran the script.

from full-blockchain-solidity-course-py.

agad98 avatar agad98 commented on May 17, 2024
  • 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.

AnneCh avatar AnneCh commented on May 17, 2024

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.

agad98 avatar agad98 commented on May 17, 2024

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.

Screenshot 2021-11-11 163340

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.

AnneCh avatar AnneCh commented on May 17, 2024

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.

mebedel avatar mebedel commented on May 17, 2024

have you done

  1. npm install yarn first then
  2. 2.npm install ganache-cli@latest --global and after that
  3. 3.installing brownie

from full-blockchain-solidity-course-py.

AnneCh avatar AnneCh commented on May 17, 2024

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.

mebedel avatar mebedel commented on May 17, 2024

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.

mebedel avatar mebedel commented on May 17, 2024

Näyttökuva (70)

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.

mebedel avatar mebedel commented on May 17, 2024

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.

AnneCh avatar AnneCh commented on May 17, 2024

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.

AnneCh avatar AnneCh commented on May 17, 2024

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.

mebedel avatar mebedel commented on May 17, 2024

Take screen shot cos am not on the pc

from full-blockchain-solidity-course-py.

mebedel avatar mebedel commented on May 17, 2024

Also check brownie-config files for typos.
Indentations etc

from full-blockchain-solidity-course-py.

AnneCh avatar AnneCh commented on May 17, 2024

20 11 21

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.

mebedel avatar mebedel commented on May 17, 2024

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.

mebedel avatar mebedel commented on May 17, 2024

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.

AnneCh avatar AnneCh commented on May 17, 2024

from full-blockchain-solidity-course-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.