Skip to content
← Back to Community
[SOLVED] Input issues
Profile icon
Firepup650

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
Profile icon
Firepup650
Comments
hotnewtop
Profile icon
Firepup650

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

Profile icon
Firepup650

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

Profile icon
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.

Profile icon
Firepup650

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

Profile icon
Highwayman

oh man that's tough.
@ALEXANDERMAPLES

Profile icon
Firepup650

@Highwayman which part?

Profile icon
Highwayman

both things of course. @ALEXANDERMAPLES

Profile icon
Firepup650
Profile icon
Firepup650

@Highwayman I wound up fixing my own bug, how should I go about making this as solved?

Should I:

a. Mark myself as the answer

b. Don't mark anything as an answer

c. Something else I didn't mention here

Profile icon
Highwayman

You could just change the title to include “[SOLVED]” or something if you want. @ALEXANDERMAPLES

Profile icon
Firepup650