shah-deep/Online-Voting-System

Urgently needed plz clarify my query

Closed this issue · 10 comments

After running Server it not works why.
Admin login is works but not voter login works

Hi sudharsan,

I apologise for the delay in viewing your issue. I am able to run it successfully using Python version 3.9.7

Please see if you have the required libraries and updated python version.

You are unable to make a connection with the server. The error in the pic shows that the variable client_socket is a function. However, it is supposed to be a class object.

You are facing some errors along the following lines in voters.py:
def establish_connection():
host = socket.gethostname()
port = 4001
client_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client_socket.connect((host, port))

Please share the screenshot of the log on the server.
It should be something like the image below when you open the voter login page.
image

i also facing same problem

Hi sudharsan,

I apologise for the delay in viewing your issue. I am able to run it successfully using Python version 3.9.7

Please see if you have the required libraries and updated python version.

https://www.linkedin.com/in/shah--deep/

where i can run this code bro tell me in detail

good day sir, can you please tell me the reason and solution for this error. the program is perfection but after running server I am not getting connection establised message, only saying waiting for connection and listening on "user": [4001IF YOU HELP I'LL BE REALLY APPRECIATED SIR. []
image_2023-05-22_194250425
image_2023-05-22_195001584
when I try to register the votes its showing error there, but I don't know why it's happening. if you help it'll be really helpful sir

good day sir, can you please tell me the reason and solution for this error. the program is perfection but after running server I am not getting connection establised message, only saying waiting for connection and listening on "user": [4001 when I try to register the votes its showing error there, but I don't know why it's happening. if you help it'll be really helpful sir

Dataframe issue:
Updated a deprecated function call in dframe.py
Change this file in your local copy and let me know if it works.

Connection issue:
The client does not connect directly when the server starts running. For the sake of simplicity, this application's user interface has both Admin & Voter Login on the same page. Imagine you are making an actual voting system with a separate page for Admin & Voter. The Admin will start the Server as you did above. Now, several clients can connect simultaneously to vote. So, a connection to the server will be created when a voter opens "Voter Login Page". The server will run independently.