Guest User

Untitled

a guest
Feb 3rd, 2024
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/__init__.py", line 24, in <module>
  3. from . import multiarray
  4. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
  5. from . import overrides
  6. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/overrides.py", line 8, in <module>
  7. from numpy.core._multiarray_umath import (
  8. ImportError: dlopen failed: cannot locate symbol "PyExc_ValueError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311.so"...
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/__init__.py", line 130, in <module>
  14. from numpy.__config__ import show as show_config
  15. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/__config__.py", line 4, in <module>
  16. from numpy.core._multiarray_umath import (
  17. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/__init__.py", line 50, in <module>
  18. raise ImportError(msg)
  19. ImportError:
  20.  
  21. IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
  22.  
  23. Importing the numpy C-extensions failed. This error can happen for
  24. many reasons, often due to issues with your setup or how NumPy was
  25. installed.
  26.  
  27. We have compiled some common reasons and troubleshooting tips at:
  28.  
  29. https://numpy.org/devdocs/user/troubleshooting-importerror.html
  30.  
  31. Please note and check the following:
  32.  
  33. * The Python version is: Python3.11 from "/data/data/com.termux/files/usr/bin/python"
  34. * The NumPy version is: "1.26.3"
  35.  
  36. and make sure that they are the versions you expect.
  37. Please carefully study the documentation linked above for further help.
  38.  
  39. Original error was: dlopen failed: cannot locate symbol "PyExc_ValueError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311.so"...
  40.  
  41.  
  42. The above exception was the direct cause of the following exception:
  43.  
  44. Traceback (most recent call last):
  45. File "/storage/emulated/0/telegramBot/main.py", line 16, in <module>
  46. from langchain.chat_models.gigachat import GigaChat
  47. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/langchain/chat_models/__init__.py", line 23, in <module>
  48. from langchain.utils.interactive_env import is_interactive_env
  49. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/langchain/utils/__init__.py", line 25, in <module>
  50. from langchain.utils.math import cosine_similarity, cosine_similarity_top_k
  51. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/langchain/utils/math.py", line 1, in <module>
  52. from langchain_community.utils.math import (
  53. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/langchain_community/utils/math.py", line 5, in <module>
  54. import numpy as np
  55. File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/numpy/__init__.py", line 135, in <module>
  56. raise ImportError(msg) from e
  57. ImportError: Error importing numpy: you should not try to import numpy from
  58. its source directory; please exit the numpy source tree, and relaunch
  59. your python interpreter from there.
Advertisement
Add Comment
Please, Sign In to add comment