3

I did the installation of https://smartpy.io/docs/cli/ (including python,node and the cli version 0.8.3-1) both in ubuntu (windows subsystem) and in Windows 10 and every time I try to run compile or test (using any of the templates like https://smartpy.io/ide?template=storeValue.py) I'm getting always the message:

unhandledRejection {}

Has anyone had the same problem?

2
  • i had the same problem - try cding into ~/smartpy-cli and running npm install @smartpy/timelock
    – damian
    Oct 25 '21 at 18:11
  • I'm having the same issue on Windows when running Ubuntu via WSL 2.0. Using SmartPy Version: 0.8.5
    – JJJ
    Dec 18 '21 at 18:54
1

I had the same issue and it was fixed as soon as I updated Node to the newer LTS version 16.13.1

# download latest nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# after installing restart shell or add export variables for nvm to work

# then install the newer node version
nvm install 16.13.1
0

This has been fixed on Saturday, you just need to update the CLI by running this:

sh <(curl -s https://smartpy.io/cli/install.sh)

Ignore my previous message (I just read your message properly), SmartPy CLI doesn't work on windows without using a container or WSL.

1
  • I'm having the same issue on WSL, just FYI.
    – JJJ
    Dec 18 '21 at 18:16
0

it worked with me finalllly, am using WSL2 on windows 11 ... the script is very restricted in terms where you put the files ...even if you are at the smartpy-cli folder you still need to write the full command as follow:

~/smartpy-cli/SmartPy.sh test ~/smartpy-cli/contracts/play.py ~/smartpy-cli/test

you have to create the "contracts" and "test" folders and copy your python files in "contracts"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.