Re: cannot import name SortedDict
Le 2016-09-20 à 11:25, Michal Petrucha a écrit :. If that doesn't help, try checking if there are any stale leftover .pyc files, and try removing those. Good luck, Michal That did the trick... There was a old .pyc file in my Django source tree from a old branch... Thanks, Etienne -- Etienne Robillard tkad...@yandex.com http://www.isotopesoftware.ca/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/18550a4c-930b-5a53-0615-3074d05b9457%40yandex.com. For more options, visit https://groups.google.com/d/optout.
Re: cannot import name SortedDict
Hi Alessandro, I have replaced the only occurrence of SortedDict with collections.OrderedDict in app_plugins, but the issue persist. Is it possible that the templatetags module is being cached somehow by Django ? Thanks, Etienne Le 2016-09-20 à 08:27, Alessandro Madruga Correia a écrit : I don't know this lib, but did you can try this https://github.com/aljosa/django-tinymce/issues/114 -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 `-'(. .)`-'"O fanatismo é a única forma de força de vontade \_/acessível aos fracos." (Friedrich Nietzsche) -- Etienne Robillard tkad...@yandex.com http://www.isotopesoftware.ca/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a05452fe-38eb-eb64-972a-480939844807%40yandex.com. For more options, visit https://groups.google.com/d/optout.
Re: cannot import name SortedDict
On Tue, Sep 20, 2016 at 11:21:20AM -0400, Etienne Robillard wrote: > Hi Alessandro, > > I have replaced the only occurrence of SortedDict with > collections.OrderedDict in app_plugins, but the issue persist. > > Is it possible that the templatetags module is being cached somehow by > Django ? > > Thanks, > > Etienne No, Django caching never applies to Python code. However, as with any code change, you need to make sure to restart the Python process (i.e., if you're running under gunicorn or uwsgi, restart those, if you're using runserver, you might have to try restarting it – most of the time, runserver tries to reload itself automatically, but there are pathological cases where it doesn't work). If that doesn't help, try checking if there are any stale leftover .pyc files, and try removing those. Good luck, Michal -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20160920152542.GI6601%40konk.org. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Digital signature
Re: cannot import name SortedDict
On Tue, Sep 20, 2016 at 7:29 AM, Etienne Robillard wrote: > Hi, > > I'm trying to run Satchmo on Django 1.10. I have removed from the > app_plugins.templatetags.app_plugins > > module the deprecated import of SortedDict. Could this import statement be > cached by the Django cache backend ? > > I have replaced the only occurence of SortedDict by > collections.OrderedDict in app_plugins.library.py. > > Is there something obvious I'm missing ? > I don't know this lib, but did you can try this https://github.com/aljosa/django-tinymce/issues/114 -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 `-'(. .)`-'"O fanatismo é a única forma de força de vontade \_/acessível aos fracos." (Friedrich Nietzsche) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOofabcsTH7CYLZyBB8UtqJf1jvH2YZDav%3DD18WBd88s5VVXrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
cannot import name SortedDict
Hi, I'm trying to run Satchmo on Django 1.10. I have removed from the app_plugins.templatetags.app_plugins module the deprecated import of SortedDict. Could this import statement be cached by the Django cache backend ? I have replaced the only occurence of SortedDict by collections.OrderedDict in app_plugins.library.py. Is there something obvious I'm missing ? Thanks, Etienne Environment: Request Method: GET Request URL: http://localhost:9000/ Django Version: 1.10 Python Version: 2.7.9 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', 'django.contrib.sitemaps', 'satchmo_store.shop', 'satchmo_store', 'sorl.thumbnail', 'keyedcache', 'livesettings', 'l10n', 'satchmo_store.contact', 'tax', 'tax.modules.no', 'tax.modules.area', 'tax.modules.percent', 'shipping', 'product', 'payment', 'payment.modules.dummy', 'satchmo_ext.satchmo_toolbar', 'satchmo_utils', 'app_plugins') Installed Middleware: ['django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] Traceback: File "/home/erob/ncvs/django/django/core/handlers/exception.py" in inner 39. response = get_response(request) File "/home/erob/ncvs/django/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/home/erob/ncvs/django/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/erob/src/livestore/trunk/lib/satchmo_store/shop/views/home.py" in home 42. return render(request, template, ctx) File "/home/erob/ncvs/django/django/shortcuts.py" in render 30. content = loader.render_to_string(template_name, context, request, using=using) File "/home/erob/ncvs/django/django/template/loader.py" in render_to_string 67. template = get_template(template_name, using=using) File "/home/erob/ncvs/django/django/template/loader.py" in get_template 18. engines = _engine_list(using) File "/home/erob/ncvs/django/django/template/loader.py" in _engine_list 72. return engines.all() if using is None else [engines[using]] File "/home/erob/ncvs/django/django/template/utils.py" in all 89. return [self[alias] for alias in self] File "/home/erob/ncvs/django/django/template/utils.py" in __getitem__ 80. engine = engine_cls(params) File "/home/erob/ncvs/django/django/template/backends/django.py" in __init__ 30. options['libraries'] = self.get_templatetag_libraries(libraries) File "/home/erob/ncvs/django/django/template/backends/django.py" in get_templatetag_libraries 48. libraries = get_installed_libraries() File "/home/erob/ncvs/django/django/template/backends/django.py" in get_installed_libraries 113. for name in get_package_libraries(pkg): File "/home/erob/ncvs/django/django/template/backends/django.py" in get_package_libraries 130. "trying to load '%s': %s" % (entry[1], e) Exception Type: InvalidTemplateLibrary at / Exception Value: Invalid template library specified. ImportError raised when trying to load 'app_plugins.templatetags.app_plugins': cannot import name SortedDict -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ceb9687-a22f-4852-8976-90aeabf5cc0a%40yandex.com. For more options, visit https://groups.google.com/d/optout.