Hi Karen,
             I am using the svn code for rapidsms and i have tried the
official recommended version Django 1.0 and rapidsms from svn...

Yes i downgraded to 0.96.3 from 1.0 ...now it compiles fine but  when
i try to access the server gives me this output..

Switch to copy-and-paste view

    * /usr/lib/python2.5/site-packages/django/core/handlers/base.py in
get_response
        61. return response
        62.
        63. # Get urlconf from request object, if available. Otherwise
use default.
        64. urlconf = getattr(request, "urlconf",
settings.ROOT_URLCONF)
        65.
        66. resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
        67. try:
        68. callback, callback_args, callback_kwargs = resolver.resolve
(request.path) ...
        69.
        70. # Apply view middleware
        71. for middleware_method in self._view_middleware:
        72. response = middleware_method(request, callback,
callback_args, callback_kwargs)
        73. if response:
        74. return response
      ▶ Local vars
      Variable  Value
      debug
      <module 'django.views.debug' from '/usr/lib/python2.5/site-
packages/django/views/debug.pyc'>
      exceptions
      <module 'django.core.exceptions' from '/usr/lib/python2.5/site-
packages/django/core/exceptions.pyc'>
      mail_admins
      <function mail_admins at 0x88f5c6c>
      middleware_method
      <bound method AuthenticationMiddleware.process_request of
<django.contrib.auth.middleware.AuthenticationMiddleware object at
0x88ffc0c>>
      request
      <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}
>, COOKIES:{'sessionid': '60d043645fd584be1949c5bddc1933eb'}, META:
{'COLORTERM': 'gnome-terminal', 'CONTENT_LENGTH': '', 'CONTENT_TYPE':
'text/plain', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE':
'rapidsms.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HISTCONTROL':
'ignoreboth', 'HOME': '/root', 'HTTP_ACCEPT': 'text/html,application/
xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET':
'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING':
'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
'sessionid=60d043645fd584be1949c5bddc1933eb', 'HTTP_HOST':
'127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT':
'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121621
Ubuntu/8.04 (hardy) Firefox/3.0.5', 'LANG': 'en_IN', 'LESSCLOSE': '/
usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s',
'LOGNAME': 'root', 'LS_COLORS':
'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.
7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:',
'MAIL': '/var/mail/root', 'OLDPWD': '/usr/local/rapidsmsdev/rapidsms/
rapidsms/balert', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/
usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': '/', 'PWD': '/usr/local/
rapidsmsdev/rapidsms/rapidsms', 'QUERY_STRING': '', 'REMOTE_ADDR':
'127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN':
'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
'8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/
0.1 Python/2.5.2', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SUDO_COMMAND':
'/bin/su', 'SUDO_GID': '1000', 'SUDO_UID': '1000', 'SUDO_USER':
'portable', 'TERM': 'xterm', 'TZ': 'Asia/Kolkata', 'USER': 'root',
'USERNAME': 'root', 'XAUTHORITY': '/home/portable/.Xauthority', '_': '/
usr/bin/python', 'wsgi.errors': <open file '<stderr>', mode 'w' at
0xb7d1c0b0>, 'wsgi.file_wrapper': <class
'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
<socket._fileobject object at 0x89065dc>, 'wsgi.multiprocess': False,
'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme':
'http', 'wsgi.version': (1, 0)}>
      resolver
      <django.core.urlresolvers.RegexURLResolver object at 0x88ecb6c>
      response
      None
      self
      <django.core.handlers.wsgi.WSGIHandler object at 0x84fefcc>
      settings
      <django.conf.LazySettings object at 0xb7c06fcc>
      urlconf
      'rapidsms.urls'
      urlresolvers
      <module 'django.core.urlresolvers' from '/usr/lib/python2.5/site-
packages/django/core/urlresolvers.pyc'>
    * /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in
resolve
       155. def resolve(self, path):
       156. tried = []
       157. match = self.regex.search(path)
       158. if match:
       159. new_path = path[match.end():]
       160. for pattern in self.urlconf_module.urlpatterns:
       161. try:
       162. sub_match = pattern.resolve(new_path) ...
       163. except Resolver404, e:
       164. tried.extend([(pattern.regex.pattern + ' ' + t) for t in
e.args[0]['tried']])
       165. else:
       166. if sub_match:
       167. sub_match_dict = dict(self.default_kwargs, **sub_match[2])
       168. return sub_match[0], sub_match[1], dict(match.groupdict(),
**sub_match_dict)
      ▶ Local vars
      Variable  Value
      match
      <_sre.SRE_Match object at 0x89c11a8>
      new_path
      ''
      path
      '/'
      pattern
      <django.core.urlresolvers.RegexURLPattern object at 0x890af6c>
      self
      <django.core.urlresolvers.RegexURLResolver object at 0x88ecb6c>
      sub_match
      None
      tried
      ['^templates/(?P<path>.*)$', '^media/(?P<path>.*)$', '^admin/',
'^data/forms/$', '^data/delete/(?P<form_id>\\d+)/(?P<field_id>\\d+)/
$', '^data/reorder/(?P<form_id>\\d+)/$', '^data/select/$', '^data/view/
(?:(?P<form_id>\\d+)/)?$', '^response/delete/(?P<response_id>\\d+)/$',
'^data/graph/(?:(?P<form_id>\\d+)/)?$', '^data/csv/(?P<form_id>\\d+)\
\.csv$', '^data/xls/(?P<form_id>\\d+)\\.xls$', '^data/unparseables/$',
'^data/unparseables/process/(?P<msg_id>\\d+)/$', '^data/delete/(?
P<form_id>\\d+)/$', '^data/edit/(?P<form_id>\\d+)/$', '^data/update/(?
P<form_id>\\d+)/$', '^(?P<format>json|xml)/form-fields/(?P<form_id>\\d
+)/$', '^(?P<format>json|xml)/form-responses/(?P<form_id>\\d+)/$',
'^send/form/$', '^accounts/login/$', '^accounts/logout/$', '^partial/(?
P<name>[a-z\\-]+)/(?:(?P<args>[a-z0-9\\-/]*)/)?$', '^process/(?P<model>
[a-z\\-]+)/(?:(?P<delete>delete)/)?$', '^process_import/$', '^import/
$', '^mark-as-read/(?P<type>sms|audio)/(?P<id>\\d+)/$']
    * /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in
resolve
       111. if kwargs:
       112. args = ()
       113. else:
       114. args = match.groups()
       115. # In both cases, pass any extra_kwargs as **kwargs.
       116. kwargs.update(self.default_args)
 117.
       118. return self.callback, args, kwargs ...
       119.
       120. def _get_callback(self):
       121. if self._callback is not None:
       122. return self._callback
       123. mod_name, func_name = get_mod_func(self._callback_str)
       124. try:
      ▶ Local vars
      Variable  Value
      args
      ()
      kwargs
      {}
      match
      <_sre.SRE_Match object at 0x89c1330>
      path
      ''
      self
      <django.core.urlresolvers.RegexURLPattern object at 0x890af6c>
    * /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in
_get_callback
       120. def _get_callback(self):
       121. if self._callback is not None:
       122. return self._callback
       123. mod_name, func_name = get_mod_func(self._callback_str)
       124. try:
       125. self._callback = getattr(__import__(mod_name, {}, {},
['']), func_name)
       126. except ImportError, e:
       127. raise ViewDoesNotExist, "Could not import %s. Error was:
%s" % (mod_name, str(e)) ...
       128. except AttributeError, e:
       129. raise ViewDoesNotExist, "Tried %s in module %s. Error was:
%s" % (func_name, mod_name, str(e))
       130. return self._callback
       131. callback = property(_get_callback)
       132.
       133. def reverse(self, viewname, *args, **kwargs):
      ▶ Local vars

Do i have to upgrade to Django 1.0 again...?
Regards
Deepak

On Mar 22, 10:04 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Sun, Mar 22, 2009 at 5:33 AM, dbbarua <dbba...@gmail.com> wrote:
>
> > Hi Everybody,
> >                    I have a problem viewing my rapidsms django
> > application
>
> > when i use my locally installed django app by typing in the browser
>
> >http://127.0.0.1:8000
>
> > I get this error
>
> > ViewDoesNotExist at /
> > Could not import rapidsms.balert.views. Error was: cannot import name
> > ugettext
> > Request Method:         GET
> > Request URL:    http://127.0.0.1:8000/
> > Exception Type:         ViewDoesNotExist
> > Exception Value:        Could not import rapidsms.balert.views. Error was:
> > cannot import name ugettext
> > Exception Location:     /usr/lib/python2.5/site-packages/django/core/
> > urlresolvers.py in _get_callback, line 127
>
> > How do i resolve this...?
>
> In a previous thread you reported a problem with this app using a pre-1.0
> model parameter (core), which you note you solved by downgrading to Django
> 0.93 -- I'm guessing you actually  meant 0.96.3, since I've never heard of a
> Django 0.93.  This one you are reporting now looks like the app is expecting
> a version of Django higher than 0.96, since I'm guessing it's attempting to
> import ugettext from django.utils.translation, and ugettext wasn't added to
> django.utils.translation until sometime after 0.96.
>
> I think a better fix for your original problem would be to upgrade this
> rapidsms app to a version that runs on Django 1.0.  What you've got now
> apparently expects some (non-official-release) version of Django between
> 0.96 and 1.0.  I'm not familiar with this app, but browsing the subversion
> repository on sourceforge for it shows that core=True is no longer present
> in the models.py file, so I'd expect it has an official release that runs on
> Django 1.0.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to