[GH-ISSUE #645] Upgrade to 1.2. rc1 fails via pip with django-versionfield errors #602

Closed
opened 2026-02-27 11:12:36 +03:00 by kerem · 14 comments
Owner

Originally created by @piwats on GitHub (Dec 7, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/645

As mentioned above:

pip install --upgrade modoboa==1.2.0-rc1
Downloading/unpacking modoboa==1.2.0-rc1
  Downloading modoboa-1.2.0-rc1.tar.gz (3.4MB): 3.4MB downloaded
  Running setup.py (path:/tmp/pip_build_root/modoboa/setup.py) egg_info for package modoboa

    warning: no files found matching '*.tpl' under directory 'modoboa/core/templates'
Downloading/unpacking django>=1.6,<1.7 (from modoboa==1.2.0-rc1)
  Downloading Django-1.6.8-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Downloading/unpacking django-reversion==1.8.5 (from modoboa==1.2.0-rc1)
  Downloading django-reversion-1.8.5.tar.gz (57kB): 57kB downloaded
  Running setup.py (path:/tmp/pip_build_root/django-reversion/setup.py) egg_info for package django-reversion

    no previously-included directories found matching 'docs/_build'
Requirement already up-to-date: dj-database-url in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: south in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: lxml in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: pycrypto in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: sievelib in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: chardet in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: argparse in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: rfc6266 in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Downloading/unpacking factory-boy<2.4 (from modoboa==1.2.0-rc1)
  Downloading factory_boy-2.3.1.tar.gz (74kB): 74kB downloaded
  Running setup.py (path:/tmp/pip_build_root/factory-boy/setup.py) egg_info for package factory-boy

    no previously-included directories found matching 'docs/_build'
Requirement already up-to-date: passlib in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1)
Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1)
  Could not find any downloads that satisfy the requirement django-versionfield (from modoboa==1.2.0-rc1)
  Some externally hosted files were ignored (use --allow-external django-versionfield to allow).
Cleaning up...
No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1)
Storing debug log for failure in /root/.pip/pip.log

with /root/.pip/pip.log

Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1)
  Getting page https://pypi.python.org/simple/django-versionfield/
  Could not fetch URL https://pypi.python.org/simple/django-versionfield/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/django-versionfield/ when looking for download links for django-versionfield (from modoboa==1.2.0-rc1)
  Getting page https://pypi.python.org/simple/
  URLs to search for versions for django-versionfield (from modoboa==1.2.0-rc1):
  * https://pypi.python.org/simple/django-versionfield/
  Getting page https://pypi.python.org/simple/django-versionfield/
  Could not fetch URL https://pypi.python.org/simple/django-versionfield/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/django-versionfield/ when looking for download links for django-versionfield (from modoboa==1.2.0-rc1)
  Could not find any downloads that satisfy the requirement django-versionfield (from modoboa==1.2.0-rc1)
  Some externally hosted files were ignored (use --allow-external django-versionfield to allow).
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1)
Exception information:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib64/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib64/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib64/python2.7/site-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1)

The use of --allow-external django-versionfield results in the same error.

So the question is how to upgrade to 1.2.0-rc1...

-Paul

