# \#python

**URL:** https://forum.cursor.com/tag/python/327.md

[Latest](https://forum.cursor.com/latest.md) · [Categories](https://forum.cursor.com/categories.md) · [Tags](https://forum.cursor.com/tags.md)

---

## [Python debugger Restart does not focus the breakpoint](https://forum.cursor.com/t/python-debugger-restart-does-not-focus-the-breakpoint/176585)

<div class="topic-metadata">

**Author:** [@Wentao\_Wu](https://forum.cursor.com/u/Wentao_Wu)\
**Replies:** 1\
**Last updated:** [October 29, 2026, 10:10am UTC](https://forum.cursor.com/t/python-debugger-restart-does-not-focus-the-breakpoint/176585 "2026-10-29T10:10:25Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Expected: The debugger pauses and automatically shows the breakpoint again. Actual: After Restart, I have to click the frame in CALL STACK manua…

---

## [Debugging python via remote client connection sometimes hangs permanently after hitting a breakpoint](https://forum.cursor.com/t/debugging-python-via-remote-client-connection-sometimes-hangs-permanently-after-hitting-a-breakpoint/173645)

<div class="topic-metadata">

**Author:** [@coredumperror](https://forum.cursor.com/u/coredumperror)\
**Replies:** 8\
**Last updated:** [October 19, 2026, 6:50pm UTC](https://forum.cursor.com/t/debugging-python-via-remote-client-connection-sometimes-hangs-permanently-after-hitting-a-breakpoint/173645 "2026-10-19T18:50:32Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Sometimes when I’m debugging my Python apps in Cursor, the debugger behaves as if it hit a breakpoint, but doesn’t make any of the UI changes that…

---

## [Cursor 3.22.12 ↔ ms-python.vscode-python-envs terminal API compatibility issue/bug](https://forum.cursor.com/t/cursor-3-22-12-ms-python-vscode-python-envs-terminal-api-compatibility-issue-bug/173342)

<div class="topic-metadata">

**Author:** [@Aditya\_Narayan\_Singh](https://forum.cursor.com/u/Aditya_Narayan_Singh)\
**Replies:** 3\
**Last updated:** [October 19, 2026, 7:06am UTC](https://forum.cursor.com/t/cursor-3-22-12-ms-python-vscode-python-envs-terminal-api-compatibility-issue-bug/173342 "2026-10-19T07:06:14Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Due to this, the file path is not getting injected into the latest powershell 7 terminal on a single play button click. Clicking play button just …

---

## [Python SDK: Client.launch\_bridge fails on Windows (WinError 10038), and a failed launch leaves node.exe running](https://forum.cursor.com/t/python-sdk-client-launch-bridge-fails-on-windows-winerror-10038-and-a-failed-launch-leaves-node-exe-running/174900)

<div class="topic-metadata">

**Author:** [@rp-wbg](https://forum.cursor.com/u/rp-wbg)\
**Replies:** 3\
**Last updated:** [October 15, 2026, 7:14pm UTC](https://forum.cursor.com/t/python-sdk-client-launch-bridge-fails-on-windows-winerror-10038-and-a-failed-launch-leaves-node-exe-running/174900 "2026-10-15T19:14:58Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug Bug 1: the sync bridge launcher can’t start on Windows Cause \_bridge.\_read\_discovery (lines 236–284) registers the bridge’s stderr pipe with selec…

---

## [Local SDK agent.get\_usage() returns feature\_unavailable while run.usage succeeds](https://forum.cursor.com/t/local-sdk-agent-get-usage-returns-feature-unavailable-while-run-usage-succeeds/173987)

<div class="topic-metadata">

**Author:** [@Adnan\_Boz](https://forum.cursor.com/u/Adnan_Boz)\
**Replies:** 4\
**Last updated:** [October 7, 2026, 4:06pm UTC](https://forum.cursor.com/t/local-sdk-agent-get-usage-returns-feature-unavailable-while-run-usage-succeeds/173987 "2026-10-07T16:06:46Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug I am on the Ultra plan and trying to use the agent.get\_usage() method in 1.0.36 python sdk as documented at Cursor Python SDK | Cursor Documentati…

---

## [Agent chat hangs on “Taking longer than expected…” during Python debug and stays hung after the program finishes](https://forum.cursor.com/t/agent-chat-hangs-on-taking-longer-than-expected-during-python-debug-and-stays-hung-after-the-program-finishes/172339)

<div class="topic-metadata">

**Author:** [@grant\_Zhou](https://forum.cursor.com/u/grant_Zhou)\
**Replies:** 4\
**Last updated:** [October 1, 2026, 5:02pm UTC](https://forum.cursor.com/t/agent-chat-hangs-on-taking-longer-than-expected-during-python-debug-and-stays-hung-after-the-program-finishes/172339 "2026-10-01T17:02:43Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug On Windows, Agent/Composer chat in the same Cursor window as an active Python debugpy session gets stuck on “Taking longer than expected…” and nev…

---

## [Cursor Agent repeatedly generates Python code that violates the same explicit, deterministic repository hard rules](https://forum.cursor.com/t/cursor-agent-repeatedly-generates-python-code-that-violates-the-same-explicit-deterministic-repository-hard-rules/169954)

<div class="topic-metadata">

**Author:** [@javiermarcon](https://forum.cursor.com/u/javiermarcon)\
**Replies:** 7\
**Last updated:** [September 20, 2026, 3:54pm UTC](https://forum.cursor.com/t/cursor-agent-repeatedly-generates-python-code-that-violates-the-same-explicit-deterministic-repository-hard-rules/169954 "2026-09-20T15:54:35Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Where does the bug appear (feature/product)? Editor, Tab & Chat — Cursor IDE Agent Describe the Bug Cursor Agent repeatedly generates Python cod…

---

## [Shared: Curated Agent rules for Next.js 15 & FastAPI](https://forum.cursor.com/t/shared-curated-agent-rules-for-next-js-15-fastapi/171498)

<div class="topic-metadata">

**Author:** [@zhi\_qiao](https://forum.cursor.com/u/zhi_qiao)\
**Replies:** 0\
**Last updated:** [September 13, 2026, 11:24am UTC](https://forum.cursor.com/t/shared-curated-agent-rules-for-next-js-15-fastapi/171498 "2026-09-13T11:24:27Z")

</div>

Hey everyone, I put together an open-source collection of production-ready rules for Cursor and AI coding agents, specifically focused on Next.js 15 (App Router) and Python FastAPI. Feel free to check it out, use it, o…

---

## [Python SDK: every Agent/Cursor call crashes with WinError 10038 on native Windows (Bridge discovery uses selectors.select() on pipe handles)](https://forum.cursor.com/t/python-sdk-every-agent-cursor-call-crashes-with-winerror-10038-on-native-windows-bridge-discovery-uses-selectors-select-on-pipe-handles/170001)

<div class="topic-metadata">

**Author:** [@Troy\_Bourque](https://forum.cursor.com/u/Troy_Bourque)\
**Replies:** 1\
**Last updated:** [August 30, 2026, 8:09pm UTC](https://forum.cursor.com/t/python-sdk-every-agent-cursor-call-crashes-with-winerror-10038-on-native-windows-bridge-discovery-uses-selectors-select-on-pipe-handles/170001 "2026-08-30T20:09:12Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug Any cursor\_sdk call that reaches the module’s default-client bootstrap (Agent.prompt(…), Agent.create(…), even the runtime-agnostic Cursor.models.…

---

## [Python SDK: launch\_bridge randomly fails — token\_urlsafe callback tokens starting with - are rejected by the bridge arg parser](https://forum.cursor.com/t/python-sdk-launch-bridge-randomly-fails-token-urlsafe-callback-tokens-starting-with-are-rejected-by-the-bridge-arg-parser/163586)

<div class="topic-metadata">

**Author:** [@Natasha\_Hirt](https://forum.cursor.com/u/Natasha_Hirt)\
**Replies:** 4\
**Last updated:** [August 13, 2026, 4:55pm UTC](https://forum.cursor.com/t/python-sdk-launch-bridge-randomly-fails-token-urlsafe-callback-tokens-starting-with-are-rejected-by-the-bridge-arg-parser/163586 "2026-08-13T16:55:59Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug AsyncClient.launch\_bridge / Client.launch\_bridge intermittently fails (~1.5% of launches) with: Error: Bridge exited before discovery with status…

---

## [Error hierarchy conflates HTTP status concepts](https://forum.cursor.com/t/error-hierarchy-conflates-http-status-concepts/162542)

<div class="topic-metadata">

**Author:** [@JulyBlues](https://forum.cursor.com/u/JulyBlues)\
**Replies:** 2\
**Last updated:** [August 11, 2026, 7:49am UTC](https://forum.cursor.com/t/error-hierarchy-conflates-http-status-concepts/162542 "2026-08-11T07:49:05Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug The SDK’s exception hierarchy groups errors by incorrect parent classes. Three pairs are affected: 1. PermissionDeniedError(403) inherits Authent…

---

## [Critical: Python Go to Definition still broken in Agents Window after four months](https://forum.cursor.com/t/critical-python-go-to-definition-still-broken-in-agents-window-after-four-months/167776)

<div class="topic-metadata">

**Author:** [@VladVin](https://forum.cursor.com/u/VladVin)\
**Replies:** 1\
**Last updated:** [August 9, 2026, 5:38am UTC](https://forum.cursor.com/t/critical-python-go-to-definition-still-broken-in-agents-window-after-four-months/167776 "2026-08-09T05:38:30Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug This is a critical usability issue that has remained unresolved for approximately four months. Reports date back to April, and the problem persist…

---

## [Remote SSH Linux: Cursor installs universal ms-python.python — missing PET binary, Python Environments broken](https://forum.cursor.com/t/remote-ssh-linux-cursor-installs-universal-ms-python-python-missing-pet-binary-python-environments-broken/166601)

<div class="topic-metadata">

**Author:** [@Abdelrahman](https://forum.cursor.com/u/Abdelrahman)\
**Replies:** 3\
**Last updated:** [July 28, 2026, 4:25pm UTC](https://forum.cursor.com/t/remote-ssh-linux-cursor-installs-universal-ms-python-python-missing-pet-binary-python-environments-broken/166601 "2026-07-28T16:25:40Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug On Remote SSH (Linux x64), Cursor installs the universal build of ms-python.python, which is missing the native PET (python-env-tools/bin/pet) bin…

---

## [Cursor Python SDK \`run.wait()\` hangs after partial \`run.messages()\` consumption](https://forum.cursor.com/t/cursor-python-sdk-run-wait-hangs-after-partial-run-messages-consumption/161858)

<div class="topic-metadata">

**Author:** [@Shurui\_Gui](https://forum.cursor.com/u/Shurui_Gui)\
**Replies:** 2\
**Last updated:** [July 7, 2026, 8:16pm UTC](https://forum.cursor.com/t/cursor-python-sdk-run-wait-hangs-after-partial-run-messages-consumption/161858 "2026-07-07T20:16:21Z")

</div>

Where does the bug appear (feature/product)? Cursor SDK Describe the Bug For local Python SDK agents, run.wait() can hang if the caller has already started consuming run.messages() and then stops before the message ite…

---

## [Agents Window should support some essential extensions like pyright](https://forum.cursor.com/t/agents-window-should-support-some-essential-extensions-like-pyright/164087)

<div class="topic-metadata">

**Author:** [@GitandGeek](https://forum.cursor.com/u/GitandGeek)\
**Replies:** 1\
**Last updated:** [June 29, 2026, 10:45pm UTC](https://forum.cursor.com/t/agents-window-should-support-some-essential-extensions-like-pyright/164087 "2026-06-29T22:45:06Z")

</div>

Feature request for product/service Cursor IDE Describe the request All the models I use like Compose 2.5 and GPT 5.5 may generate type errors such as those shown in the image below occasionally and could not detect the…

---

## [Run Selection/Line in Python Terminal not working in python 3.12](https://forum.cursor.com/t/run-selection-line-in-python-terminal-not-working-in-python-3-12/160491)

<div class="topic-metadata">

**Author:** [@S\_D2](https://forum.cursor.com/u/S_D2)\
**Replies:** 9\
**Last updated:** [June 16, 2026, 3:06pm UTC](https://forum.cursor.com/t/run-selection-line-in-python-terminal-not-working-in-python-3-12/160491 "2026-06-16T15:06:41Z")

</div>

Hi team, I downloaded cursor few days back. Previously I used VS Code. When I select a portion of my code and try to click “Run Selection/Line in Python Terminal”, nothing is sent to the terminal. Absolutely nothing. I…

---

## [Update Cursor Pyright](https://forum.cursor.com/t/update-cursor-pyright/161551)

<div class="topic-metadata">

**Author:** [@Joao\_Marcelo](https://forum.cursor.com/u/Joao_Marcelo)\
**Replies:** 2\
**Last updated:** [June 8, 2026, 7:26pm UTC](https://forum.cursor.com/t/update-cursor-pyright/161551 "2026-06-08T19:26:35Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Cursor Pyright fails to suggest imports if the file hasnt been opened in the session. This has been reported multiple times. The issue has been …

---

## [Cursor-sdk v0.1.6 - Windows: os.get\_blocking/os.set\_blocking not available + sandboxing unsuspported](https://forum.cursor.com/t/cursor-sdk-v0-1-6-windows-os-get-blocking-os-set-blocking-not-available-sandboxing-unsuspported/162520)

<div class="topic-metadata">

**Author:** [@JulyBlues](https://forum.cursor.com/u/JulyBlues)\
**Replies:** 1\
**Last updated:** [June 5, 2026, 2:39pm UTC](https://forum.cursor.com/t/cursor-sdk-v0-1-6-windows-os-get-blocking-os-set-blocking-not-available-sandboxing-unsuspported/162520 "2026-06-05T14:39:05Z")

</div>

Describe the Bug Title: cursor-sdk v0.1.6 — three Windows compatibility issues (with workarounds) Package: cursor-sdk v0.1.6 (PyPI, May 29 2026) Environment: Windows 10, Python 3.11.9 Ran into a few issues getting the …

---

## [Introducing the Cursor Python SDK](https://forum.cursor.com/t/introducing-the-cursor-python-sdk/161367)

<div class="topic-metadata">

**Author:** [@kevinn](https://forum.cursor.com/u/kevinn)\
**Replies:** 4\
**Last updated:** [May 29, 2026, 6:38am UTC](https://forum.cursor.com/t/introducing-the-cursor-python-sdk/161367 "2026-05-29T06:38:51Z")

</div>

Introducing the Cursor Python SDK Docs We’re excited to introduce the Cursor Python SDK, now in public beta! With the Cursor SDK, you can build your own agents powered by Composer 2.5 — the same agent that runs in the…

---

## [\[Cursor v3.4.20\] Python environments extension not working](https://forum.cursor.com/t/cursor-v3-4-20-python-environments-extension-not-working/161028)

<div class="topic-metadata">

**Author:** [@calegria](https://forum.cursor.com/u/calegria)\
**Replies:** 6\
**Last updated:** [May 20, 2026, 4:07pm UTC](https://forum.cursor.com/t/cursor-v3-4-20-python-environments-extension-not-working/161028 "2026-05-20T16:07:28Z")

</div>

I am trying to use the Python environments extension (ms-python.vscode-python-envs) with conda. The plugin tries to load the environments but does not load anything. I have tried several related workarounds without succe…

---

## [AppImage on Linux + zsh: Python virtual environment is ignored, bundled Python is used instead](https://forum.cursor.com/t/appimage-on-linux-zsh-python-virtual-environment-is-ignored-bundled-python-is-used-instead/159764)

<div class="topic-metadata">

**Author:** [@vnyb](https://forum.cursor.com/u/vnyb)\
**Replies:** 1\
**Last updated:** [May 6, 2026, 7:39am UTC](https://forum.cursor.com/t/appimage-on-linux-zsh-python-virtual-environment-is-ignored-bundled-python-is-used-instead/159764 "2026-05-06T07:39:32Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Describe the Bug On Linux, the Cursor AppImage does not respect Python virtual environments when using zsh as the integrated terminal shell. Inste…

---

## [Forcing agents to use venv](https://forum.cursor.com/t/forcing-agents-to-use-venv/150099)

<div class="topic-metadata">

**Author:** [@aathan](https://forum.cursor.com/u/aathan)\
**Replies:** 4\
**Last updated:** [May 5, 2026, 4:07pm UTC](https://forum.cursor.com/t/forcing-agents-to-use-venv/150099 "2026-05-05T16:07:44Z")

</div>

See below, agent trace. Notice the python error, and how the agent essentially plows on, abandoning the effort to gather the information it needed from the original tool call attempt. Two things: The agents consisten…

---

## [Cursor Python SDK](https://forum.cursor.com/t/cursor-python-sdk/159484)

<div class="topic-metadata">

**Author:** [@Ishan\_Hettiarachchi](https://forum.cursor.com/u/Ishan_Hettiarachchi)\
**Replies:** 2\
**Last updated:** [May 5, 2026, 12:41pm UTC](https://forum.cursor.com/t/cursor-python-sdk/159484 "2026-05-05T12:41:29Z")

</div>

Feature request for product/service – Other – Describe the request Congrats on the release of Typescript SDK. Can we have one soon for Python?

---

## [Python debuger console didnt start with shell Integration](https://forum.cursor.com/t/python-debuger-console-didnt-start-with-shell-integration/159488)

<div class="topic-metadata">

**Author:** [@JianxiangL](https://forum.cursor.com/u/JianxiangL)\
**Replies:** 1\
**Last updated:** [May 1, 2026, 5:25pm UTC](https://forum.cursor.com/t/python-debuger-console-didnt-start-with-shell-integration/159488 "2026-05-01T17:25:32Z")

</div>

but when i debug the .py ， bash didnt started with “–init-file /root/.cursor-server/bin/linux-x64/3e548838cf824b70851dd3ef27d0c6aae371b3f0/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh” …

---

## [Ctrl+Space not working in Agent Window Mode for Python](https://forum.cursor.com/t/ctrl-space-not-working-in-agent-window-mode-for-python/159287)

<div class="topic-metadata">

**Author:** [@DanielCraciunGitHub](https://forum.cursor.com/u/DanielCraciunGitHub)\
**Replies:** 1\
**Last updated:** [April 29, 2026, 3:17am UTC](https://forum.cursor.com/t/ctrl-space-not-working-in-agent-window-mode-for-python/159287 "2026-04-29T03:17:26Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Python is set up within cursor, and pressing Ctrl+Space would trigger a suggestion, which works in Editor Window. The current behaviour is that w…

---

## [CVE-aware version suggestions when Cursor generates version specifications for dependency libraries](https://forum.cursor.com/t/cve-aware-version-suggestions-when-cursor-generates-version-specifications-for-dependency-libraries/157691)

<div class="topic-metadata">

**Author:** [@d7wh](https://forum.cursor.com/u/d7wh)\
**Replies:** 0\
**Last updated:** [April 15, 2026, 2:36am UTC](https://forum.cursor.com/t/cve-aware-version-suggestions-when-cursor-generates-version-specifications-for-dependency-libraries/157691 "2026-04-15T02:36:51Z")

</div>

Something I’ve noticed using Cursor for Python projects: when Cursor generates code or suggests a requirements.txt, the library versions it picks tend to be significantly older than current releases — often 12–24 months …

---

## [New Python SDK For Cursor Agent API](https://forum.cursor.com/t/new-python-sdk-for-cursor-agent-api/157304)

<div class="topic-metadata">

**Author:** [@Make\_The\_World\_Shine](https://forum.cursor.com/u/Make_The_World_Shine)\
**Replies:** 0\
**Last updated:** [April 10, 2026, 4:26pm UTC](https://forum.cursor.com/t/new-python-sdk-for-cursor-agent-api/157304 "2026-04-10T16:26:03Z")

</div>

I built a Python SDK for the Cursor Cloud Agents API: cursor-agent-sdk. It lets you launch and manage Cursor cloud agents from Python with a simple sync/async interface (instead of raw HTTP calls). PyPI: https://pypi.o…

---

## [Cursor 3 Python LSP configuration](https://forum.cursor.com/t/cursor-3-python-lsp-configuration/157054)

<div class="topic-metadata">

**Author:** [@ishaan](https://forum.cursor.com/u/ishaan)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 10:30am UTC](https://forum.cursor.com/t/cursor-3-python-lsp-configuration/157054 "2026-04-09T10:30:49Z")

</div>

I’m trying to use Cursor 3 even more, but am getting stuck when using it on python repos as the LSP isn’t working correctly so I can’t do the things I’d like to - ‘Go to definition’ or see the type hints and docstrings. …

---

## [Cannot install pyrefly extension](https://forum.cursor.com/t/cannot-install-pyrefly-extension/153751)

<div class="topic-metadata">

**Author:** [@Max\_Gardner](https://forum.cursor.com/u/Max_Gardner)\
**Replies:** 14\
**Last updated:** [April 6, 2026, 8:41pm UTC](https://forum.cursor.com/t/cannot-install-pyrefly-extension/153751 "2026-04-06T20:41:42Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Installation of pyrefly fails with the follow errors in the logs: 2026-03-05 11:14:19.044 \[error\] \[Window\] Failed: Server returned 503 at ZFu…

---

## [Pylance installed in WSL but provides no language features](https://forum.cursor.com/t/pylance-installed-in-wsl-but-provides-no-language-features/156428)

<div class="topic-metadata">

**Author:** [@stguseinov](https://forum.cursor.com/u/stguseinov)\
**Replies:** 4\
**Last updated:** [April 2, 2026, 9:22am UTC](https://forum.cursor.com/t/pylance-installed-in-wsl-but-provides-no-language-features/156428 "2026-04-02T09:22:50Z")

</div>

Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Pylance is installed and shown as enabled in WSL, but it does not provide hover, autocomplete, or go-to-definition in Python files. Current insta…

[Next page](https://forum.cursor.com/tag/python/327.md?match_all_tags=true&page=1&tags%5B%5D=python)
