djangonauts / django-hstore

PostgreSQL HStore support for Django.
http://django-hstore.readthedocs.io/
Other
517 stars 142 forks source link

'module' object has no attribute 'subclassing' in django 1.10 #154

Open patrickohemeng opened 8 years ago

patrickohemeng commented 8 years ago

I keep getting this issue after upgrading from django 1.9 to 1.10.

'module' object has no attribute 'subclassing'

looks like the file subclassing.py is missing in django.19 class HStoreDescriptor(models.fields.subclassing.Creator):

matthewh commented 8 years ago

+1 to this. I'm seeing the same issue with 1.10.

shacker commented 8 years ago

+1 - Django upgrade blocker for our team.

nemesifier commented 7 years ago

Pull request #151 partially addressed this issue but some tests in the travis build are still failing. If anyone can help out, please do so.

angelo-romano commented 7 years ago

Hello all, experiencing this issue as well with Django 1.10, which basically makes the whole project unusable at this stage. I would say it's pretty urgent and it should be fixed with high priority, given its blocking nature.

My traceback:

  File "/home/angelo/.virtualenvs/onback/lib/python3.5/site-packages/django_hstore/models.py", line 2, in <module>
    from .fields import DictionaryField  # noqa
  File "/home/angelo/.virtualenvs/onback/lib/python3.5/site-packages/django_hstore/fields.py", line 11, in <module>
    from .descriptors import HStoreDescriptor, HStoreReferenceDescriptor, SerializedDictDescriptor
  File "/home/angelo/.virtualenvs/onback/lib/python3.5/site-packages/django_hstore/descriptors.py", line 12, in <module>
    class HStoreDescriptor(models.fields.subclassing.Creator):
AttributeError: module 'django.db.models.fields' has no attribute 'subclassing'
shacker commented 7 years ago

@angelo-romano It looks like my team is temporarily working around this by installing from github rather than pypi (i.e. they seem to have it fixed in recent commits, but the change hasn't made it to pypi yet).

pip install git+https://github.com/djangonauts/django-hstore.git

nemesifier commented 7 years ago

please read #161

patrickohemeng commented 7 years ago

@nemesisdesign Please when will changes be made to pypi?

nemesifier commented 7 years ago

@Farcorn please read #161

scheung38 commented 7 years ago

Hi this issue is still open?

    class HStoreDescriptor(models.fields.subclassing.Creator):
 AttributeError: 'module' object has no attribute 'subclassing'

pip install git+https://github.com/djangonauts/django-hstore.git gives another error:

"hstore type not found in the database. " 
django.db.utils.ProgrammingError: hstore type not found in the database. please install it from 
your 'contrib/hstore.sql' file

But where is this contrib/hstore.sql file?