Originally created by @piwats on GitHub (Dec 7, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/645 As mentioned above: ``` pip install --upgrade modoboa==1.2.0-rc1 Downloading/unpacking modoboa==1.2.0-rc1 Downloading modoboa-1.2.0-rc1.tar.gz (3.4MB): 3.4MB downloaded Running setup.py (path:/tmp/pip_build_root/modoboa/setup.py) egg_info for package modoboa warning: no files found matching '*.tpl' under directory 'modoboa/core/templates' Downloading/unpacking django>=1.6,<1.7 (from modoboa==1.2.0-rc1) Downloading Django-1.6.8-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded Downloading/unpacking django-reversion==1.8.5 (from modoboa==1.2.0-rc1) Downloading django-reversion-1.8.5.tar.gz (57kB): 57kB downloaded Running setup.py (path:/tmp/pip_build_root/django-reversion/setup.py) egg_info for package django-reversion no previously-included directories found matching 'docs/_build' Requirement already up-to-date: dj-database-url in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: south in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: lxml in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: pycrypto in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: sievelib in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: chardet in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: argparse in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: rfc6266 in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Downloading/unpacking factory-boy<2.4 (from modoboa==1.2.0-rc1) Downloading factory_boy-2.3.1.tar.gz (74kB): 74kB downloaded Running setup.py (path:/tmp/pip_build_root/factory-boy/setup.py) egg_info for package factory-boy no previously-included directories found matching 'docs/_build' Requirement already up-to-date: passlib in /usr/lib64/python2.7/site-packages (from modoboa==1.2.0-rc1) Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1) Could not find any downloads that satisfy the requirement django-versionfield (from modoboa==1.2.0-rc1) Some externally hosted files were ignored (use --allow-external django-versionfield to allow). Cleaning up... No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1) Storing debug log for failure in /root/.pip/pip.log ``` with /root/.pip/pip.log ``` Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1) Getting page https://pypi.python.org/simple/django-versionfield/ Could not fetch URL https://pypi.python.org/simple/django-versionfield/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/django-versionfield/ when looking for download links for django-versionfield (from modoboa==1.2.0-rc1) Getting page https://pypi.python.org/simple/ URLs to search for versions for django-versionfield (from modoboa==1.2.0-rc1): * https://pypi.python.org/simple/django-versionfield/ Getting page https://pypi.python.org/simple/django-versionfield/ Could not fetch URL https://pypi.python.org/simple/django-versionfield/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/django-versionfield/ when looking for download links for django-versionfield (from modoboa==1.2.0-rc1) Could not find any downloads that satisfy the requirement django-versionfield (from modoboa==1.2.0-rc1) Some externally hosted files were ignored (use --allow-external django-versionfield to allow). Cleaning up... Removing temporary dir /tmp/pip_build_root... No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1) Exception information: Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib64/python2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib64/python2.7/site-packages/pip/req.py", line 1177, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "/usr/lib64/python2.7/site-packages/pip/index.py", line 277, in find_requirement raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for django-versionfield (from modoboa==1.2.0-rc1) ``` The use of --allow-external django-versionfield results in the same error. So the question is how to upgrade to 1.2.0-rc1... -Paul
kerem closed this issue 2026-02-27 11:12:36 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

Hi,
try to install django-versionfield manually:

$ pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield
<!-- gh-comment-id:66039512 --> @tonioo commented on GitHub (Dec 8, 2014): Hi, try to install django-versionfield manually: ``` $ pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield ```
Author
Owner

@ghost commented on GitHub (Dec 8, 2014):

I got the same error.

I tried manually, but it is still not working for me.

<!-- gh-comment-id:66040276 --> @ghost commented on GitHub (Dec 8, 2014): I got the same error. I tried manually, but it is still not working for me.
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

Strange...
@csmk Can you paste the command output please?

<!-- gh-comment-id:66040388 --> @tonioo commented on GitHub (Dec 8, 2014): Strange... @csmk Can you paste the command output please?
Author
Owner

@ghost commented on GitHub (Dec 8, 2014):

pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield
Obtaining django-versionfield from git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield
  Updating ./src/django-versionfield clone
  Running setup.py (path:/home/modoboa/venv/src/django-versionfield/setup.py) egg_info for package django-versionfield

  Installing extra requirements: 'egg'
Installing collected packages: django-versionfield
  Running setup.py develop for django-versionfield

    Creating /home/modoboa/venv/lib/python2.7/site-packages/django-versionfield.egg-link (link to .)
    django-versionfield 0.3.2 is already the active version in easy-install.pth

    Installed /home/modoboa/venv/src/django-versionfield
Successfully installed django-versionfield
Cleaning up...
pip install --upgrade modoboa==1.2.0-rc1
Downloading/unpacking modoboa==1.2.0-rc1
  Downloading modoboa-1.2.0-rc1.tar.gz (3.4MB): 3.4MB downloaded
  Running setup.py (path:/home/modoboa/venv/build/modoboa/setup.py) egg_info for package modoboa

    warning: no files found matching '*.tpl' under directory 'modoboa/core/templates'
Downloading/unpacking django>=1.6,<1.7 (from modoboa==1.2.0-rc1)
  Downloading Django-1.6.8-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Downloading/unpacking django-reversion==1.8.5 (from modoboa==1.2.0-rc1)
  Downloading django-reversion-1.8.5.tar.gz (57kB): 57kB downloaded
  Running setup.py (path:/home/modoboa/venv/build/django-reversion/setup.py) egg_info for package django-reversion

    no previously-included directories found matching 'docs/_build'
Requirement already up-to-date: dj-database-url in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: south in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: lxml in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: pycrypto in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: sievelib in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: chardet in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: argparse in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Requirement already up-to-date: rfc6266 in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Downloading/unpacking factory-boy<2.4 (from modoboa==1.2.0-rc1)
  Downloading factory_boy-2.3.1.tar.gz (74kB): 74kB downloaded
  Running setup.py (path:/home/modoboa/venv/build/factory-boy/setup.py) egg_info for package factory-boy

    no previously-included directories found matching 'docs/_build'
Requirement already up-to-date: passlib in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1)
Could not find any downloads that satisfy the requirement django-versionfield in ./src/django-versionfield (from modoboa==1.2.0-rc1)
Some externally hosted files were ignored (use --allow-external django-versionfield to allow).
Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1)
Cleaning up...
No distributions at all found for django-versionfield in ./src/django-versionfield (from modoboa==1.2.0-rc1)
<!-- gh-comment-id:66042594 --> @ghost commented on GitHub (Dec 8, 2014): ``` pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield Obtaining django-versionfield from git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield Updating ./src/django-versionfield clone Running setup.py (path:/home/modoboa/venv/src/django-versionfield/setup.py) egg_info for package django-versionfield Installing extra requirements: 'egg' Installing collected packages: django-versionfield Running setup.py develop for django-versionfield Creating /home/modoboa/venv/lib/python2.7/site-packages/django-versionfield.egg-link (link to .) django-versionfield 0.3.2 is already the active version in easy-install.pth Installed /home/modoboa/venv/src/django-versionfield Successfully installed django-versionfield Cleaning up... ``` ``` pip install --upgrade modoboa==1.2.0-rc1 Downloading/unpacking modoboa==1.2.0-rc1 Downloading modoboa-1.2.0-rc1.tar.gz (3.4MB): 3.4MB downloaded Running setup.py (path:/home/modoboa/venv/build/modoboa/setup.py) egg_info for package modoboa warning: no files found matching '*.tpl' under directory 'modoboa/core/templates' Downloading/unpacking django>=1.6,<1.7 (from modoboa==1.2.0-rc1) Downloading Django-1.6.8-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded Downloading/unpacking django-reversion==1.8.5 (from modoboa==1.2.0-rc1) Downloading django-reversion-1.8.5.tar.gz (57kB): 57kB downloaded Running setup.py (path:/home/modoboa/venv/build/django-reversion/setup.py) egg_info for package django-reversion no previously-included directories found matching 'docs/_build' Requirement already up-to-date: dj-database-url in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: south in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: lxml in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: pycrypto in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: sievelib in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: chardet in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: argparse in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Requirement already up-to-date: rfc6266 in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Downloading/unpacking factory-boy<2.4 (from modoboa==1.2.0-rc1) Downloading factory_boy-2.3.1.tar.gz (74kB): 74kB downloaded Running setup.py (path:/home/modoboa/venv/build/factory-boy/setup.py) egg_info for package factory-boy no previously-included directories found matching 'docs/_build' Requirement already up-to-date: passlib in ./lib/python2.7/site-packages (from modoboa==1.2.0-rc1) Could not find any downloads that satisfy the requirement django-versionfield in ./src/django-versionfield (from modoboa==1.2.0-rc1) Some externally hosted files were ignored (use --allow-external django-versionfield to allow). Downloading/unpacking django-versionfield (from modoboa==1.2.0-rc1) Cleaning up... No distributions at all found for django-versionfield in ./src/django-versionfield (from modoboa==1.2.0-rc1) ```
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

It looks like the manual installation worked. Now, can you try the following command:

$ pip install --allow-external django-versionfield modoboa==1.2.0-rc1
<!-- gh-comment-id:66043300 --> @tonioo commented on GitHub (Dec 8, 2014): It looks like the manual installation worked. Now, can you try the following command: ``` $ pip install --allow-external django-versionfield modoboa==1.2.0-rc1 ```
Author
Owner

@ghost commented on GitHub (Dec 8, 2014):

It's working now!

Thank you! ;)

<!-- gh-comment-id:66043557 --> @ghost commented on GitHub (Dec 8, 2014): It's working now! Thank you! ;)
Author
Owner

@piwats commented on GitHub (Dec 8, 2014):

Same here - the manual install of django-versionfield and the later command helped.

-Paul

<!-- gh-comment-id:66115814 --> @piwats commented on GitHub (Dec 8, 2014): Same here - the manual install of django-versionfield and the later command helped. -Paul
Author
Owner

@piwats commented on GitHub (Dec 8, 2014):

Although the installation seemed to be working, now I'm getting this error when trying to access modoboa:

Django Version: 1.6.8
Python Version: 2.7.7
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'south',
 'reversion',
 'modoboa',
 'modoboa.core',
 'modoboa.lib',
 'modoboa.extensions.admin',
 'modoboa.extensions.postfix_relay_domains',
 'modoboa.extensions.limits',
 'modoboa.extensions.postfix_autoreply',
 'modoboa.extensions.webmail',
 'modoboa.extensions.stats',
 'modoboa.extensions.sievefilters',
 'modoboa.extensions.amavis')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'modoboa.lib.middleware.AjaxLoginRedirect',
 'modoboa.lib.middleware.CommonExceptionCatcher',
 'modoboa.lib.middleware.ExtControlMiddleware',
 'modoboa.lib.middleware.RequestCatcherMiddleware')


