Skip to content

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

@rahulraj80

Description

@rahulraj80

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions