Nmap Development mailing list archives

Re: trying to run rainmap


From: Paul AMAR <aos.paul () gmail com>
Date: Tue, 23 Dec 2014 19:28:59 +0000

Hi Andreas,

I don't know if you fixed your problem but this thread (might) help:
https://stackoverflow.com/questions/5921148/error-no-module-named-messages-after-installing-python-django-debug-toolbar



2014-12-23 11:14 GMT+00:00 Robin Wood <robin@digi.ninja>:

On 23 December 2014 at 11:11, Andreas Constantinides <megahz () megahz org>
wrote:
Thanks Robin,

i have tried to install an older version and i get:

[megahz@localhost rainmap]$ sudo pip install Django==1.1.3
Downloading/unpacking Django==1.1.3
  Downloading Django-1.1.3.tar.gz (5.7MB): 5.7MB downloaded
  Running setup.py (path:/tmp/pip_build_root/Django/setup.py) egg_info
for
package Django



Installing collected packages: Django
  Found existing installation: Django 1.5
    Uninstalling Django:
      Successfully uninstalled Django
  Running setup.py install for Django
    changing mode of build/scripts-2.7/django-admin.py from 644 to 755



    changing mode of /usr/bin/django-admin.py to 755
Successfully installed Django
Cleaning up...
[megahz@localhost rainmap]$ sudo pip freeze| grep Django
Django==1.1.3
[megahz@localhost rainmap]$ sudo ./manage.py syncdb
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
line
362, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 221, in execute
    self.validate()
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py",
line 249, in validate
    num_errors = get_validation_errors(s, app)
  File
"/usr/lib/python2.7/site-packages/django/core/management/validation.py",
line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py",
line
145, in get_app_errors
    self._populate()
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py",
line
60, in _populate
    self.load_app(app_name, True)
  File "/usr/lib/python2.7/site-packages/django/db/models/loading.py",
line
75, in load_app
    app_module = import_module(app_name)
  File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line
35, in import_module
    __import__(name)
ImportError: No module named messages
[megahz@localhost rainmap]$


1.1.3 is the older i can install via pip.

Should i try and find an even older version?

I'll refer to people more wise in Python stuff now, I could probably
work it out in Ruby with gems but not eggs in Python.

Robin

Thanks

— Andreas



On 22 Dec 2014, at 16:47, Robin Wood <robin@digi.ninja> wrote:

You could install an old version of Django, steps going to be similar to
this:


http://stackoverflow.com/questions/3220280/how-do-i-install-an-old-version-of-django-on-virtualenv

Robin

On 22 December 2014 at 14:42, Andreas Constantinides <megahz () megahz org>
wrote:

Hello all,

i am trying to follow the install guide for rainmap

anybody has run it recently? the latest is the one in the archive
correct?

basically i have no experience with django and that’s where i got
problems.

i am at the point where it says i should run ./manage.py and i get the
following error

rainmap]$ sudo ./manage.py syncdb
Traceback (most recent call last):
 File "./manage.py", line 2, in <module>
   from django.core.management import execute_manager
ImportError: cannot import name execute_manager

searching it, i found that the “execute_manager” deprecated in Django
1.4 as
part of the project layout refactor and was removed in 1.6 per the
deprecation timeline:
https://docs.djangoproject.com/en/1.4/internals/deprecation/#id3

any ideas on how to change that file to make it compatible with latest
django?

thanks

— Andreas



_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: