Ask coding questions

← Back to all posts
Input issues
ALEXANDERMAPLES

When I use the Reader.read() (referenced in the main file as read()) command, it apparently does nothing, because the next command tries to convert it to a string (it originally was a tuple) and it just dumps a NoneType error, it worked yesterday(August 25th 2021)... Any clues?

Voters
ALEXANDERMAPLES
Comments
hotnewtop
ALEXANDERMAPLES

I fixed this error by moving some parts of the code around.

ALEXANDERMAPLES

To other people with this issue, the "sys.stdin.read()" command doesn't give reliable output if called inside of another command.

Highwayman

Have you tried the debugger in the replete ide? It's super easy to use, should show the state of your variables I'm pretty sure, and is right there in the sidebar. Just set a couple breakpoints or step through the code. You'll probably find the problem pretty fast.

ALEXANDERMAPLES

@Highwayman Two things, (1) I can't use that on Android, and (2) It just doesn't get defined

Highwayman

oh man that's tough.
@ALEXANDERMAPLES

ALEXANDERMAPLES

@Highwayman which part?

Highwayman

both things of course. @ALEXANDERMAPLES

ALEXANDERMAPLES