This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
ISSUE-20173: [Bug] Python instance doesn't install dependency from requirements.txt #5738
Open
2 tasks done
Labels
Original Issue: apache#20173
Search before asking
Version
master, commit id: 35e9897
Minimal reproduce step
What did you expect to see?
python instance run successfully
What did you see instead?
[2023-04-24 09:25:45 +0000] [INFO] util.py: Failed to import class exclamation from path download/pulsar_functions
[2023-04-24 09:25:45 +0000] [INFO] util.py: No module named 'requests'
Traceback (most recent call last):
File "/pulsar/instances/python-instance/util.py", line 40, in import_class
return import_class_from_path(from_path, full_class_name)
File "/pulsar/instances/python-instance/util.py", line 60, in import_class_from_path
mod = importlib.import_module(class_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/pulsar/download/pulsar_functions/exclamation/src/exclamation.py", line 1, in
import requests # just check dependencies is installed
ModuleNotFoundError: No module named 'requests'
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: