-
Notifications
You must be signed in to change notification settings - Fork 496
Description
I am beginner in this area. I am trying to run python create_database.py getting the error as
ImportError: unstructured package not found, please install it with pip install unstructured
when i tried to install through `pip install unstructured . Got the below error
pip install unstructured
Collecting unstructured
Using cached unstructured-0.16.20-py3-none-any.whl.metadata (24 kB)
Collecting chardet (from unstructured)
Using cached chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)
Collecting filetype (from unstructured)
Using cached filetype-1.2.0-py2.py3-none-any.whl.metadata (6.5 kB)
Collecting python-magic (from unstructured)
Using cached python_magic-0.4.27-py2.py3-none-any.whl.metadata (5.8 kB)
Collecting lxml (from unstructured)
Using cached lxml-5.3.1-cp313-cp313-win_amd64.whl.metadata (3.8 kB)
Collecting nltk (from unstructured)
Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)
Requirement already satisfied: requests in c:\users\bvallab\appdata\local\pypoetry\cache\virtualenvs\rag-simple-fkl3-soy-py3.13\lib\site-packages (from unstructured) (2.32.3)
Collecting beautifulsoup4 (from unstructured)
Using cached beautifulsoup4-4.13.3-py3-none-any.whl.metadata (3.8 kB)
Collecting emoji (from unstructured)
Using cached emoji-2.14.1-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: dataclasses-json in c:\users\bvallab\appdata\local\pypoetry\cache\virtualenvs\rag-simple-fkl3-soy-py3.13\lib\site-packages (from unstructured) (0.6.7)
Collecting python-iso639 (from unstructured)
Using cached python_iso639-2025.2.8-py3-none-any.whl.metadata (14 kB)
Collecting langdetect (from unstructured)
Using cached langdetect-1.0.9.tar.gz (981 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy<2 (from unstructured)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\bvallab\AppData\Local\pypoetry\Cache\virtualenvs\rag-simple-fKl3-SOY-py3.13\Scripts\python.exe C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6\vendored-meson\meson\meson.py setup
C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6 C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6.mesonpy-7v14sv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6.mesonpy-7v14sv\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6
Build dir: C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6.mesonpy-7v14sv
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\bvallab\AppData\Local\Temp\pip-install-kaoi7ay1\numpy_f91255f6002c4216b1b4361908e99bd6\.mesonpy-_7v14sv_\meson-logs\meson-log.txt
[end of output]
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.