vagrant-spk icon indicating copy to clipboard operation
vagrant-spk copied to clipboard

enter-grain error on Windows

Open ocdtrekkie opened this issue 5 years ago • 3 comments

I don't know what this means, but enter-grain did not work for me on my Windows machine.

PS C:\Users\ocdtr\Projects\Jupyter-Lab-Sandstorm> vagrant-spk enter-grain
Looking for apps in dev mode...
Looking for grains...

Error parsing line: 5037 ownership-correct c5Xv6FfWHKr9sGAbrP3hGd. Crashing.Traceback (most recent call last):
  File "<string>", line 1001, in <module>
  File "<string>", line 998, in main
  File "<string>", line 786, in shell
ValueError: need more than 3 values to unpack
vagrant-spk returned -1

ocdtrekkie avatar Feb 20 '20 17:02 ocdtrekkie

Looks like this line is returning something other than a 4-tuple:

https://github.com/sandstorm-io/vagrant-spk/blob/f5a82f76fe791d52fea1e30c027fcdfaa2722f02/vagrant-spk#L788

Maybe do some print debugging around there?

zenhack avatar Feb 21 '20 10:02 zenhack

Print debugging this on Windows is likely to be super difficult because packaging the EXE in the release script is a super pain in the rear. I probably should figure out how to set up a Python environment on my Windows PC such that I could play with the actual script file.

ocdtrekkie avatar Feb 21 '20 13:02 ocdtrekkie

It looks like 5037 ownership-correct c5Xv6FfWHKr9sGAbrP3hGd is missing the child_pid though, since it's looking for that after the grain_id, which we can see in that string.

ocdtrekkie avatar Feb 21 '20 15:02 ocdtrekkie