django-nonrel / djangotoolbox

Django tools for building nonrel backends
BSD 3-Clause "New" or "Revised" License
200 stars 125 forks source link

importlib issue after installing django 1.11 #81

Open davidtoluhi opened 7 years ago

davidtoluhi commented 7 years ago

I get the following error everytime I try to run the server after upgrading to django to version 1.11.

..../models.py", line 5, in from djangotoolbox.fields import ListField File "/anaconda/lib/python2.7/site-packages/djangotoolbox/fields.py", line 4, in from django.utils.importlib import import_module ImportError: No module named importlib

after a little research, I found out "django.utils.importlib is a compatibility library for when Python 2.6 was still supported. It has been obsolete since Django 1.7, which dropped support for Python 2.6, and is removed in 1.9 per the deprecation cycle." source

but when I tried running the server afterwards, I got this error:

from djangotoolbox.fields import ListField File "/anaconda/lib/python2.7/site-packages/djangotoolbox/fields.py", line 6, in from django.db.models.fields.subclassing import Creator ImportError: No module named subclassing

can anyone help please?

kavdev commented 7 years ago

@dakoto747 this package is very much unmaintained since Django 1.7. I have plans to build something like this for modern django, but that's pretty far into the future on my roadmap

davidtoluhi commented 7 years ago

So sorry for the late reply. Thanks for letting me know.

kavdev commented 7 years ago

No worries!

nandorrb commented 6 years ago

@kavdev which package do you recommend then? I'm using:

asgiref==2.3.0
async-timeout==2.0.1
attrs==17.4.0
autobahn==18.4.1
Automat==0.6.0
certifi==2018.1.18
channels==2.1.1
chardet==3.0.4
constantly==15.1.0
coreapi==2.3.3
coreschema==0.0.4
Cython==0.28.2
daphne==2.1.1
dataclasses==0.6
decorator==4.3.0
dj-static==0.0.6
Django==2.0.3
django-background-tasks==1.1.13
django-chartit==0.2.9
django-classy-tags==0.8.0
django-coap==0.1.0
django-compat==1.0.15
django-formtools==2.1
django-mongodb-engine==0.6.0
django-rest-swagger==2.1.2
django-sekizai==0.10.0
django-treebeard==4.2.1
djangocms-admin-style==1.2.7
djangorestframework==3.7.7
djangotoolbox==1.8.0
djongo==1.2.28
docopt==0.6.2
dweepy==0.3.0
et-xmlfile==1.0.1
hbmqtt==0.9.2
hyperlink==18.0.0
idna==2.6
incremental==17.5.0
ipython-genutils==0.2.0
itypes==1.1.0
jdcal==1.4
Jinja2==2.10
jsonschema==2.6.0
jupyter-core==4.4.0
MarkupSafe==1.0
mongoengine==0.15.0
nbformat==4.4.0
numpy==1.14.3
openapi-codec==1.3.2
openpyxl==2.5.3
paho-mqtt==1.3.1
passlib==1.7.1
pipenv==11.10.1
plotly==2.5.1
pluggy==0.6.0
py==1.5.3
pymongo==3.6.1
pystan==2.17.1.0
pytz==2018.3
PyYAML==3.12
requests==2.18.4
simplejson==3.13.2
six==1.11.0
sqlparse==0.2.4
static3==0.7.0
tox==3.0.0
traitlets==4.3.2
transitions==0.6.4
Twisted==17.9.0
txaio==2.10.0
uritemplate==3.0.0
urllib3==1.22
virtualenv==15.2.0
virtualenv-clone==0.3.0
websockets==4.0.1
whitenoise==3.3.1
zope.interface==4.5.0

with python3, just trying to implement mongodb

kavdev commented 6 years ago

@nandorrb sorry, I haven't had much spare time to dedicate to open source recently. This page of the django docs seems to have updated options though