Hi Team i am trying to run Pulumi stack and gettin...
# getting-started
q
Hi Team i am trying to run Pulumi stack and getting below error error: failed to discover package requirements: parsing
python list -v --format json
output: invalid character 'N' looking for beginning of value doe sanyone know why is Pulumi running this command?? Also the command looks wrong due to which i am not able to deploy the stack
e
It runs that to see what sdks your using, and from that which provider plugins need downloading. Can you run that command yourself in your project directory? What does it print out?
q
@echoing-dinner-19531 i checked the command that is running at background is incorrect
python list -v --format json
instead of this it should be python -m pip list -v --format json
but i am not sure why Pulumi runs a wrong command
e
it is actually calling
python -m pip list -v --format json
the log line is just wrong
was the output of that command valid JSON?
q
yess
e
did you call that with the virtual environment active?
q
yess
e
odd, that's all the CLI is calling it should be getting the same result
Can you post the output of that list command here? Just to sanity check
q
Screenshot 2025-06-18 at 11.44.37 AM.png
when i try to run it from a UI that i have developed it throws this error
e
any chance it works if you just run
pulumi up
on the command line?
q
yes when i do from CLI it works
e
how is your tool invoking the CLI?
q
We can have a call if you need that
e
If needs be, but scheduling is always hard so if we can just get the details over slack or email that'll probably be easier. If your not comfortable sharing here, drop me a mail at fraser@pulumi.com, we'll see if we can work out what's up.
q
@echoing-dinner-19531 Thanks would drop an email to you