Template error:
In template /usr/lib64/python2.7/site-packages/modoboa/templates/registration/login.html, error at line 28
   No module named versionfield.constants
   18 :             <li>


   19 :               <div class="col-lg-offset-4 col-lg-5 col-md-offset-4 col-md-5 col-sm-offset-4 col-sm-5">


   20 :                 <a href="#" class="thumbnail">


   21 :                   <img src="{% get_modoboa_logo %}" />


   22 :                 </a>


   23 :               </div>


   24 :             </li>


   25 :           </ul>


   26 :         </div>


   27 :         <div class=" divider"></div>


   28 :         <form method="post" action=" {% url 'core:login' %} " class="login-form form-horizontal">


   29 :           {% csrf_token %}


   30 :           {% render_field form.username %}


   31 :           {% render_field form.password %}


   32 :           <input type="hidden" name="next" value="{{ next }}" />


   33 :           <div class="form-group">


   34 :             <div class="control-label col-lg-4 col-md-4 col-sm-4 ">


   35 :             </div>


   36 :             <div class="col-lg-5 col-md-5 col-sm-5">


   37 :               <div class="checkbox">


   38 :                 <label class="checkbox" for="id_rememberme">


Traceback:
File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib64/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/modoboa/core/views/auth.py" in dologin
  60.         "annoucements": events.raiseQueryEvent("GetAnnouncement", "loginpage")
File "/usr/lib64/python2.7/site-packages/modoboa/lib/webutils.py" in _render_to_string
  25.                             context_instance=template.RequestContext(request))
File "/usr/lib64/python2.7/site-packages/django/template/loader.py" in render_to_string
  169.         return t.render(context_instance)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  140.             return self._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/defaulttags.py" in render
  433.             url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in reverse
  536.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in _reverse_with_prefix
  403.             self._populate()
File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in _populate
  303.                 lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in callback
  230.         self._callback = get_callable(self._callback_str)
File "/usr/lib64/python2.7/site-packages/django/utils/functional.py" in wrapper
  32.         result = func(*args)
File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in get_callable
  97.             mod = import_module(mod_name)
File "/usr/lib64/python2.7/site-packages/django/utils/importlib.py" in import_module
  40.         __import__(name)
File "/usr/lib64/python2.7/site-packages/modoboa/core/views/admin.py" in <module>
  15. from modoboa.core.utils import new_version_available
File "/usr/lib64/python2.7/site-packages/modoboa/core/utils.py" in <module>
  14. from versionfield.constants import DEFAULT_NUMBER_BITS

Exception Type: ImportError at /accounts/login/
Exception Value: No module named versionfield.constants

with pip list:

versionfield # pip list
argparse (1.2.2)
authres (0.602)
Babel (1.3)
carbon (0.9.12)
chardet (2.3.0)
dj-database-url (0.3.0)
Django (1.6.8)
django-reversion (1.8.5)
django-tagging (0.3.3)
django-versionfield (0.3.2, /root/src/django-versionfield)
docopt (0.6.2)
docutils (0.12)
factory-boy (2.3.1)
Genshi (0.7)
Warning: cannot find svn location for gentoolkit==0.3.0.9-r2
gentoolkit (0.3.0.9-r2)
ipaddr (2.1.10)
layman (2.0.0)
LEPL (5.1.3)
lxml (3.4.1)
modoboa (1.2.0-rc1)
MySQL-python (1.2.5)
ngxtop (0.0.2)
passlib (1.6.2)
pbr (0.8.2)
pip (1.5.6)
portage (2.2.14)
psycopg2 (2.5.3)
py-rrdtool (0.2.2)
pycrypto (2.6.1)
pydns (2.3.6)
Warning: cannot find svn location for Pygments==2.0predev-20141124
Pygments (2.0predev-20141124)
pyOpenSSL (0.13.1)
pyparsing (2.0.1)
pypolicyd-spf (1.3.1)
pyspf (2.0.10)
pytz (2014.9)
pyzor (0.5.0)
requests (2.4.3)
rfc6266 (0.0.4)
scons (2.3.0)
setuptools (7.0)
sievelib (0.8)
six (1.8.0)
South (1.0.1)
stevedore (1.1.0)
tabulate (0.7.2)
Trac (1.0.1)
Twisted (12.3.0)
Twisted-Core (12.3.0)
txAMQP (0.6.2)
virtualenv (1.11.6)
virtualenv-clone (0.2.4)
virtualenvwrapper (4.3.1)
webapp-config (1.52)
whisper (0.9.12)
wsgiref (0.1.2)
zope.interface (4.1.1)
<!-- gh-comment-id:66117044 --> @piwats commented on GitHub (Dec 8, 2014): Although the installation seemed to be working, now I'm getting this error when trying to access modoboa: ``` Django Version: 1.6.8 Python Version: 2.7.7 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'south', 'reversion', 'modoboa', 'modoboa.core', 'modoboa.lib', 'modoboa.extensions.admin', 'modoboa.extensions.postfix_relay_domains', 'modoboa.extensions.limits', 'modoboa.extensions.postfix_autoreply', 'modoboa.extensions.webmail', 'modoboa.extensions.stats', 'modoboa.extensions.sievefilters', 'modoboa.extensions.amavis') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'modoboa.lib.middleware.AjaxLoginRedirect', 'modoboa.lib.middleware.CommonExceptionCatcher', 'modoboa.lib.middleware.ExtControlMiddleware', 'modoboa.lib.middleware.RequestCatcherMiddleware') Template error: In template /usr/lib64/python2.7/site-packages/modoboa/templates/registration/login.html, error at line 28 No module named versionfield.constants 18 : <li> 19 : <div class="col-lg-offset-4 col-lg-5 col-md-offset-4 col-md-5 col-sm-offset-4 col-sm-5"> 20 : <a href="#" class="thumbnail"> 21 : <img src="{% get_modoboa_logo %}" /> 22 : </a> 23 : </div> 24 : </li> 25 : </ul> 26 : </div> 27 : <div class=" divider"></div> 28 : <form method="post" action=" {% url 'core:login' %} " class="login-form form-horizontal"> 29 : {% csrf_token %} 30 : {% render_field form.username %} 31 : {% render_field form.password %} 32 : <input type="hidden" name="next" value="{{ next }}" /> 33 : <div class="form-group"> 34 : <div class="control-label col-lg-4 col-md-4 col-sm-4 "> 35 : </div> 36 : <div class="col-lg-5 col-md-5 col-sm-5"> 37 : <div class="checkbox"> 38 : <label class="checkbox" for="id_rememberme"> Traceback: File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response 112. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 52. response = view_func(request, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/core/views/auth.py" in dologin 60. "annoucements": events.raiseQueryEvent("GetAnnouncement", "loginpage") File "/usr/lib64/python2.7/site-packages/modoboa/lib/webutils.py" in _render_to_string 25. context_instance=template.RequestContext(request)) File "/usr/lib64/python2.7/site-packages/django/template/loader.py" in render_to_string 169. return t.render(context_instance) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 140. return self._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/defaulttags.py" in render 433. url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app) File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in reverse 536. return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in _reverse_with_prefix 403. self._populate() File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in _populate 303. lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args)) File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in callback 230. self._callback = get_callable(self._callback_str) File "/usr/lib64/python2.7/site-packages/django/utils/functional.py" in wrapper 32. result = func(*args) File "/usr/lib64/python2.7/site-packages/django/core/urlresolvers.py" in get_callable 97. mod = import_module(mod_name) File "/usr/lib64/python2.7/site-packages/django/utils/importlib.py" in import_module 40. __import__(name) File "/usr/lib64/python2.7/site-packages/modoboa/core/views/admin.py" in <module> 15. from modoboa.core.utils import new_version_available File "/usr/lib64/python2.7/site-packages/modoboa/core/utils.py" in <module> 14. from versionfield.constants import DEFAULT_NUMBER_BITS Exception Type: ImportError at /accounts/login/ Exception Value: No module named versionfield.constants ``` with pip list: ``` versionfield # pip list argparse (1.2.2) authres (0.602) Babel (1.3) carbon (0.9.12) chardet (2.3.0) dj-database-url (0.3.0) Django (1.6.8) django-reversion (1.8.5) django-tagging (0.3.3) django-versionfield (0.3.2, /root/src/django-versionfield) docopt (0.6.2) docutils (0.12) factory-boy (2.3.1) Genshi (0.7) Warning: cannot find svn location for gentoolkit==0.3.0.9-r2 gentoolkit (0.3.0.9-r2) ipaddr (2.1.10) layman (2.0.0) LEPL (5.1.3) lxml (3.4.1) modoboa (1.2.0-rc1) MySQL-python (1.2.5) ngxtop (0.0.2) passlib (1.6.2) pbr (0.8.2) pip (1.5.6) portage (2.2.14) psycopg2 (2.5.3) py-rrdtool (0.2.2) pycrypto (2.6.1) pydns (2.3.6) Warning: cannot find svn location for Pygments==2.0predev-20141124 Pygments (2.0predev-20141124) pyOpenSSL (0.13.1) pyparsing (2.0.1) pypolicyd-spf (1.3.1) pyspf (2.0.10) pytz (2014.9) pyzor (0.5.0) requests (2.4.3) rfc6266 (0.0.4) scons (2.3.0) setuptools (7.0) sievelib (0.8) six (1.8.0) South (1.0.1) stevedore (1.1.0) tabulate (0.7.2) Trac (1.0.1) Twisted (12.3.0) Twisted-Core (12.3.0) txAMQP (0.6.2) virtualenv (1.11.6) virtualenv-clone (0.2.4) virtualenvwrapper (4.3.1) webapp-config (1.52) whisper (0.9.12) wsgiref (0.1.2) zope.interface (4.1.1) ```
Author
Owner

