I've installed python3 and boto3, and i want to run my python script from Matillion but it complains about boto3 module not being available:
Traceback (most recent call last):
File "/tmp/interpreter-input-106f3f10-6834-4b31-bfca-ea489348086f.tmp", line 15, in <module>
import boto3
ModuleNotFoundError: No module named 'boto3'
Also, if i create simple test.py and execute it on server it will through the same error.
Package is under this location: /usr/local/lib/python3.6/site-packages/boto3
and it has following permissions:
drwx------ 10 root root 210 Mar 10 06:21 boto3
drwx------ 2 root root 133 Mar 10 06:21 boto3-1.21.16.dist-info
Any idea what could be an issue?
As @Tzane commented, issue was related to paths.
The path where i had boto3 installed (
/usr/local/lib/python3.6/site-packages/boto3
) was not in python paths. So, first uninstall boto3:pip uninstall boto3
then install in on new location:
pip install --target=/usr/lib/python3.6/site-packages boto3