codexctl icon indicating copy to clipboard operation
codexctl copied to clipboard

AttributeError: 'str' object has no attribute 'decode'.

Open fmessi opened this issue 6 months ago • 5 comments

Hej! I wanted to upgrade my RM2 from 3.10.2.2063 (rM Hacks v0.0.9) to 3.11.3.3 (the last supported today from the rM Hacks).

I downloaded the pre-compiled binaries of codexctl, unzipped and scp to my RM (and made the file executable). I have downloaded the RM firmware (./codexctl download 3.11.3.3 --hardware rm2).

When I run the install, I get the following error:

reMarkable: ~/ ./codexctl install ./Downloads/remarkable-production-memfault-image-3.11.3.3-reMarkable-2.0-public Traceback (most recent call last): File "/tmp/onefile_588_1749641619_821314/main.py", line 12, in File "/tmp/onefile_588_1749641619_821314/codexctl/init.py", line 480, in main File "/tmp/onefile_588_1749641619_821314/codexctl/init.py", line 248, in call_func File "/tmp/onefile_588_1749641619_821314/codexctl/device.py", line 267, in get_device_status AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

What am I doing wrong? Thanks for the support

ps: same kind of error for the status option:

reMarkable: ~/ ./codexctl status
Traceback (most recent call last): File "/tmp/onefile_576_1749641493_143616/main.py", line 12, in File "/tmp/onefile_576_1749641493_143616/codexctl/init.py", line 480, in main File "/tmp/onefile_576_1749641493_143616/codexctl/init.py", line 209, in call_func File "/tmp/onefile_576_1749641493_143616/codexctl/device.py", line 267, in get_device_status AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

fmessi avatar Jun 11 '25 11:06 fmessi

Seeing this as well on my rM2 attempting to install 3.20.0.92, using release 1748370626

reMarkable: ~/ ./codexctl install 3.20.0.92
Traceback (most recent call last):
  File "/tmp/onefile_628_1751927034_465570/main.py", line 12, in <module>
  File "/tmp/onefile_628_1751927034_465570/codexctl/__init__.py", line 480, in main
  File "/tmp/onefile_628_1751927034_465570/codexctl/__init__.py", line 248, in call_func
  File "/tmp/onefile_628_1751927034_465570/codexctl/device.py", line 267, in get_device_status
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

rmitchellscott avatar Jul 07 '25 22:07 rmitchellscott

Probably a duplicate of #135

Eeems avatar Jul 08 '25 13:07 Eeems

Probably a duplicate of #135

not in my case: trying from 3.10 to 3.11

fmessi avatar Jul 08 '25 18:07 fmessi

Probably a duplicate of #135

not in my case: trying from 3.10 to 3.11

In your case, yes as well. The stack trace is the same, so it's the same underlying error.

Eeems avatar Jul 08 '25 18:07 Eeems

Also seeing this issue when trying to downgrade my RM2 from 3.20 to 3.3

motta-the-hutt avatar Jul 18 '25 02:07 motta-the-hutt