Error: No such command 'uplink_raw'

Hi trying to upload some code to my devkitc. Compiles ok, but get …
[info] Compilation Ok

[warning] This project has configurable options!

[warning] Options for module espressif.esp32net.esp32wifi ::

[warning] ZERYNTH_SSL enabled

Usage: ztc.py [OPTIONS] COMMAND [ARGS]…

Try ‘ztc.py --help’ for help.

Error: No such command ‘uplink_raw’.

Any ideas?

Hi @Scott_Davies
For troubleshooting, Can you give me the following information, The device used, The OS used, the version of Zerynth studio, did you register and virtualize the device successfuly?

Hi
It’s Big Sur on Mac, 2.63 zerynth and an official esp32 devkit c

It’s one I’d previously registered and virtualised ok. I just wanted to update my code on it.
I also did a full reinstall of 2.63 just make sure. Thanks

Can you navigate to .zerynth2/dist/r2.6.3/ztc and run the ztc.py script?
you should recieve the following response

Usage: ztc.py [OPTIONS] COMMAND [ARGS]…

Zerynth Toolchain.

Options:
-v Verbose.
–colors / --no-colors To enable/disable colors.
–traceback / --no-traceback To enable/disable exception traceback printing
on criticals.
–user_agent TEXT To insert custom user agent.
–pretty To display pretty json output.
-J To display the output in json format.
–help Show this message and exit.

Commands:
aws ztc and AWS cli integration
clean Clean up old installations and temp files
compile Compile a project.
debugger Debugging sessions
device Manage devices.
info Display info about ZTC status.
link Generate bytecode runnable on a specific VM.
linter Python linter.
login Obtain an authentication token
logout Close current session.
massprog Manage mass programming.
package Manage packages.
probe Manage probes.
profile Manage account info.
project Manage projects.
provisioning Provision secure crypto elements
redeem Redeem assets with codes
register Obtain an authentication token
reset Password reset.
uplink Uplink bytecode to a device.
uplink_by_probe Uplink bytecode to a device using a probe.
uplink_raw Uplink bytecode to a configured device
vm Manage Zerynth Virtual Machine.

after this please execute ztc in the terminal, you should receive the same response.
Please let me know

Thanks Karim,

I get:

~/.zerynth2/dist/r2.6.3/ztc ᐅ python3 ztc.py

Traceback (most recent call last):

File “ztc.py”, line 94, in

import click

ModuleNotFoundError: No module named ‘click’

This is using python 3.7

After if I run ztc I get the response you expected correctly

It seems the CLI path for ZTC is accessing a different version from the latest one.
Can you check the PATH in .bashrc file, you can also delete the older versions of Zerynth studio to make sure you are accessing the latest version.
because the error is caused by running -uplink_raw which is supported by the latest version of ZTC.

Hi removed 2.6.1 and 2.6.3 and did a full reinstall. Starts ok, compiles and I get a prompt saying it need to install additional dependencies ok/cancel. If I say ok I get …
Checking for updates…

Usage: ztc.py package [OPTIONS] COMMAND [ARGS]…

Try ‘ztc.py package --help’ for help.

Error: No such command ‘install_deps’.

If I cd to the distribution and run etc --help I don’t see install dependencies either. BTW my PATH is pretty simple, it’s just /Users/sdavies/.npm-global/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

hi @Scott_Davies
I tested on my machine, it seems like a bug with Click library in version 7.0
For a quick fix, in ~/.zerynth2/dist/r2.6.3/ztc/uplinker/uplinker.py
line 133, replace with this line:
@cli.command(“uplink_raw”,help=“Uplink bytecode to a configured device”)
save and run ztc command
you should find the output like this

Usage: ztc.py [OPTIONS] COMMAND [ARGS]…

Zerynth Toolchain.

Options:
-v Verbose.
–colors / --no-colors To enable/disable colors.
–traceback / --no-traceback To enable/disable exception traceback printing
on criticals.
–user_agent TEXT To insert custom user agent.
–pretty To display pretty json output.
-J To display the output in json format.
–help Show this message and exit.

Commands:
aws ztc and AWS cli integration
clean Clean up old installations and temp files
compile Compile a project.
debugger Debugging sessions
device Manage devices.
info Display info about ZTC status.
link Generate bytecode runnable on a specific VM.
linter Python linter.
login Obtain an authentication token
logout Close current session.
massprog Manage mass programming.
package Manage packages.
probe Manage probes.
profile Manage account info.
project Manage projects.
provisioning Provision secure crypto elements
redeem Redeem assets with codes
register Obtain an authentication token
reset Password reset.
uplink Uplink bytecode to a device.
uplink_by_probe Uplink bytecode to a device using a probe.
uplink_raw Uplink bytecode to a configured device
vm Manage Zerynth Virtual Machine.

Specifically the output has uplink_raw not uplink-raw.
Then try again to uplink a project.

Thanks, I quit Zerynth, edited the file, then etc runs as you expected. However when I try to uplink, it prompts to install dependencies, and then on the console I just see…
Loading settings…

Ready!

Switched to advanced mode

Ok

Checking for updates…

Usage: ztc.py package [OPTIONS] COMMAND [ARGS]…

Try ‘ztc.py package --help’ for help.

Error: No such command ‘install_deps’.

In ~/.zerynth2/dist/r2.6.3/ztc/packages/packagecmd.py line 197: replace with

@package.command(“install_deps”,help=“Retrieve and store current available packages”)

close zerynth studio and open again, Please let me know if this works for you.

Getting close!

It starts to install dependencies, then there are permissions problems…
Checking for updates…

Switched to advanced mode

[info] Downloading package sys.zerynth.esptool-mac

[info] Downloading package sys.zerynth.xtensalx6-mac

[info] Downloading package vhal.zerynth.xtensalx6_esp32

[info] Installing package sys.zerynth.esptool-mac

[info] Installing package sys.zerynth.xtensalx6-mac

[info] Installing package vhal.zerynth.xtensalx6_esp32

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/92/0e75d3790d8ba608acf9f98c203ba82dfaebf7’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/9e/4fe885b2edc8c68af592022247620134cb6062’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/ad/5bbbba4a1b5971befd16f23d7173c0dfbbd37e’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/ae/675410bf023a6d0e0cc6f1d48d95bce73eb343’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/e5/b8c746cb54435d70e8b494915db4ad478b00f3’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/f3/ebbed7940f21af98be5895dbed57d6c24d9f1a’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/f3/f5602faaafa71a2149ed0a5a40c3aa0e08b63f’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/pack/pack-caaf864468877b286ca077bd2dd76b3acb7b2d70.pack’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/pack/pack-caaf864468877b286ca077bd2dd76b3acb7b2d70.idx’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/1f/ee9cb49e2b6225dccc4334c1b4c843922bb91e’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/8a/3614da06e71863c032541655699d6d3e6943f7’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/75/dce0372859a13364cb14d56b25eab817fe373c’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/6e/e2fb2183e4cbea27f0418f144ef0f1b095b600’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/5e/70153c788f1b46d32be9758e68b5adb1f5c43c’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/6d/87f77644fcd5948abd766c212d80fd89ada183’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/55/2a18659cdbd344ecc5871934d96e4076ddabd2’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/af/08a50ac8a98d1f9b4be13449de7612fabd94b1’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/ea/3ef413dffcdc437e18f5cef3e18670a5eccc59’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/ea/8835fe0cec3668ccd8d2e7db4c04cf90f0fea9’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/f7/9b9daeedca24ae51e94a639fabc0c44869b61d’

xattr: [Errno 13] Permission denied: ‘/Users/sdavies/.zerynth2/sys/python/.git/objects/1b/ae1b57b66f6762be744a74a216926d8d72728b’

[info] All dependencies installed!

As an example the permissions on one of them is
-r–r--r–@ 1 sdavies staff 187 4 Jul 2019 0e75d3790d8ba608acf9f98c203ba82dfaebf7

If you try and uplink again it says all dependencies are already installed but then doesn’t seem to do anything

hi @Scott_Davies
we are working on releasing a hot fix the fixes this bug, We are sorry for this inconvenience.
We will keep you updated on this bug.

1 Like

Thanks Karim, You’ve been super helpful

Hi @Scott_Davies
after installing the dependencies, even if there is this error, can you try to register and virtualize the device, then uplink a simple example?
If the process fails, please post the console log.

Thanks Karim, ok so registering and revirtualising then uplink works ok!
(Note: I still have those customisations in place you suggested in the uplinker)

Thanks for all you help!

1 Like