@piwats commented on GitHub (Dec 8, 2014):

Also, no bootstrap files are found in the sitestatic dir after collectstatic.

<!-- gh-comment-id:66119124 --> @piwats commented on GitHub (Dec 8, 2014): Also, no bootstrap files are found in the sitestatic dir after collectstatic.
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

I don't understand the ImportError yet...

About static files, I forgot to mention into the documentation that it is necessary to modify the STATICFILES_DIRS variable (settings.py) by adding an extra path. Something like:

 # Additional locations of static files                                           
 STATICFILES_DIRS = (                                                             
     # Put strings here, like "/home/html/static" or "C:/www/django/static".      
     # Always use forward slashes, even on Windows.                               
     # Don't forget to use absolute paths, not relative paths.                    
     "<path/to/modoboa/install/dir>/bower_components",
 )

In your case, the appropriate path seems to be /usr/lib64/python2.7/site-packages/modoboa/bower_components.

<!-- gh-comment-id:66120157 --> @tonioo commented on GitHub (Dec 8, 2014): I don't understand the ImportError yet... About static files, I forgot to mention into the documentation that it is necessary to modify the `STATICFILES_DIRS` variable (settings.py) by adding an extra path. Something like: ``` python # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "<path/to/modoboa/install/dir>/bower_components", ) ``` In your case, the appropriate path seems to be `/usr/lib64/python2.7/site-packages/modoboa/bower_components`.
Author
Owner

@piwats commented on GitHub (Dec 8, 2014):

It seems django versionfields wont install itself in the site-package directory. Because it is now gone from my pip list.... and I don't know why.

Update: this is the output from the versionfield installation process:

# pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield
Obtaining django-versionfield from git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield
  Cloning https://github.com/tonioo/django-versionfield.git to ./src/django-versionfield
  Running setup.py (path:/var/www/mail/admin/src/django-versionfield/setup.py) egg_info for package django-versionfield

  Installing extra requirements: 'egg'
Installing collected packages: django-versionfield
  Running setup.py develop for django-versionfield

    Creating /usr/lib64/python2.7/site-packages/django-versionfield.egg-link (link to .)
    Adding django-versionfield 0.3.2 to easy-install.pth file

    Installed /var/www/mail/admin/src/django-versionfield
Successfully installed django-versionfield
Cleaning up...

Because I run this command in the /root folder, there might have been some access problems since the link file in the site-packages folder is linking to the /root/src/..... folder.

Reinstalling django versionfield ina accessible folder I now get this error:

Django Version: 1.6.8
Python Version: 2.7.7
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'south',
 'reversion',
 'modoboa',
 'modoboa.core',
 'modoboa.lib',
 'modoboa.extensions.admin',
 'modoboa.extensions.postfix_relay_domains',
 'modoboa.extensions.limits',
 'modoboa.extensions.postfix_autoreply',
 'modoboa.extensions.webmail',
 'modoboa.extensions.stats',
 'modoboa.extensions.sievefilters',
 'modoboa.extensions.amavis')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'modoboa.lib.middleware.AjaxLoginRedirect',
 'modoboa.lib.middleware.CommonExceptionCatcher',
 'modoboa.lib.middleware.ExtControlMiddleware',
 'modoboa.lib.middleware.RequestCatcherMiddleware')


Template error:
In template /usr/lib64/python2.7/site-packages/modoboa/extensions/admin/templates/admin/domains.html, error at line 7
   'str' object has no attribute 'group'
   1 : {% extends "admin/listing.html" %}{% load i18n admin_tags lib_tags %}


   2 : 


   3 : {% block pagetitle %}{% trans "Domains" %}{% endblock %}


   4 : 


   5 : {% block extra_css %}


   6 : {{ block.super }}


   7 :  {% extra_static_content "domains" "css" user %} 


   8 : {% endblock %}


   9 : 


   10 : {% block extra_js %}


   11 : {{ block.super }}


   12 : <script type="text/javascript">


   13 : $(document).ready(function() {


   14 :     admin = new Domains({


   15 :         load_page_url: "{% url 'admin:_domain_list' %}"


   16 :     });


   17 : });


Traceback:
File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.                     response = view_func(request, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/modoboa/extensions/admin/views/domain.py" in domains
  88.     return render(request, tplname, {"selection": "domains"})
File "/usr/lib64/python2.7/site-packages/django/shortcuts/__init__.py" in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/lib64/python2.7/site-packages/django/template/loader.py" in render_to_string
  169.         return t.render(context_instance)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  140.             return self._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  123.         return compiled_parent._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  123.         return compiled_parent._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  123.         return compiled_parent._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  123.         return compiled_parent._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  123.         return compiled_parent._render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render
  62.             result = block.nodelist.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  840.                 bit = self.render_node(node, context)
File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node
  78.             return node.render(context)
File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render
  1125.                     return func(*resolved_args, **resolved_kwargs)
File "/usr/lib64/python2.7/site-packages/modoboa/lib/templatetags/lib_tags.py" in extra_static_content
  91.                 "GetStaticContent", caller, st_type, user)
