Skip to content

Hi issues when testing orange assasin #76

Description

@FrankJ1122

Version information

We are currently testing orangeassasin as a replacement for spamassasin. We are unable to find any docs related to the installation steps, but however we have started the installation process. We are using orangeassasin to be setup on the Cpanel server. We have both python2.7 and python3 installed on the server along with the pip.

I would like to know if there is any valid documentation of orange assasin to be used in cpanel server

Note: we cannot interfere the default python version on the server as it would break yum packages on the server.

Currently as a part of the test we are using test scripts

Steps to replicate

use script py.test tests/unit/

root@orangeassassin [/]# cd /usr/src/Python-2.7.6/OrangeAssassin/
root@orangeassassin [/usr/src/Python-2.7.6/OrangeAssassin]# py.test tests/unit/
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.6, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /usr/src/Python-2.7.6/OrangeAssassin, inifile:
plugins: cov-2.4.0
collected 1004 items / 3 errors

===================================================================================================== ERRORS ======================================================================================================
___________________________________________________________________________________ ERROR collecting tests/unit/test_daemon.py ____________________________________________________________________________________
tests/unit/test_daemon.py:12: in
import scripts.oad
scripts/oad.py:16: in
import oa.server
oa/server.py:34: in
class RequestHandler(spoon.server.Gulp):
E AttributeError: 'module' object has no attribute 'Gulp'
___________________________________________________________________________________ ERROR collecting tests/unit/test_server.py ____________________________________________________________________________________
tests/unit/test_server.py:14: in
import oa.server
oa/server.py:34: in
class RequestHandler(spoon.server.Gulp):
E AttributeError: 'module' object has no attribute 'Gulp'
______________________________________________________________________________ ERROR collecting tests/unit/test_plugins/test_spf.py _______________________________________________________________________________
ImportError while importing test module '/usr/src/Python-2.7.6/OrangeAssassin/tests/unit/test_plugins/test_spf.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/unit/test_plugins/test_spf.py:11: in
import oa.plugins.spf
oa/plugins/spf.py:8: in
import spf
/usr/local/lib/python2.7/site-packages/spf.py:110: in
import DNS # http://pydns.sourceforge.net
E ImportError: No module named DNS
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================= 3 error in 3.36 seconds =============================================================================================

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions