mdipierro / evote

A system for secure, trusted, and verifiable voting on the web
Other
116 stars 41 forks source link

Internal Server Error after fresh install. #37

Open atdtn opened 3 years ago

atdtn commented 3 years ago

Hello.

After quick start instructions, visiting localhost:3000/evote/default/index causes an internal server error.

Here are more details:

Version web2py™ Version 2.21.1-stable+timestamp.2020.11.28.04.10.44 Python Python 3.8.7: /Users/username/tmp/web2py/venv/bin/python (prefix: /Users/username/tmp/web2py/venv/bin/..)

Traceback (most recent call last): File "/Users/username/tmp/web2py/gluon/main.py", line 439, in wsgibase serve_controller(request, response, session) File "/Users/username/tmp/web2py/gluon/main.py", line 175, in serve_controller page = run_controller_in(request.controller, request.function, environment) File "/Users/username/tmp/web2py/gluon/compileapp.py", line 655, in run_controller_in ccode = getcfs(layer, filename, lambda: compile2(code, filename)) File "/Users/username/tmp/web2py/gluon/cfs.py", line 50, in getcfs data = filter() File "/Users/username/tmp/web2py/gluon/compileapp.py", line 655, in ccode = getcfs(layer, filename, lambda: compile2(code, filename)) File "/Users/username/tmp/web2py/gluon/restricted.py", line 205, in compile2 return compile(code, layer, 'exec') File "/Users/username/tmp/web2py/applications/evote/controllers/default.py", line 231 print "ballot id:",ballot.id, "key:",key, "results[key]:",results[key], "vote:",vote ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ballot id:",ballot.id, "key:",key, "results[key]:",results[key], "vote:",vote)?

mdipierro commented 3 years ago

Evote was written for python 2. Would be nice to convert it to 3. I doubt i will have the time anytime soon

On Sun, Feb 21, 2021, 13:43 atdtn notifications@github.com wrote:

Hello.

After quick start instructions, visiting localhost:3000/evote/default/index causes an internal server error.

Here are more details:

Version web2py™ Version 2.21.1-stable+timestamp.2020.11.28.04.10.44 Python Python 3.8.7: /Users/username/tmp/web2py/venv/bin/python (prefix: /Users/username/tmp/web2py/venv/bin/..)

Traceback (most recent call last): File "/Users/username/tmp/web2py/gluon/main.py", line 439, in wsgibase serve_controller(request, response, session) File "/Users/username/tmp/web2py/gluon/main.py", line 175, in serve_controller page = run_controller_in(request.controller, request.function, environment) File "/Users/username/tmp/web2py/gluon/compileapp.py", line 655, in run_controller_in ccode = getcfs(layer, filename, lambda: compile2(code, filename)) File "/Users/username/tmp/web2py/gluon/cfs.py", line 50, in getcfs data = filter() File "/Users/username/tmp/web2py/gluon/compileapp.py", line 655, in ccode = getcfs(layer, filename, lambda: compile2(code, filename)) File "/Users/username/tmp/web2py/gluon/restricted.py", line 205, in compile2 return compile(code, layer, 'exec') File "/Users/username/tmp/web2py/applications/evote/controllers/default.py", line 231 print "ballot id:",ballot.id, "key:",key, "results[key]:",results[key], "vote:",vote ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ballot id:",ballot.id, "key:",key, "results[key]:",results[key], "vote:",vote)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mdipierro/evote/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLZTZYXFAAQ4AVTCM3VCLTAF5ATANCNFSM4X7MW7FQ .

mcnamara-charles commented 3 years ago

Hi there, I have coded a 3.9 version of mdipierro's evote system @ https://github.com/mcnamara-charles/evote-3.9