Re: [viff-devel] Query from the University of Surrey

2010-02-23 Thread Thomas P Jakobsen

 When I run the Millionaires example (again with --no-ssl option)  with the 
 Path set to point to Python 2.6.4, I get the following error message.

 Traceback (most recent call last):
  File generate-config-files.py, line 57, in module
    from viff.config import generate_configs
 ImportError: No module named viff.config


This exception typically shows up if VIFF is not on the PYTHONPATH.
When Python sees an import statement, it looks for the needed
packages on the PYTHONPATH.

The solution would be to either

1) Download and install the VIFF .exe installer from viff.dk or

2) Download the VIFF source code from viff.dk and run setup.py
install when you are in the root of the source tree.

These steps will both install VIFF in C:\Python26\Lib\site-packages
which is always on the PYTHONPATH. A third alternative would be to
include the path to the VIFF source code in an environment variable
called PYTHONPATH.

Hope this helps,
Thomas
___
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk


Re: [viff-devel] Query from the University of Surrey

2010-02-22 Thread S.Srinivasan
Hi Thomas

I now have the following 2 setups on my machine (Windows XP Professional, SP3)

The first is 

Python 2.4.4
Twisted_NoDocs-8.1.0.win32-py2.4.exe
gmpy-1.10-beta.win32-py2.4
Win32OpenSSL_Light-0_9_8l.exe
pyOpenSSL-0.7.win32-py2.4.exe

This setup works just fine when I run the Millionaires example. (with --no-ssl 
option)

The second setup is identical to the one in your e-mail.

When I run the Millionaires example (again with --no-ssl option)  with the Path 
set to point to Python 2.6.4, I get the following error message.

Traceback (most recent call last):
  File generate-config-files.py, line 57, in module
from viff.config import generate_configs
ImportError: No module named viff.config

Hope this helps.

Best Wishes

--Sriram

Sriramkrishnan Srinivasan
Research Fellow
Trustworthy Voting Systems Group
FEPS, 27 BB02
University of Surrey

s dot srinivasan at surrey dot ac dot uk

+ 44 (0)1483 682646

backwards understood be only can but, forward lived be to has Life 
___
From: thomas@gmail.com [thomas@gmail.com] On Behalf Of Thomas P 
Jakobsen [...@cs.au.dk]
Sent: 22 February 2010 08:27
To: viff-devel
Cc: Srinivasan S Mr (Computing)
Subject: Re: [viff-devel] Query from the University of Surrey
 I am on a Windows XP machine. I tried with the latest versions of the
 the components from the respective websites, but the apps from the
 VIFF folder threw up errors. I realize I should have taken note of the
 error messages - sorry about that. So I installed slightly older
 versions (Python 2.4 and related) and things worked fine.

 Okay. Perhaps one of the windows-savvy people on this list can help you
 more or at least look at the errors.
Hi
I've just run the millionaires example using
Windows XP Pro SP3
Python 2.6.4
Twisted 9.0.0
GMPY 1.11
Win32 OpenSSL v. 0.9.8l Light
PyOpenSSL 0.10
It works fine for me when running with --no-ssl. With ssl turned on, I get a
Failure: twisted.internet.error.ConnectionLost: Connection to the
other side was lost in a non-clean fashion.
when connections are closed, but the millinonaires program gets executed anyway.
I agree that we should definitely try to make the installation process
easier, e.g. as Sriram suggests, by including the various dependencies
in the viff packages.
Sriram: Can you make it work with the above versions? If not, which
error messages do you see?
Regards,
Thomas
___
viff-devel mailing list (http://viff.dk/)
viff-devel@viff.dk
http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk