Skip to content

s4 b-10 price negotiating bot for e commerce website with voice #423

Open

Description

@seshasai2

here is my issue
as per my project i need to connect to the mysql but unable to connect
when im trying to connect it is showing the below:

C:\Users\D. ABHINAYA\Downloads\Chatbot\Chatbot>python Main.py

  • Serving Flask app 'Main'
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on http://127.0.0.1:5000
    Press CTRL+C to quit
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /index HTTP/1.1" 200 -
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/tra.jpg HTTP/1.1" 304 -
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/default.css HTTP/1.1" 304 -
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img02.jpg HTTP/1.1" 304 -
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img01.jpg HTTP/1.1" 304 -
    127.0.0.1 - - [20/Jun/2024 23:46:47] "GET /static/img03.jpg HTTP/1.1" 304 -
    127.0.0.1 - - [20/Jun/2024 23:46:50] "GET /Signup HTTP/1.1" 200 -
    127.0.0.1 - - [20/Jun/2024 23:46:50] "GET /static/default.css HTTP/1.1" 304 -
    [2024-06-20 23:47:12,033] ERROR in app: Exception on /SignupAction [POST]
    Traceback (most recent call last):
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
    File "Main.py", line 303, in SignupAction
    con = pymysql.connect(host='127.0.0.1',port = 3306,user = 'root', password = 'root', database = 'negotiate',charset='utf8')
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql_init_.py", line 94, in Connect
    return Connection(*args, **kwargs)
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 325, in init
    self.connect()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 599, in connect
    self._request_authentication()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 861, in _request_authentication
    auth_packet = self._read_packet()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\connections.py", line 684, in _read_packet
    packet.check_error()
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\protocol.py", line 220, in check_error
    err.raise_mysql_exception(self._data)
    File "C:\Users\D. ABHINAYA\AppData\Local\Programs\Python\Python37\lib\site-packages\pymysql\err.py", line 109, in raise_mysql_exception
    raise errorclass(errno, errval)
    pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
    127.0.0.1 - - [20/Jun/2024 23:47:12] "POST /SignupAction HTTP/1.1" 500 -

Activity

  1. charann29 commented on Jun 20, 2024

    @charann29
    Owner

    is everything ok?? any problem??

  2. seshasai2 commented on Jun 20, 2024

    @seshasai2
    Author

    is everything ok?? any problem??

    no... I'm facing a problem in connecting to mysql through cmd prompt

  3. charann29 commented on Jun 20, 2024

    @charann29
    Owner
  4. seshasai2 commented on Jun 20, 2024

    @seshasai2
    Author

    while i was trying to run the code although i already installed the flask it is unable access it . so i tried to install again it says requirement already satisfied and i also set path for that but im unable to access the modele flask
    PS C:\Users\D. ABHINAYA\Downloads\Chatbot\Chatbot> & "c:/Users/D. ABHINAYA/Downloads/Chatbot/Chatbot/venv/Scripts/python.exe" "c:/Users/D. ABHINAYA/Downloads/Chatbot/Chatbot/Main.py"
    Traceback (most recent call last):
    File "c:/Users/D. ABHINAYA/Downloads/Chatbot/Chatbot/Main.py", line 1, in
    from flask import Flask, render_template, request, redirect, url_for, session, make_response
    ModuleNotFoundError: No module named 'flask'
    PS C:\Users\D. ABHINAYA\Downloads\Chatbot\Chatbot> pip install flask
    Requirement already satisfied: flask in c:\users\d. abhinaya\appdata\local\programs\python\python37\lib\site-packages (2.2.5)
    Requirement already satisfied: Werkzeug>=2.2.2 in c:\users\d. abhinaya\appdata\local\programs\python\python37\lib\site-packages (from flask) (2.2.3)

  5. charann29 commented on Jun 21, 2024

    @charann29
    Owner
  6. charann29 commented on Jun 21, 2024

    @charann29
    Owner

    changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions