librelist archives

« back to archive

Assets module for Ralph - ralph.util.reports import Report, set_progress

Assets module for Ralph - ralph.util.reports import Report, set_progress

From:
Thomas Stewart Buchanan
Date:
2013-12-28 @ 19:11
Hi All,

Just install Ralph alongside the asset module, however it appears be unable
to import set_progress from alph.util.reports

Is this a known issue?

Is there a work around?


Output from log:

2013-12-28 20:09:12 [2045] [ERROR] Error handling request
Traceback (most recent call last):
  File
"/home/ralph/local/lib/python2.7/site-packages/gunicorn/workers/sync.py",
line 102, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File

"/home/ralph/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py",
line 67, in __call__
    return self.application(environ, start_response)
  File
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
line 241, in __call__
    response = self.get_response(request)
  File
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 179, in get_response
    response = self.handle_uncaught_exception(request, resolver,
sys.exc_info())
  File
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 224, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File
"/home/ralph/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 323, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File
"/home/ralph/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File "/home/ralph/local/lib/python2.7/site-packages/ralph/urls.py", line
138, in <module>
    app_urls = url(r'^{}/'.format(app[6:]), include('{}.urls'.format(app)))
  File
"/home/ralph/local/lib/python2.7/site-packages/django/conf/urls/__init__.py",
line 24, in include
    urlconf_module = import_module(urlconf_module)
  File
"/home/ralph/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File
"/home/ralph/local/lib/python2.7/site-packages/ralph_assets/urls.py", line
12, in <module>
    from ralph_assets.views import (
  File
"/home/ralph/local/lib/python2.7/site-packages/ralph_assets/views.py", line
52, in <module>
    from ralph.util.reports import Report, set_progress
ImportError: cannot import name set_progress

Thanks

Thomas

-- 
---------------------------------------
Thomas Stewart Buchanan
tomehb@tomehb.co.uk

Re: [ralph] Assets module for Ralph - ralph.util.reports import Report, set_progress

From:
Marcin Kliks
Date:
2014-01-08 @ 10:03
Hi Thomas,

the fix is almost ready, we are about to issue new release of ralph assets
with the fix and new features.

Wiadomość napisana przez Thomas Stewart Buchanan 
<tomehb@gmail.com<mailto:tomehb@gmail.com>> w dniu 28 gru 2013, o godz. 
20:11:

Hi All,

Just install Ralph alongside the asset module, however it appears be 
unable to import set_progress from alph.util.reports

Is this a known issue?

Is there a work around?


Output from log:

2013-12-28 20:09:12 [2045] [ERROR] Error handling request
Traceback (most recent call last):
  File 
"/home/ralph/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", 
line 102, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py",
line 67, in __call__
    return self.application(environ, start_response)
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
line 241, in __call__
    response = self.get_response(request)
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 179, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 224, in handle_uncaught_exception
    if resolver.urlconf_module is None:
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 323, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File "/home/ralph/local/lib/python2.7/site-packages/ralph/urls.py", line
138, in <module>
    app_urls = url(r'^{}/'.format(app[6:]), include('{}.urls'.format(app)))
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/conf/urls/__init__.py",
line 24, in include
    urlconf_module = import_module(urlconf_module)
  File 
"/home/ralph/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 35, in import_module
    __import__(name)
  File 
"/home/ralph/local/lib/python2.7/site-packages/ralph_assets/urls.py", line
12, in <module>
    from ralph_assets.views import (
  File 
"/home/ralph/local/lib/python2.7/site-packages/ralph_assets/views.py", 
line 52, in <module>
    from ralph.util.reports import Report, set_progress
ImportError: cannot import name set_progress

Thanks

Thomas

--
---------------------------------------
Thomas Stewart Buchanan
tomehb@tomehb.co.uk<mailto:tomehb@tomehb.co.uk>