django-seo icon indicating copy to clipboard operation
django-seo copied to clipboard

Does not work in django v1.8.0

Open ghost opened this issue 9 years ago • 11 comments

I got this error bellow:

Traceback (most recent call last):
  File "base/seo.py", line 3, in <module>
    from rollyourown import seo
  File "/home/foo/.virtualenvs/retie/local/lib/python2.7/site-packages/rollyourown/seo/__init__.py", line 4, in <module>
    from rollyourown.seo.base import Metadata, Tag, KeywordTag, MetaTag, Raw, Literal, get_metadata, get_linked_metadata
  File "/home/foo/.virtualenvs/retie/local/lib/python2.7/site-packages/rollyourown/seo/base.py", line 17, in <module>
    from django.utils.hashcompat import md5_constructor
ImportError: No module named hashcompat

ghost avatar Jun 24 '15 06:06 ghost

Same for Django 1.7:

$ pip freeze | grep -i django
Django==1.7.4
  File "/home/oleg/.virtualenvs/prj/local/lib/python2.7/site-packages/rollyourown/seo/__init__.py", line 4, in <module>
    from rollyourown.seo.base import Metadata, Tag, KeywordTag, MetaTag, Raw, Literal, get_metadata, get_linked_metadata
  File "/home/oleg/.virtualenvs/prj/local/lib/python2.7/site-packages/rollyourown/seo/base.py", line 17, in <module>
    from django.utils.hashcompat import md5_constructor
ImportError: No module named hashcompat

ffeast avatar Jul 04 '15 15:07 ffeast

Has anyone manage to have a look at this?

felixcheruiyot avatar Jul 16 '15 20:07 felixcheruiyot

Module hashcompat was removed in Django 1.6. Check this out https://github.com/romansalin/django-seo2

romansalin avatar Jul 19 '15 17:07 romansalin

To romansalin, what excactly does you comment mean in this. Should I just take your repo instead of this? Can it be installed with pip? Why is this repo not fixed on this issue of being compatible with Django 1.9? I appreciate an answer to this, since I want to decide what to do with my seo.

sabinem avatar Nov 25 '15 07:11 sabinem

Anybody got an answer on this issue? Having the same problem with Django 1.8.5

pip freeze | grep Django==
Django==1.8.5

python manage.py syncdb
  File "/Users/saverio/workspace/ontdek/oba/lib/python2.7/site-packages/rollyourown/seo/base.py", line 17, in <module>
    from django.utils.hashcompat import md5_constructor
ImportError: No module named hashcompat

jcastiarena avatar Dec 24 '15 15:12 jcastiarena

I believe the file in https://pypi.python.org/simple/djangoseo/ is outdated (has the unfixed code). Pip would take it from there. Try pip install -v -v -v djangoseo (see http://stackoverflow.com/a/17153977/2158516)

jcastiarena avatar Dec 24 '15 16:12 jcastiarena

@sabinem, actually it is the fork from this repo, which is no longer maintained. I made there some improves and bugfixes. Currently this package can't be installed with pip, but I'm going to add it to the pypi. The compatibility with Django 1.9 will be added soon too.

romansalin avatar Dec 24 '15 17:12 romansalin

@romansalin thanks. Any estimation on when will you be able to add it pypi?

jcastiarena avatar Dec 24 '15 18:12 jcastiarena

@jcastiarena here is the new repo https://github.com/romansalin/django-seo2. I've published this on PyPI, so now you can install django-seo2 via pip: pip install django-seo2. Supported Django 1.9 with python 2 and 3.

romansalin avatar Jan 05 '16 09:01 romansalin

There is a major bug in the django-seo2 package, but @romansalin has stopped responding and wont publish the fix. Its been broken for almost a year now.

Is there any other forks that have better support?

mic159 avatar Dec 06 '16 01:12 mic159

Any other forks that have fixed the hashcompat issue? It's not working in Django 1.6.5 also

snig-b avatar Jun 01 '17 10:06 snig-b