I get the following errors when importing psutil in ProcessQueue. I'm not certain whether it's an issue with psutil or with the upgrade to AzFunctions 4.x.
Result: Failure Exception: ImportError: version conflict: '/home/site/wwwroot/.python_packages/lib/site-packages/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so' C extension module was built for another version of psutil (5.9.3 instead of 5.9.4); you may try to 'pip uninstall psutil', manually remove /home/site/wwwroot/.python_packages/lib/site-packages/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so or clean the virtual env somehow, then reinstall. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: https://aka.ms/functions-modulenotfound
Stack: File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 357, in _handle__function_load_request func = loader.load_function(
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 48, in call raise extend_exception_message(e, message)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 44, in call return func(*args, **kwargs)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/loader.py", line 132, in load_function mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/site/wwwroot/ProcessQueue/__init__.py", line 10, in <module> import psutil
File "/home/site/wwwroot/.python_packages/lib/site-packages/psutil/__init__.py", line 241, in <module> raise ImportError(msg)
I get the following errors when importing
psutil
inProcessQueue
. I'm not certain whether it's an issue withpsutil
or with the upgrade to AzFunctions 4.x.