pytorch / text

Models, data loaders and abstractions for language processing, powered by PyTorch
https://pytorch.org/text
BSD 3-Clause "New" or "Revised" License
3.51k stars 811 forks source link

strange pyd error with no documentation + "OSError: [WinError 127] The specified procedure could not be found" #2269

Open actlists opened 2 months ago

actlists commented 2 months ago

🐛 Bug

Describe the bug Bug that happens anywhere when using torchtext 0.18.0

To Reproduce Steps to reproduce the behavior:

  1. import torchtext
  2. image

Expected behavior Being able to import properly

Environment

PyTorch version: 2.4.0+cpu Is debug build: False CUDA used to build PyTorch: Could not collect ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Pro for Workstations GCC version: Could not collect Clang version: Could not collect CMake version: version 3.29.0-rc1 Libc version: N/A

Python version: 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] (64-bit runtime) Python platform: Windows-11-10.0.22631-SP0 Is CUDA available: False CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: N/A GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3060 Ti Nvidia driver version: 551.52 cuDNN version: Could not collect HIP runtime version: N/A MIOpen runtime version: N/A Is XNNPACK available: True

CPU: Architecture=9 CurrentClockSpeed=3800 DeviceID=CPU0 Family=107 L2CacheSize=3072 L2CacheSpeed= Manufacturer=AuthenticAMD MaxClockSpeed=3800 Name=AMD Ryzen 5 4500 6-Core Processor ProcessorType=3 Revision=24577

Versions of relevant libraries: [pip3] numpy==1.26.4 [pip3] numpy-hilbert-curve==1.0.1 [pip3] onnx==1.16.1 [pip3] onnxconverter-common==1.14.0 [pip3] onnxoptimizer==0.3.13 [pip3] onnxruntime-directml==1.18.0 [pip3] torch==2.4.0 [pip3] torchtext==0.18.0 [conda] Could not collect

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
python -c "import torchtext; print(\"torchtext version is \", torchtext.__version__)"

Additional context happens literally everywhere, no matter what i've tried i get the same garbage error

actlists commented 2 months ago

sorry if this is poorly made, i am so close to giving up from being frustrated

jaykhatri0875 commented 2 months ago

I got the same error on windows, torchtext is installed but can not import. somewhere its mentioned that upgrading visual c++ might just work, but i am already having 2017-2022 version. image

harshini0208 commented 4 weeks ago

did anyone get the solution for this