Bindu icon indicating copy to clipboard operation
Bindu copied to clipboard

[Bug]: x402 import error

Open Avngrstark62 opened this issue 10 months ago • 1 comments

There is an x402 import error because of version mistmatch

To Reproduce Steps to reproduce the behavior clearly:

  1. create an agent using cookie-cutter
  2. uv sync
  3. set env variables as required
  4. uv run python -m agent_name.py

Expected behavior ModuleNotFoundError: No module named 'x402.common'

Fix the error can be easily fixed by setting the x402 version to 0.2.1

running these commands in sequence fixes the issue temperoraly -

uv pip uninstall x402
uv add x402==0.2.1

Avngrstark62 avatar Jan 26 '26 11:01 Avngrstark62

hey @Avngrstark62, let me know if my PR resolves this issue.

akshathmangudi avatar Feb 01 '26 17:02 akshathmangudi