jessehostetler commited on
Commit
44f0624
·
1 Parent(s): d86b157

Add troubleshooting note about TORCHINDUCTOR_CACHE_DIR

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -97,3 +97,15 @@ This usually means you have an outdated version of the Dyff SDK. Upgrade to the
97
  ```
98
  python -m pip install --upgrade dyff
99
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  ```
98
  python -m pip install --upgrade dyff
99
  ```
100
+
101
+ ### `KeyError: 'getpwuid(): uid not found: 1001'`
102
+
103
+ This error occurs because the Docker container runs without a user account, but a module is trying to retrieve user account information. This is often caused by the `TorchInductor` system used by `torch.compile` in the PyTorch package. If this is the issue, you will see a line like this in the stack trace:
104
+
105
+ ```
106
+ File "/app/.venv/lib/python3.12/site-packages/torch/_inductor/runtime/cache_dir_utils.py", line 17, in cache_dir
107
+ os.environ["TORCHINDUCTOR_CACHE_DIR"] = cache_dir = default_cache_dir()
108
+ ^^^^^^^^^^^^^^^^^^^
109
+ ```
110
+
111
+ The solution is to set the `TORCHINDUCTOR_CACHE_DIR` environment variable to a path under `/tmp`, such as `/tmp/torchinductor-cache`.