encutils no longer published separately from cssutils

209 views
Skip to first unread message

Andrew Horwitz

unread,
Apr 29, 2014, 3:52:13 PM4/29/14
to merengue-...@googlegroups.com
On trying to install Merengue with the requirements.txt list:

Downloading/unpacking encutils (from merengue)
Could not find any downloads that satisfy the requirement encutils (from merengue)
Cleaning up...
No distributions at all found for encutils (from merengue)

Looking at the encutils site (http://cthedot.de/encutils/):

Encutils (from April 2014) is only available as part of cssutils. Install the latest version via pip: pip install cssutils .

Installing by commenting out encutils (and still installing cssutils under "Django applications") works and creating a project works as well, but running syncdb --migrate throws this:

$ python manage.py syncdb --migrate
Traceback (most recent call last):
  File "manage.py", line 70, in <module>
    execute_manager(settings)
  File "merengueTest/merengueTest/merengue/base/management/__init__.py", line 166, in execute_manager
    utility.execute()
  File "merengueTest/merengueTest/merengue/base/management/__init__.py", line 136, in execute
    command = self.fetch_command(subcommand)
  File "merengueTest/merengueTest/merengue/base/management/__init__.py", line 87, in fetch_command
    klass = django_management.load_command_class(app_name, subcommand)
  File "merengueTest/merengueEnv/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/management/__init__.py", line 67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "merengueTest/merengueEnv/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "merengueTest/merengueEnv/lib/python2.7/site-packages/South-0.7.3-py2.7.egg/south/management/commands/__init__.py", line 10, in <module>
    import django.template.loaders.app_directories
  File "merengueTest/merengueEnv/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/template/loaders/app_directories.py", line 23, in <module>
    raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions.ImproperlyConfigured: ImportError sorl.thumbnail: cannot import name smart_text

Is there a workaround available?

Walter Prins

unread,
Jun 20, 2014, 4:21:19 PM6/20/14
to merengue-...@googlegroups.com
Just ran into this myself.  See here:

In short: Edit /usr/local/lib/python2.7/dist-packages/sorl/thumbnail/helpers.py

Change 
from django.utils.encoding import smart_text
To

try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text

 Fixed!
Reply all
Reply to author
Forward
0 new messages