avilum / secimport

eBPF Python runtime sandbox with seccomp (Blocks RCE).
https://avilum.github.io/secimport/
MIT License
183 stars 12 forks source link

ModuleNotFoundError: No module named 'numpy' #8

Closed seanmcfeely closed 2 years ago

seanmcfeely commented 2 years ago

Describe the bug ModuleNotFoundError: No module named 'numpy'

To Reproduce Steps to reproduce the behavior:

>>> import secimport
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".venv/lib/python3.10/site-packages/secimport/__init__.py", line 1, in <module>
    from secimport.sandbox_helper import secure_import
  File ".venv/lib/python3.10/site-packages/secimport/sandbox_helper.py", line 13, in <module>
    from numpy import isin
ModuleNotFoundError: No module named 'numpy'

Desktop (please complete the following information):

avilum commented 2 years ago

Fixed in 0.4.3 after this pull request: https://github.com/avilum/secimport/commit/33ba839ce6853f78aab24c28ef70202205ef27dd

Thanks a lot for opening the issue!