File "/usr/lib64/python2.7/site-packages/modoboa/lib/events.py" in raiseQueryEvent
  161.         tmp = callback(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/modoboa/lib/events.py" in wrapped_f
  98.             return f(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/modoboa/extensions/amavis/general_callbacks.py" in extra_static_content
  115.     if user.group == "SimpleUsers" or st_type != "js":

Exception Type: AttributeError at /admin/domains/
Exception Value: 'str' object has no attribute 'group'
<!-- gh-comment-id:66121960 --> @piwats commented on GitHub (Dec 8, 2014): It seems django versionfields wont install itself in the site-package directory. Because it is now gone from my pip list.... and I don't know why. Update: this is the output from the versionfield installation process: ``` # pip install -e git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield Obtaining django-versionfield from git+https://github.com/tonioo/django-versionfield.git#egg=django-versionfield Cloning https://github.com/tonioo/django-versionfield.git to ./src/django-versionfield Running setup.py (path:/var/www/mail/admin/src/django-versionfield/setup.py) egg_info for package django-versionfield Installing extra requirements: 'egg' Installing collected packages: django-versionfield Running setup.py develop for django-versionfield Creating /usr/lib64/python2.7/site-packages/django-versionfield.egg-link (link to .) Adding django-versionfield 0.3.2 to easy-install.pth file Installed /var/www/mail/admin/src/django-versionfield Successfully installed django-versionfield Cleaning up... ``` Because I run this command in the /root folder, there might have been some access problems since the link file in the site-packages folder is linking to the /root/src/..... folder. Reinstalling django versionfield ina accessible folder I now get this error: ``` Django Version: 1.6.8 Python Version: 2.7.7 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'south', 'reversion', 'modoboa', 'modoboa.core', 'modoboa.lib', 'modoboa.extensions.admin', 'modoboa.extensions.postfix_relay_domains', 'modoboa.extensions.limits', 'modoboa.extensions.postfix_autoreply', 'modoboa.extensions.webmail', 'modoboa.extensions.stats', 'modoboa.extensions.sievefilters', 'modoboa.extensions.amavis') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'modoboa.lib.middleware.AjaxLoginRedirect', 'modoboa.lib.middleware.CommonExceptionCatcher', 'modoboa.lib.middleware.ExtControlMiddleware', 'modoboa.lib.middleware.RequestCatcherMiddleware') Template error: In template /usr/lib64/python2.7/site-packages/modoboa/extensions/admin/templates/admin/domains.html, error at line 7 'str' object has no attribute 'group' 1 : {% extends "admin/listing.html" %}{% load i18n admin_tags lib_tags %} 2 : 3 : {% block pagetitle %}{% trans "Domains" %}{% endblock %} 4 : 5 : {% block extra_css %} 6 : {{ block.super }} 7 : {% extra_static_content "domains" "css" user %} 8 : {% endblock %} 9 : 10 : {% block extra_js %} 11 : {{ block.super }} 12 : <script type="text/javascript"> 13 : $(document).ready(function() { 14 : admin = new Domains({ 15 : load_page_url: "{% url 'admin:_domain_list' %}" 16 : }); 17 : }); Traceback: File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response 112. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 22. return view_func(request, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 99. response = view_func(request, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/extensions/admin/views/domain.py" in domains 88. return render(request, tplname, {"selection": "domains"}) File "/usr/lib64/python2.7/site-packages/django/shortcuts/__init__.py" in render 53. return HttpResponse(loader.render_to_string(*args, **kwargs), File "/usr/lib64/python2.7/site-packages/django/template/loader.py" in render_to_string 169. return t.render(context_instance) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 140. return self._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 123. return compiled_parent._render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/loader_tags.py" in render 62. result = block.nodelist.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 840. bit = self.render_node(node, context) File "/usr/lib64/python2.7/site-packages/django/template/debug.py" in render_node 78. return node.render(context) File "/usr/lib64/python2.7/site-packages/django/template/base.py" in render 1125. return func(*resolved_args, **resolved_kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/lib/templatetags/lib_tags.py" in extra_static_content 91. "GetStaticContent", caller, st_type, user) File "/usr/lib64/python2.7/site-packages/modoboa/lib/events.py" in raiseQueryEvent 161. tmp = callback(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/lib/events.py" in wrapped_f 98. return f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/extensions/amavis/general_callbacks.py" in extra_static_content 115. if user.group == "SimpleUsers" or st_type != "js": Exception Type: AttributeError at /admin/domains/ Exception Value: 'str' object has no attribute 'group' ```
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

It seems the --upgrade option mentioned in the documentation (when running pip to install the new version of Modoboa) is a bad idea. I've fixed the documentation. Can you try to install this dependency once again? I don't really understand this behaviour...

<!-- gh-comment-id:66139000 --> @tonioo commented on GitHub (Dec 8, 2014): It seems the `--upgrade` option mentioned in the documentation (when running pip to install the new version of Modoboa) is a bad idea. I've fixed the documentation. Can you try to install this dependency once again? I don't really understand this behaviour...
Author
Owner

@piwats commented on GitHub (Dec 8, 2014):

I've got it running:

  1. first I have uninstalled modoboa completely
  2. reinstalled django versionfield in a accassible directory on the server (why does it not installs in the system site-package dir?)
  3. installed modoboa with pip install --allow-external django-versionfield modoboa==1.2.0-rc1
  4. redeployed completely on the server to see how settings.py have changed

diff showed me, that the complete block before top_notifications was missing

TEMPLATE_CONTEXT_PROCESSORS = (
     'django.contrib.auth.context_processors.auth',
     'django.core.context_processors.debug',
     'django.core.context_processors.i18n',
     'django.core.context_processors.media',
     'django.core.context_processors.static',
     'django.core.context_processors.tz',
     'django.contrib.messages.context_processors.messages',

     'modoboa.core.context_processors.top_notifications',
 )

in the 1.1.7 settings.py this block was missing

<!-- gh-comment-id:66162056 --> @piwats commented on GitHub (Dec 8, 2014): I've got it running: 1. first I have uninstalled modoboa completely 2. reinstalled django versionfield in a accassible directory on the server (why does it not installs in the system site-package dir?) 3. installed modoboa with `pip install --allow-external django-versionfield modoboa==1.2.0-rc1` 4. redeployed completely on the server to see how settings.py have changed diff showed me, that the complete block before top_notifications was missing ``` TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'modoboa.core.context_processors.top_notifications', ) ``` in the 1.1.7 settings.py this block was missing
Author
Owner

@tonioo commented on GitHub (Dec 8, 2014):

Indeed, the documentation is not clear enough about this part. I think the best would be to tell people to run the deploy command even for upgrades.

I'll update the documentation.

<!-- gh-comment-id:66186747 --> @tonioo commented on GitHub (Dec 8, 2014): Indeed, the documentation is not clear enough about this part. I think the best would be to tell people to run the deploy command even for upgrades. I'll update the documentation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#602
No description provided.