Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python3.11/ rshell 0.0.31/ Windows] : rshell fails with PyboardError('could not exec command') #210

Open
rahulraj80 opened this issue May 4, 2023 · 1 comment

Comments

@rahulraj80
Copy link

rahulraj80 commented May 4, 2023

After installation, I ran in to the py3k_compat error, which was resolved by changing collections.Callable to collections.abc.Callable, however, this error does not go away:

$ rshell -p COM5

Fails after connecting to REPL:

Using buffer-size of 32
Connecting to COM5 (buffer-size 32)...
Trying to connect to REPL  connected
Retrieving sysname ... Traceback (most recent call last):

.....

....\Python\Python311\Lib\site-packages\rshell\pyboard.py", line 250, in exec_raw_no_follow
    raise PyboardError('could not exec command')
rshell.pyboard.PyboardError: could not exec command

In the code at:

        # check if we could exec command
        data = self.serial.read(2)
        if data != b'OK':
            raise PyboardError('could not exec command')

It is should get b'OK' but instead is getting b'>>'.

Any ideas on how to resolve this?

@gamefunc
Copy link

gamefunc commented Dec 1, 2023

I'm fine here;

PS C:\Users\feve> rshell -p com3
Using buffer-size of 32
Connecting to com3 (buffer-size 32)...
Trying to connect to REPL connected
Retrieving sysname ... esp32
Testing if ubinascii.unhexlify exists ... Y
Retrieving root directories ... /boot.py/
Setting time ... Dec 01, 2023 13:25:06
Evaluating board_name ... pyboard
Retrieving time epoch ... Jan 01, 2000
Welcome to rshell. Use the exit command to exit rshell.
C:\Users\feve> repl
Entering REPL. Use Control-X to exit.

MicroPython v1.19.1 on 2022-06-17; ESP32 module with ESP32
Type "help()" for more information.
import machine
p = machine.Pin(4, machine.Pin.OUT)
p.value(1)

You can try using:
#223
https://github.com/gamefunc/rshell/releases

ps: need remove old rshell, but not need to modify collections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants