Python Cryptocurrency Part 4: Flask Implementation

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 56

  • @afelixalves
    @afelixalves 3 роки тому +9

    Think you're missing the MySQL installation part... :)

  • @PARADOXzss07
    @PARADOXzss07 3 місяці тому

    Hello Mr.Assad, I know that this video is 4 years old now, but I am having issues with the packages, specifically MySQL and Flask, as well as the entire App setup part of the video, could you possibly give me some updated instructions? Thanks in advance!

  • @blinken77
    @blinken77 Рік тому

    Is it possible to do this without a mysql server? or by using sqlite3?

  • @clif.l292
    @clif.l292 3 роки тому +1

    Sir may i ask what is the use of placing the two headers in app.py? Thank you very much.

  • @colesprouse4658
    @colesprouse4658 3 роки тому +4

    Im having trouble with mysql.server start. I downloaded flask-mysqldb but when I try and start it, it says command not fouund mysql. Any recommendations on what I should do?

  • @kalicrash3099
    @kalicrash3099 4 роки тому

    @Will Assad hi, can I ask you what are the programs used beyond atom to create the whole thing?

    • @willassad8670
      @willassad8670  4 роки тому +1

      We are using python as our back end and flask with html as the front end. MySQL is the database we are using to store the blockchain

    • @kalicrash3099
      @kalicrash3099 4 роки тому +1

      @@willassad8670 thank you very much, with all your users who posted similar tutorials no one has ever described me!
      in this period of quarantine I have given myself to programming, but in reality I am a cook.
      I'm just asking you one last thing, the best python IDE for ubuntu 18.04?

    • @willassad8670
      @willassad8670  4 роки тому

      Kali Crash the best IDE is hard to say. It is usually a preference by the programmer. I recommend downloading and playing around with 4-5 IDEs and seeing which one you like best. PyCharm, Wing, Spyder, eric, Atom... all preference (I personally use Atom and PyCharm)

    • @kalicrash3099
      @kalicrash3099 4 роки тому

      @@willassad8670 🙏🙏🙏,
      Grazie mille.

    • @willassad8670
      @willassad8670  4 роки тому +1

      Kali Crash prego

  • @moggyval3320
    @moggyval3320 4 роки тому +2

    im running into a problem installing flash_mysqldb. is there any way i can contact you i really need help on this i have tried for hours now to fix it but i just cant get it to work, thanks.

    • @moggyval3320
      @moggyval3320 4 роки тому +4

      @Pavel Zarev i got it fixed if you already pip installed flask_mysql do pip install flask_mysql and copy the directory where it says its installed and make that a path

    • @tiwoni972mad
      @tiwoni972mad 3 роки тому

      @@moggyval3320 How do you "make it a path"?

  • @mohammedmansour8798
    @mohammedmansour8798 3 роки тому +3

    (base) C:\Users\mmansour>mysql.server start
    'mysql.server' is not recognized as an internal or external command,
    operable program or batch file.

    • @pietrocasavecchia6007
      @pietrocasavecchia6007 3 роки тому +14

      If you are on windows this is the solution that worked for me:
      Download MySQL form their site downloading "Windows (x86, 32-bit), MSI Installer" the biggerst version from
      the two
      Then set it up with the full options and I used "root" as a password and username
      Go into the command prompt and type "cd\"
      Searching if MySQL is running with the command "net start"
      If it is not running thus you are not finding it in the list then type "services.msc" and manually start it
      Then type "dir mysqld.exe /s /p"
      and you should find something like "Directory of C:\Program Files\MySQL\MySQL Server 8.0\bin"
      Change directory with (in this case) "cd C:\Program Files\MySQL\MySQL Server 8.0\bin"
      You should be ready to go with "mysql.exe -uroot -p"
      Enter the password in my case I have not change it thus "root"
      And you should be in, this is what worked for me, hope will help

    • @sahilmaharaj3699
      @sahilmaharaj3699 3 роки тому +3

      @@pietrocasavecchia6007 Hi there,
      when I type "mysql.exe -uroot -p" , i get a message of
      C:\>mysql.exe -uroot -p
      'mysql.exe' is not recognized as an internal or external command,
      operable program or batch file.
      How may i change this?

    • @sahilmaharaj3699
      @sahilmaharaj3699 3 роки тому +1

      I believe the problem may be in MYSQL Installer, when typing root the option to check is unavailable :(. Any ideas?

    • @pietrocasavecchia6007
      @pietrocasavecchia6007 3 роки тому +1

      @@sahilmaharaj3699 Hi, I see three options: check if MySQL is running if not active it manually the other option is to reinstall MySQL, I have downloaded it with almost full capabilities the last is to check if the file is correctly placed in the standard location. Else try to restart all from the beginning if you follow the steps of my previous comment it should works.

    • @lemuelcubio2466
      @lemuelcubio2466 3 роки тому +2

      @@pietrocasavecchia6007 I was about to give up then I found this. THE BEST!!!!!!!!! Thanks

  • @Thelaibakhan
    @Thelaibakhan 3 роки тому

    I'm a Windows user and it's not working. I've tried the steps below in the comments but its still not working. Can you please help me?

    • @willassad8670
      @willassad8670  3 роки тому +2

      I'm not familiar with the MySQL client for Windows. Short summary: you will need to use a different library instead of flask-mysqldb: dev.mysql.com/doc/connector-python/en/connector-python-installation.html

  • @victoriamikhael7861
    @victoriamikhael7861 2 роки тому

    NameError: name '_mysql' is not defined
    after i running it, he returnes this error

  • @Thelaibakhan
    @Thelaibakhan 3 роки тому

    Hi, After running this code getting the error: No module name "flask_mysql", why?

    • @munitagupta5280
      @munitagupta5280 3 роки тому

      its not '_' its '-' ; ie- flask-mysql

    • @silience_
      @silience_ 3 роки тому

      @@munitagupta5280 No, he does import it with '_', which is fine. The small mistake Laiba made, was that she tried to import "flask_mysql", when the library she meant is called "flask_mysqldb" (or "flask-mysqldb", they're the same thing). You can see that this is indeed what he types at 5:16
      Ik I'm late, but I hope that helped! :)

  • @leotran9290
    @leotran9290 3 роки тому +1

    mysql.server start
    mysql.server : The term 'mysql.server' 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.
    + mysql.server start
    + ~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (mysql.server:Stri
    ng) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @cockybhai3638
    @cockybhai3638 3 роки тому

    Hey Ive been getting the module not found error for passlib. I have imported it even using the pip3 command, yet getting error
    Can anyone help me out with a solution

    • @cockybhai3638
      @cockybhai3638 3 роки тому

      I figured it out go to the hash.py file in passlib and add
      def sha256_crypt():
      pass
      If a sha256 function isn't there

    • @dia-sports
      @dia-sports Рік тому

      just but this in terminall and inshalah will fix the problem
      pip install --upgrade passlib

  • @Thelaibakhan
    @Thelaibakhan 3 роки тому

    From Where can i get the password file?

  • @d4pp3r34
    @d4pp3r34 4 роки тому

    It wont even print for me, but I have no errors

  • @eviso_yt8340
    @eviso_yt8340 3 роки тому

    it says restarting with stat but then the program ends

    • @eviso_yt8340
      @eviso_yt8340 3 роки тому

      never mind, it fixed when i ran it in cmd

  • @dashawnlyons2791
    @dashawnlyons2791 4 роки тому

    having alot of problems with flask_mysqldb

    • @willassad8670
      @willassad8670  4 роки тому

      With the installation? There’s a lot of resources on stack overflow. Common proboem

    • @dashawnlyons2791
      @dashawnlyons2791 4 роки тому

      @@willassad8670 yeah the installation wont allow me to full install mysqldb. I get the red waning error on the powershell. Can i use SQLalchemy?

    • @willassad8670
      @willassad8670  4 роки тому

      Dashawn Lyons Yes you can but the syntax will be different.

  • @onurcanermen3189
    @onurcanermen3189 4 роки тому

    bro ım got a syntax error for the app part. is there any way to fix this ?

    • @ajay7187
      @ajay7187 3 роки тому +1

      @Onurcan Emen pls subscribe me