Issue with python package installation on erpnext production setup?

Hi,

I face issue with installing package on erpnext custom app.

Only on queue job, I got this issue, of not installing package. In other part of the flow there is no error.

In RQ jobs i got this error.

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/rq/job.py", line 486, in _deserialize_data
    self._func_name, self._instance, self._args, self._kwargs = self.serializer.loads(self.data)
  File "/home/frappe/frappe-bench/apps/strategy_custom_app/strategy_custom_app/strategy_custom_app/api/geoserver_layers.py", line 8, in <module>
    from pyproj import Transformer
ModuleNotFoundError: No module named 'pyproj'

But actullay I have installed,

docker exec -it erpnext-one-backend-1 bash
frappe@c2d43be7c360:~/frappe-bench$ source env/bin/activate
(env) frappe@c2d43be7c360:~/frappe-bench$ pip show pyproj
Name: pyproj
Version: 3.7.0
Summary: Python interface to PROJ (cartographic projections and coordinate transformations library)
Home-page: https://github.com/pyproj4/pyproj
Author: 
Author-email: Jeff Whitaker <jeffrey.s.whitaker@noaa.gov>
License: MIT
Location: /home/frappe/frappe-bench/env/lib/python3.10/site-packages
Requires: certifi
Required-by: 

Server Setup Details:

  • docker containerized setup
  • Erpnext and Frappe version 15