I run cursor in ElementaryOS Horus using AppImage for launching, SHELL is zsh.
When working with nodejs projects there is no problem. But with python command
python -m venv .venv
creates broken symlinks
Also some commands dont work with NodeJS errors
python3.11 -c "import os; print(os.environ)"
[49180:1119/104301.181201:ERROR:node_bindings.cc(379)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[49180:1119/104301.181240:ERROR:node_bindings.cc(379)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
Warning: 'c' is not in the list of known options, but still passed to Electron/Chromium.
Solutions:
- Use another terminal instead of cursor(default termninal with same envs works perfectly)
- Create venv with pure environment inside cursor terminal
env -i PATH=/usr/bin:/bin python3.11 -m venv .venv
My tests shown that some envs can affect Cursor behavior. If I remove only part of it Cursor can fail any python command with some errors, but if I remove all envs - venv created like a charm.