Python Shell Apps aren't loaded yet

I thought it should be something outside apps… but Idk what could it be

If you don’t have any of your apps listed in the INSTALLED_APPS setting, then the next thing to check would be version compatibility among your third-party apps. Please post the output from a pip list command.

1 Like

pip list from my server user:

django@ubuntu-s-1vcpu-512mb-10gb-ams3-01:~$ pip list
Package             Version
------------------- --------------
attrs               23.2.0
Automat             22.10.0
Babel               2.10.3
bcc                 0.29.1
bcrypt              3.2.2
blinker             1.7.0
certifi             2023.11.17
chardet             5.2.0
click               8.1.6
cloud-init          24.1.3
colorama            0.4.6
command-not-found   0.3
configobj           5.0.8
constantly          23.10.4
cryptography        41.0.7
dbus-python         1.3.2
distlib             0.3.8
distro              1.9.0
distro-info         1.7+build1
filelock            3.13.1
httplib2            0.20.4
hyperlink           21.0.0
idna                3.6
incremental         22.10.0
Jinja2              3.1.2
jsonpatch           1.32
jsonpointer         2.0
jsonschema          4.10.3
launchpadlib        1.11.0
lazr.restfulclient  0.14.6
lazr.uri            1.0.6
markdown-it-py      3.0.0
MarkupSafe          2.1.5
mdurl               0.1.2
netaddr             0.8.0
netifaces           0.11.0
oauthlib            3.2.2
pexpect             4.9.0
pip                 24.0
platformdirs        4.2.0
ptyprocess          0.7.0
pyasn1              0.4.8
pyasn1-modules      0.2.8
Pygments            2.17.2
PyGObject           3.48.2
PyHamcrest          2.1.0
PyJWT               2.7.0
pyOpenSSL           23.2.0
pyparsing           3.1.1
pyrsistent          0.20.0
pyserial            3.5
python-apt          2.7.7+ubuntu1
python-debian       0.1.49+ubuntu2
python-magic        0.4.27
pytz                2024.1
PyYAML              6.0.1
requests            2.31.0
rich                13.7.1
service-identity    24.1.0
setuptools          68.1.2
six                 1.16.0
sos                 4.5.6
ssh-import-id       5.11
supervisor          4.2.5
systemd-python      235
Twisted             24.3.0
typing_extensions   4.10.0
ubuntu-pro-client   8001
ufw                 0.36.2
unattended-upgrades 0.1
urllib3             2.0.7
virtualenv          20.25.0+ds
wadllib             1.3.6
wheel               0.42.0
zope.interface      6.1

When I activate env it is different:

Package               Version
--------------------- --------
asgiref               3.8.1
certifi               2024.6.2
cffi                  1.16.0
charset-normalizer    3.3.2
crispy-bootstrap5     2024.2
cryptography          42.0.8
defusedxml            0.7.1
Django                4.1.13
django-allauth        0.52.0
django-configurations 2.5.1
django-crispy-forms   2.1
django-embed-video    1.4.10
gunicorn              22.0.0
idna                  3.7
mysqlclient           2.2.4
oauthlib              3.2.2
packaging             24.0
Pillow                9.4.0
pip                   24.0
pycparser             2.22
PyJWT                 2.8.0
python3-openid        3.2.0
pytz                  2023.4
requests              2.32.3
requests-oauthlib     2.0.0
setuptools            70.0.0
sqlparse              0.5.0
urllib3               2.2.1

And from my dev environment:

Package                          Version
-------------------------------- ---------
asgiref                          3.6.0
certifi                          2022.12.7
cffi                             1.15.1
charset-normalizer               3.0.1
crispy-bootstrap5                0.7
cryptography                     39.0.1
defusedxml                       0.7.1
dj-database-url                  1.2.0
Django                           4.1.6
django-allauth                   0.52.0
django-bootstrap-datepicker-plus 5.0.3
django-configurations            2.4
django-crispy-forms              1.14.0
django-elasticsearch-dsl         7.3
django-embed-video               1.4.8
elasticsearch                    7.17.9
elasticsearch-dsl                7.4.1
idna                             3.4
oauthlib                         3.2.2
Pillow                           9.4.0
pip                              22.3.1
pycparser                        2.21
pydantic                         1.10.5
PyJWT                            2.6.0
python-dateutil                  2.8.2
python3-openid                   3.2.0
pytz                             2023.3
requests                         2.28.2
requests-oauthlib                1.3.1
setuptools                       65.5.1
six                              1.16.0
sqlparse                         0.4.3
typing_extensions                4.5.0
ud-py-moneyed                    0.6.2
urllib3                          1.26.14
wheel                            0.38.4

There are no versions of Django 4.1 listed as being compatible with Python 3.12. I suggest you install Python 3.11. See FAQ: Installation | Django documentation | Django

Thank you very much for your help!
I still cannot resolve my situation. But now I understand that the reason is somewhere there)))
I have installed python 3.10, 11 and 12 on my local machine and try various combinations with versions of django. Sometimes python manage.py check shows me ‘Apps are not ready’ and sometimes ‘Models…’
And now after all previously locally working combination of python 3.10 and django 4.1.6 isn’t working now(((
Why is it so hard? How to avoid those problem in general?

If you’ve got a previous combination that works, then I’d go back to that and start working forward incrementally.

Also, for each addition and update, you may want to look at the packages individually to see what versions of Python and Django are supported by it.

Because there are about three dozen different packages you’ve got listed here, each with their own constraints, requirements, and interactions.

Don’t try to do too much at once. When you’re going through an upgrade cycle, don’t mix that with any other code updates.

1 Like