Wind River Support Network

HomeDefectsLIN1019-2473
Not to be fixed

LIN1019-2473 : python module missing: No module named 'psycopg2'

Created: Sep 3, 2019    Updated: Apr 29, 2021
Resolved Date: Apr 29, 2021
Found In Version: 10.19.45.1
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

1) --machines qemux86-64 --distro wrlinux --dl-layers
2) in local.conf:
IMAGE_INSTALL_append = " python3-django "
3) bitbake wrlinux-image-std
4) runqemu
root@qemux86-64:~# python3
Python 3.7.4 (default, Nov 11 2019, 10:15:16) 
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import django.contrib.postgres.forms
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.7/site-packages/django/contrib/postgres/forms/__init__.py", line 4, in <module>
    from .ranges import *  # NOQA
  File "/usr/lib64/python3.7/site-packages/django/contrib/postgres/forms/ranges.py", line 1, in <module>
    from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
ModuleNotFoundError: No module named 'psycopg2'

Steps to Reproduce

1)    --machines qemux86-64 --template feature/linux-yocto-dev,feature/userspace-next,feature/toolchain-next --distro wrlinux  --dl-layers
2) in local.conf:
   IMAGE_INSTALL_append = " python3-django " 
3) bitbake wrlinux-image-std 
4) see description 
Live chat
Online