Edit: pypy Does not work:
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "./p2pool/run_p2pool.py", line 3, in
from p2pool import main
File "/usr/home/P2Pool/p2pool/p2pool/main.py", line 17, in
from twisted.internet import defer, reactor, protocol, tcp
ImportError: No module named twisted
Ok, got pypy to work. as far as I can tell, the difficulty is that pypy does not like c-optimized python modules. I guess the FreeBSD ports collection has it's modules c-optimized by default.
The above error was resolved by running the following as the P2Pool user:
$ easy_install --user twisted
Searching for twisted
Best match: Twisted 13.2.0
Processing Twisted-13.2.0-py2.7-freebsd-9.2-RELEASE-p3-amd64.egg
Adding Twisted 13.2.0 to easy-install.pth file
...
I then got a new error message when trying to run P2Pool:
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "./p2pool/run_p2pool.py", line 3, in
from p2pool import main
File "/usr/home/P2Pool/p2pool/p2pool/main.py", line 17, in
from twisted.internet import defer, reactor, protocol, tcp
File "/usr/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-freebsd-9.2-RELEASE-p3-amd64.egg/twisted/__init__.py", line 53, in
_checkRequirements()
File "/usr/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-freebsd-9.2-RELEASE-p3-amd64.egg/twisted/__init__.py", line 37, in _checkRequirements
raise ImportError(required + ": no module named zope.interface.")
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.
In trial and error I tried easy_installing "zope.interface", "setuptools" and "argparse", but I am fairly sure this is what was needed:
$ easy_install --user -U zope.interface
Searching for zope.interface
Reading http://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.1.0
Downloading https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.0.tar.gz#md5=ac63de1784ea0327db876c908af07a94
Processing zope.interface-4.1.0.tar.gz
Writing /tmp/easy_install-jN0eKs/zope.interface-4.1.0/setup.cfg
Running zope.interface-4.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jN0eKs/zope.interface-4.1.0/egg-dist-tmp-LfYUtu
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Adding zope.interface 4.1.0 to easy-install.pth file
It did not work without the '-U' option, which forces an upgrade (from upstream). In both cases, the '--user' option means that only the user running the command is effected.
Now to test if CPU usage/latency actually goes down
Update: Results are inconclusive or slightly worse.