eVote installation - Cannot import module 'rsa'

103 views
Skip to first unread message

Alex Glaros

unread,
Dec 17, 2014, 5:24:43 PM12/17/14
to web...@googlegroups.com
anyone have suggestions for resolving this eVote installation error on Web2py windows PC version using sqlLite?

<type 'exceptions.ImportError'> Cannot import module 'rsa'


thanks

Alex Glaros

Alex Glaros

unread,
Dec 18, 2014, 2:59:20 PM12/18/14
to web...@googlegroups.com
any ideas appreciated

Leonel Câmara

unread,
Dec 18, 2014, 3:11:14 PM12/18/14
to web...@googlegroups.com
What eVote application is giving you this error and can you show us the rest of the exception stack trace.

Alex Glaros

unread,
Dec 18, 2014, 4:02:36 PM12/18/14
to web...@googlegroups.com
I just copied source code (zip) directly from gitHub (https://github.com/mdipierro/evote/) and only changed db to sqLite in model

Error ticket for "eVote"

Ticket ID

127.0.0.1.2014-12-18.12-59-42.0f925746-ec3f-4f2b-9a6f-16f008264aaa

<type 'exceptions.ImportError'> Cannot import module 'rsa'

Version

web2py™ Version 2.9.11-stable+timestamp.2014.09.15.23.35.11
Python Python 2.7.6: C:\alex\web2py\web2py\web2py\web2py.exe (prefix: C:\Python27)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Traceback (most recent call last):
File "gluon/restricted.py", line 224, in restricted
File "C:/alex/web2py/web2py/web2py/applications/eVote/controllers/default.py", line 1, in <module>
from ballot import ballot2form, form2ballot, blank_ballot, \
File "gluon/custom_import.py", line 92, in custom_importer
File "applications\eVote\modules\ballot.py", line 3, in <module>
import rsa
File "gluon/custom_import.py", line 86, in custom_importer
ImportError: Cannot import module 'rsa'


Carlos Zenteno

unread,
Dec 18, 2014, 4:09:32 PM12/18/14
to web...@googlegroups.com
Maybe you do not have the RSA module installed so you cannot import it?

RSA module
Python-RSA is a pure-Python RSA implementation. It supports encryption and decryption, signing and verifying signatures, and key generation according to PKCS#1 version 1.5. It can be used as a Python library as well as on the commandline.

https://pypi.python.org/pypi/rsa


Hope that it is that easy!

Alex Glaros

unread,
Dec 18, 2014, 5:16:28 PM12/18/14
to
oh, okay.  Does this sound correct?  I cannot install rsa on my binary windows PC desktop version, but should be able to run it from pythonanywhere.com

Leonel Câmara

unread,
Dec 18, 2014, 5:46:27 PM12/18/14
to web...@googlegroups.com
Yep you need the RSA module, you don't need to install it as it's a pure python module, you can put it in your application's modules folder.
Reply all
Reply to author
Forward
0 new messages