Skip to content

Conversation

@dom96
Copy link
Contributor

@dom96 dom96 commented Oct 30, 2025

  • output is now captured for uv commands
  • packages are now installed to venv first
  • this enables us to determine the cause of installation errors more accurately
  • error messages are now clear about the cause of the failure and let the user know if a package is unsupported by python workers

Test Plan

  • with package version that works in native python but not in pyodide
$ uv tool install -e . # install dev copy of pywrangler
# in wrangler project with "dspy==3.0.3" in pyproject.toml
$ pywrangler sync 
INFO     Found 2 dependencies.                                                                                                                                                                                                               
INFO     Installing packages into .venv-workers...                                                                                                                                                                                           
INFO     Packages installed in .venv-workers.                                                                                                                                                                                                
INFO     Installing packages into python_modules...                                                                                                                                                                                          
WARNING  Using Python 3.13.2 environment at: .venv-workers/pyodide-venv                                                                                                                                                                      
           × No solution found when resolving dependencies:
....
ERROR    Installation failed because the packages you requested are not supported by Python Workers. See above for details.
  • with package version that doesn't exist at all
# in wrangler project with "dspy==4.0.3" in pyproject.toml
$ pywrangler sync   
INFO     Found 2 dependencies.                                                                                                                                                                                                               
INFO     Installing packages into .venv-workers...                                                                                                                                                                                           
WARNING  Using Python 3.13.1 environment at: .venv-workers                                                                                                                                                                                   
           × No solution found when resolving dependencies:                                                                                                                                                                                  
           ╰─▶ Because there is no version of dspy==4.0.3 and you require dspy==4.0.3, we can conclude that your requirements are unsatisfiable.                                                                                             
ERROR    Failed to install the requirements defined in your pyproject.toml file. See above for details.

@dom96 dom96 requested a review from hoodmane October 30, 2025 12:36
@dom96 dom96 force-pushed the dominik/better-errors branch from 0923cfa to 9b764eb Compare October 30, 2025 15:23
@dom96 dom96 force-pushed the dominik/better-errors branch from 9b764eb to 85bff97 Compare October 31, 2025 11:51
@dom96 dom96 force-pushed the dominik/better-errors branch from 85bff97 to 5055432 Compare October 31, 2025 12:00
@dom96 dom96 merged commit e5000ed into main Oct 31, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants