Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
patrickohemeng opened this issue Oct 22, 2016 · 9 comments
Open

Comments

@patrickohemeng
Copy link

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
Copy link

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

@shacker
Copy link

shacker commented Oct 31, 2016

+1 - Django upgrade blocker for our team.

@nemesifier
Copy link
Member

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
Copy link

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
Copy link

shacker commented Jan 30, 2017

@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
Copy link
Member

please read #161

@patrickohemeng
Copy link
Author

patrickohemeng commented Feb 22, 2017

@nemesisdesign Please when will changes be made to pypi?

@nemesifier
Copy link
Member

@Farcorn please read #161

@scheung38
Copy link

scheung38 commented May 27, 2017

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?

caktus-philip added a commit to unicef/etools that referenced this issue Jul 6, 2017
…lity

(hstore has been native since django 1.8)

Removing this library removes an impediment to upgrading to Django 1.10.
django-hstore isn't compatible with Django 1.10. The author is aware of this
but has no more time to maintain the module and is looking for a new
maintainer.
djangonauts/django-hstore#154
djangonauts/django-hstore#161

Also fixed all flake8 complaints in the file I touched (partners/models.py).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants