omargnagy / subterfuge

Automatically exported from code.google.com/p/subterfuge
GNU General Public License v3.0
0 stars 0 forks source link

problem to install on ubuntu 13.10 #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After installation stable version(subterfuge_1.0-1_all.deb) on ubuntu 13.10, i 
have problem to start.

that say me browser:
ImportError at /

No module named defaults

Request Method:     GET
Request URL:    http://127.0.0.1/
Django Version:     1.6
Exception Type:     ImportError
Exception Value:    

No module named defaults

Exception Location:     /usr/share/subterfuge/urls.py in <module>, line 1
Python Executable:  /usr/bin/python
Python Version:     2.7.5
Python Path:    

['/usr/share/subterfuge',
 '/usr/share/subterfuge',
 '/usr/share',
 '/usr/local/lib/python2.7/dist-packages/pybloomfiltermmap-0.3.11-py2.7-linux-x86_64.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

in terminal:
Subterfuge courtesy of r00t0v3rr1d3 & 0sm0s1z
Validating models...

0 errors found
March 13, 2014 - 22:26:56
Django version 1.6, using settings 'subterfuge.settings'
Starting development server at http://127.0.0.1:80/
Quit the server with CONTROL-C.
Internal Server Error: /
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 101, in get_response
    resolver_match = resolver.resolve(request.path_info)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 318, in resolve
    for pattern in self.url_patterns:
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 346, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 341, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/share/subterfuge/urls.py", line 1, in <module>
    from django.conf.urls.defaults import patterns, include, url
ImportError: No module named defaults
[13/Mar/2014 22:27:04] "GET / HTTP/1.1" 500 82750
Internal Server Error: /favicon.ico
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 90, in get_response
    response = middleware_method(request)
  File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py", line 71, in process_request
    if (not urlresolvers.is_valid_path(request.path_info, urlconf) and
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 573, in is_valid_path
    resolve(path, urlconf)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 453, in resolve
    return get_resolver(urlconf).resolve(path)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 318, in resolve
    for pattern in self.url_patterns:
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 346, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 341, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/share/subterfuge/urls.py", line 1, in <module>
    from django.conf.urls.defaults import patterns, include, url
ImportError: No module named defaults
^Croot@pacman:/home/a13x/Загрузки# uname -a
Linux pacman 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
root@pacman:/home/a13x/Загрузки# subterfuge 

Subterfuge courtesy of r00t0v3rr1d3 & 0sm0s1z
Validating models...

0 errors found
March 13, 2014 - 22:34:18
Django version 1.6, using settings 'subterfuge.settings'
Starting development server at http://127.0.0.1:80/
Quit the server with CONTROL-C.
Internal Server Error: /
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 101, in get_response
    resolver_match = resolver.resolve(request.path_info)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 318, in resolve
    for pattern in self.url_patterns:
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 346, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 341, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/share/subterfuge/urls.py", line 1, in <module>
    from django.conf.urls.defaults import patterns, include, url
ImportError: No module named defaults
[13/Mar/2014 22:34:26] "GET / HTTP/1.1" 500 82750
^CUnhandled exception in thread started by <function wrapper at 0x2b7b668>
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 54, in apport_excepthook

i dont have errors in installation. Try unistall subterfuge, and reinstall 
dependencew(django twisted and other), but problem not solved. 

Original issue reported on code.google.com by murderof...@gmail.com on 14 Mar 2014 at 3:40

GoogleCodeExporter commented 8 years ago
Sorry, due to time constraints we aren't supporting Subterfuge on any platform 
other then Kali Linux at the moment. If you're adamant I would suggest looking 
into the differences between your builds and going from there.

Original comment by Mtoussain@gmail.com on 16 Mar 2014 at 11:33

GoogleCodeExporter commented 8 years ago
problem solved. delete from /usr/share/subterfuge/ file urls.pyc, in urls.py 
reneme django.conf.urls.defaults to django.conf.urls. all work fine) it problem 
in django)

Original comment by murderof...@gmail.com on 17 Mar 2014 at 3:22

GoogleCodeExporter commented 8 years ago
@murderof... THANKS! this worked for me as well

Original comment by kenfly...@gmail.com on 23 Jun 2014 at 12:44

GoogleCodeExporter commented 8 years ago
yup works for me. thanks man

Original comment by Tr4c3k...@gmail.com on 15 Sep 2014 at 11:49

GoogleCodeExporter commented 8 years ago
Cool!

Original comment by felipebr...@gmail.com on 26 Sep 2014 at 7:00

GoogleCodeExporter commented 8 years ago
Worked for ubuntu 14.04.1 :D

Original comment by 7marcel...@gmail.com on 10 Dec 2014 at 12:59

GoogleCodeExporter commented 8 years ago
Worked for me too (Ubuntu 14.04 x86)

Original comment by kalishal...@gmail.com on 28 Dec 2014 at 3:59