Repository navigation
s4 b-10 price negotiating bot for e commerce website with voice #423
Copy link
Copy link
Open
Description
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 -
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
charann29 commentedon Jun 20, 2024
is everything ok?? any problem??
seshasai2 commentedon Jun 20, 2024
no... I'm facing a problem in connecting to mysql through cmd prompt
charann29 commentedon Jun 20, 2024
join this : https://meet.google.com/zex-cscd-bcc
seshasai2 commentedon Jun 20, 2024
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)
charann29 commentedon Jun 21, 2024
charann29 commentedon Jun 21, 2024
changed