Cedar
Cedar14mo ago

I keep running into python download failed while trying to run 'cargo test' command

I am currently following the steps I. Deno's Contributing Guide and I am running cargo test but I keep getting this error and I have Python installed and working correctly
No description
1 Reply
Deno AI Helper
Deno AI Helper14mo ago
I'm sorry to hear that you're having trouble running the cargo test command. The documentation doesn't provide a clear solution to this specific issue. However, I can suggest a few general debugging steps: 1. Make sure you have the correct version of Python installed. Deno's test runner requires Python 3. If you have multiple versions of Python installed, there might be a conflict. 2. Check your system's PATH. Make sure that Python is correctly added to your system's PATH so that the cargo test command can find and use it. 3. Try running the command in a different shell or terminal. Sometimes, certain shells or terminals might have issues that others do not. 4. If you're on Windows, you might need to use a different command to run the tests. The documentation mentions that if your system does not support hashbangs, you should prefix all ./tools/wpt.ts commands with deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run. If none of these steps help, it would be useful to know the exact error message you're seeing. That could provide more clues about what's going wrong.

Did you find this page helpful?