Error installing Django package django-tenants - django

When attempting to install django-tenants via "pipenv install django-tenants" I get the following error:
_lib.ERR_load_RAND_strings()
AttributeError: module 'lib' has no attribute 'ERR_load_RAND_strings'
This is with Django version 3.1.13 and python is 3.9.2.
Any ideas about how to fix this?

Related

AttributeError: module 'colorama' has no attribute 'init'

I have Python version 3.8 and trying to deploy Django model to Apache2 server and getting this error. How can I resolve this?
I have solved it by upgrading colorama version.

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3

I tried re-installing python 2 in my environment.
Re-installed pip, setuptools
when I try to run python manage.py runserver it throws the error
django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3
I tried installing sqlite 3 , its already installed
I tried installing pysqlite2 , its already installed
both python 2 and installed in my ubuntu 16.04, django version = 1.8.X
Still unaware of what cause the error?
For Ubuntu users:
Download the source file of the Python version that you need, from source. Extract the folder somewhere, cd into the folder,
./configure
make
make install
this should fix your issue.
(This can be done outside VE, i just had the same issues with python 3.4)

django oscar ImportError raised when trying to load 'treebeard.templatetags.admin_tree': No module named util

When installing the django-oscar on MAC. The make oscar complains
Django Version: 1.9
Exception Type: InvalidTemplateLibrary
Exception Value:
Invalid template library specified. ImportError raised when trying to load 'treebeard.templatetags.admin_tree': No module named util
If you run the sample projects just change the command from:
$ make sandbox
to:
$ make install
$ pip install Django==1.8.7
$ make build_sandbox
and it will work
Django 1.9 is not compatible yet. Suggest using django 1.8. So just uninstall django 1.9
pip uninstall django
then install lower version of django
pip install "django<1.9"
and it work.

How to install phonenumbers for Django

there!
I am trying to run an imported app on my Ubuntu. But the error message displayed on the screen says No module named phonenumbers
So I tried to install it, by:
sudo easy_install phonenumbers
But again, it throws error, and says ImportError: No module named shortdata
Then I tried to run
sudo easy_install shortdata
This time it gives me:
error: Could not find suitable distribution for Requirement.parse('shortdata')
I cannot figure out how to install 'shortdata'.
What can I do, to make 'phonenumbers' installed?
The issue happening because the module 'shortdata' is get missing while installation. You can correct the issue by installing from source and manually copy the module 'shortdata'.
1)Download source from https://github.com/daviddrysdale/python-phonenumbers
2)Install phonenumbers using setup.py (python setup.py install)
3)Manually copy folder 'shortdata' from python-phonenumbers-dev/python/phonenumbers in source to your installed location(python2.7/site-packages/phonenumbers-5.7b1-py2.7.egg/phonenumbers)

Django-allauth: Error: No module named uni_form

I am just installed django-alluauth .
There is an example inside the project .When I am trying to run
python manage.py syncdb
I am getting an error Error: No module named uni_form.
I didn't change anything .I dont know why I am getting this error .Please help me out .
Thanks
This means you don't have django-uni-form installed:
pip install django-uni-form
This package is probably a dependency of allauth. The package is used to generate forms, but beware that the package is currently deprecated.
I would recommend using django-crispy-forms instead.
pip install django-crispy-forms
This would however probably require changing some code in allauth, so it is easier to just install django-uni-form.