Skip to content

Issues with numpy or script #3

@AbdurRehman1129

Description

@AbdurRehman1129

D:\Documents\BOT\upaisa\MathCaptchaSolver>python main.py

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "D:\Documents\BOT\upaisa\MathCaptchaSolver\main.py", line 1, in
from MathCaptchaSolver import CaptchaSolver
File "D:\Documents\BOT\upaisa\MathCaptchaSolver\MathCaptchaSolver.py", line 1, in
import cv2
File "C:\Users\ABDUR REHMAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\ABDUR REHMAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cv2_init_.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\importlib_init_.py", line 90, in import_module
return bootstrap.gcd_import(name[level:], package, level)
AttributeError: ARRAY_API not found
Traceback (most recent call last):
File "D:\Documents\BOT\upaisa\MathCaptchaSolver\main.py", line 1, in
from MathCaptchaSolver import CaptchaSolver
File "D:\Documents\BOT\upaisa\MathCaptchaSolver\MathCaptchaSolver.py", line 1, in
import cv2
File "C:\Users\ABDUR REHMAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cv2_init
.py", line 181, in
bootstrap()
File "C:\Users\ABDUR REHMAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cv2_init
.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\importlib_init
.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: numpy.core.multiarray failed to import

D:\Documents\BOT\upaisa\MathCaptchaSolver>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions