I have an error in installing django-socketio in windows virtualenv - django

I have a problem in installing django socket io, i changed django version to 3.2 and still the error
image of the error

Related

Django Server stuck after updating from python 3.9 to python 3.10 (using Django 4.1.5)

After upgrading python 3.9 to 3.10 the Django Server isn't working locally anymore (I'm using the Django Server Plugin for Pycharm). In my gitlab pipeline it seems to work allright.
Below you can see further details (click link to see screenshot):
With a Python 3.9 venv some errors occur, but the Django Server works nevertheless
With a Python 3.10 venv the same errors occur, but the Django Server doesn't start (after waiting 30 min)
(Working on linux and with pycharm)
I have the same requirements installed on both venv s except for the python version. I'd expect an error message, but it seems the execution is just stuck.

AttributeError: 'bool' object has no attribute 'rsplit' error on Django 2.x 3.x 4.x with postgres database

This error may point to a model but it is mainly an incompatibility with Postgres package.
In a new postgres databases it may include following error when doing initial migration: "AssertionError: database connection isn't set to UTC"
I got same error with Python 3.8 & 3.10 + Django 3 & 4.
As mentioned in AssertionError: database connection isn't set to UTC the issue is the psycopg2 version 2.9 which is incompatible with Django 2.x, 3.x & 4.x.
The solution is very simple:
You can downgrade to 2.8.6 using:
pip install psycopg2==2.8.6
or
pip install psycopg2-binary==2.8.6
Then it all works as usual.

How to solve Pylearn2 installation error?

I got this error when trying to install Pylearn2 software.
import error img
I follow the download & installation instruction at their website http://deeplearning.net/software/pylearn2/. I have already install setuptools module using anaconda.
setup tools module.
How do I solve this?
I'm on Ubuntu 18.04 with python 2.7

Python latest release 2.7 shows SSL error

I have downloaded & installed python latest 2.7 version (on date - 16th July). Initially i was unable to install even pip using cmd - python get-pip.py, somehow i managed to installed pip. Then i was unable to install any package using pip. It throws SSL error. Tried multiple ways to install but no go. No proxy or admin issues observed (admin confirmed the same).
Then i uninstalled & reinstalled 2.7.10 which resolved the issue. Please check the issue and resolve it.
This issue is mainly because of old unstable version, used 2.7.10 and then everything worked.

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)