Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS Error - WinError 127 torchtext - Pytorch CUDA 12.1 error #2280

Open
GodRishUniverse opened this issue Jan 26, 2025 · 0 comments
Open

OS Error - WinError 127 torchtext - Pytorch CUDA 12.1 error #2280

GodRishUniverse opened this issue Jan 26, 2025 · 0 comments

Comments

@GodRishUniverse
Copy link

🐛 Bug

Describe the bug A clear and concise description of what the bug is. I get an OS Error with WinError 127 error code when importing torchtext and I cannot use it.

To Reproduce Steps to reproduce the behavior:

  1. install torch from the command pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
  2. import torchtext

Expected behavior
No issues or errors to pop up as I am already on PyTorch version >= 2.3.0

Screenshots If applicable, add screenshots to help explain your problem.

Image

Image

Environment

  • PyTorch Version: 2.5.1+cu121
  • OS: Windows
  • How you installed PyTorch: pip
  • Build command you used (if compiling from source):
  • Python version: 3.11.5
  • CUDA/cuDNN version: 12.1
  • GPU models and configuration: RTX 4060 Laptop
  • Any other relevant information:

Additional context
It was working fine with my CUDA 12.1 install and then I uninstalled my torch install because I was getting this error UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at to install CUDA 12.4. During Uninstallation I am getting manual removing errors:

WARNING: Failed to remove contents in a temporary directory 'C:\Users\Rishabh\AppData\Local\Temp\pip-uninstall-tysba_4p'.
You can safely remove it manually.
WARNING: Failed to remove contents in a temporary directory 'C:\Users\Rishabh\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\~ib'.
You can safely remove it manually.

But it was not running, so I reinstalled CUDA 12.1 PyTorch and now I get this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant