Git Product home page Git Product logo

Comments (4)

pevma avatar pevma commented on July 16, 2024

Thanks for the info!

from scirius.

regit avatar regit commented on July 16, 2024

@grantstavely Could you say what errors did you have and what was the version installed by pip ?

from scirius.

g-r-a-v-e-l-y avatar g-r-a-v-e-l-y commented on July 16, 2024

@regit, Sure, sorry for not including it in the original report.

I get this error when trying to update a ruleset for the first time:

Environment:


Request Method: GET
Request URL: https://hostname.tld/rules/source/1/update

Django Version: 1.6.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'south',
 'django_tables2',
 'rules',
 'suricata')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/nsm/var/www/scirius/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/views.py" in update_source
  137.         src.update()
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in update
  258.                 self.handle_rules_in_tar(f)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in handle_rules_in_tar
  159.         repo = self.get_git_repo(delete = True)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in get_git_repo
  123.             repo = git.Repo.init(source_git_dir)

Exception Type: AttributeError at /rules/source/1/update
Exception Value: type object 'Repo' has no attribute 'init'

Installed modules:

(scirius)gstavely@hostname:/nsm/var/www/scirius/lib/python2.7/site-packages$ pip list
argparse (1.2.1)
daemon (1.1)
Django (1.6.5)
django-tables2 (0.15.0)
GitPython (0.1.7)
pip (1.5.6)
pyinotify (0.9.4)
setuptools (3.6)
six (1.7.3)
South (1.0)
wsgiref (0.1.2)

I don't think these details matter much but, this is running as under Apache with wsgi.py modified to be aware of scirirus's settings environment. I mostly cribbed from https://github.com/grigorescu/Brownian's install guide. And I've checked out Scirius into my virutalenv's ./lib/python2.7/site-packages/.

SCIRIUS_PATH = '/nsm/var/www/scirius'

import sys
version = sys.version_info
PYTHON_VER = "%d.%d" % (version[0], version[1])

sys.path.insert(0, SCIRIUS_PATH + '/lib/python' + PYTHON_VER + '/site-packages')

import site, os

site.addsitedir(SCIRIUS_PATH + '/lib/python' + PYTHON_VER + '/site-packages')

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scirius.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

from scirius.

regit avatar regit commented on July 16, 2024

Thanks, I've updated the README.

from scirius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.