Closed jikechao closed 1 month ago
Thank you for your bug report. Unfortunately, I can't reproduce this with the given code. A similar discussion here points to a local setup problem. Can you try again in a clean environment?
@tringwald Thanks for the suggestion. I had figured out this issue.
The crash was caused by the environment package z3
, After uninstalling the package z3
, the above script can run well.
@tringwald. I am curious about how you handle the conflict package issue in common. 1) Solve it in the PyTorch when installing the PyTorch package? 2)Giving a warning information in the crash message? 3)Or do nothing?
torch.compile
is still not supported on Windows, so removing needs reproduction
But imo we should have a test for z3
version when it's used, and if an incompatible version is installed we should print a warning of sorts
Hey @jikechao, @aliencaocao, currently torch.compile is not supported on Windows. You can stay updated by following this thread. Would it be alright to close this issue for now?
π Describe the bug
The following script will crash and throw "AttributeError: module 'z3' has no attribute 'ExprRef'".
Full Traceback
Versions
PyTorch version: 2.2.2+cpu Is debug build: False CUDA used to build PyTorch: Could not collect ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 δΌδΈη GCC version: (tdm64-1) 4.9.2 Clang version: Could not collect CMake version: Could not collect Libc version: N/A
Python version: 3.8.3 (default, May 19 2020, 06:50:17) [MSC v.1916 64 bit (AMD64)] (64-bit runtime) Python platform: Windows-10-10.0.19041-SP0 Is CUDA available: False CUDA runtime version: 10.0.130 CUDA_MODULE_LOADING set to: N/A GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1660 Ti Nvidia driver version: 537.70 cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudnn_ops_train64_8.dll HIP runtime version: N/A MIOpen runtime version: N/A Is XNNPACK available: True
CPU:
Revision=
Versions of relevant libraries: [pip3] numpy==1.24.3 [pip3] torch==2.2.2 [pip3] torch-struct==0.5 [pip3] torchvision==0.11.1 [conda] numpy 1.24.3 pypi_0 pypi [conda] torch 2.2.2 pypi_0 pypi [conda] torch-struct 0.5 pypi_0 pypi [conda] torchvision 0.11.1 pypi_0 pypi
Process finished with exit code 0
cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht @iremyux @Blackhex @cristianPanaite @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang