Reputation: 2561
I found the hint about using checkinterval in the Plone documentation (for performance tuning) and tried to install it; in my buildout.cfg
:
[buildout]
parts +=
checkinterval
[checkinterval]
recipe = zc.recipe.egg
eggs =
jarn.checkinterval
However, when I tried to call bin/checkinterval
after building, it failed:
File ".../eggs/jarn.checkinterval-1.0-py2.7.egg/jarn/checkinterval/checkinterval.py", line 4, in <module>
from test import pystone
ImportError: cannot import name pystone
I had a look in the jarn.checkinterval
package and found neither a test
module nor any requirements specification.
I tried to add test
to the parts list, and pip install test
and the like; but the test
package I found doesn't contain the string pystone
.
So, where can I find this pystone
utility, and how can I integrate it to have it found?
Or is this checkinterval
thing outdated anyway?
Upvotes: 2
Views: 1167
Reputation: 1228
Pystone should be in your python not your Plone. To check that just find out the python you are using & test the import as below:
$ head -2 bin/buildout
#!/home/daniel/dev/Plone/Development/myproject/bin/python
$ /home/daniel/dev/Plone/Development/myproject/bin/python
Python 2.7.5 (default, Jul 15 2013, 18:40:50)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from test import pystone
>>>
Will probably fail on your system.
Which platform are you using? This fedora user's problem is similar to yours & is simply solved by yum install python-test
. Hopefully it's that easy for you?
If you installed Plone using the Universal Installer it should have built you a python that (I think) would have dependencies like this included....
Upvotes: 2