What to do when the terminal displays "Sorry, could not find a PTY"? (Mac OSx)
Asked Answered
T

2

14

I'm connecting an android device to an FTDI, which is connected to my Mac. On my android device I'm using FTDI AOA HyperTerm. I can send chars without any problem to my mac using this program: https://www.decisivetactics.com/products/serial/. As you can see I can only use it for 7 days, so I want to use my Terminal instead. When I run this command:

screen /dev/tty.usbserial 9600

I get a blank screen with two messages, the second one being "Sorry, could not find a PTY".

What should I do to fix this?

EDIT: when I closed the Serial program, it worked on my Terminal. However, when I restart my Terminal it gives the same message. I open Serial, select my USB device, close serial and use my Terminal. Why is this?

Tidewaiter answered 4/3, 2016 at 12:29 Comment(0)
T
8

I know this is old but I found the same problem today with my Raspberry PI and a PI UART card attached. I found that this error occurred when I opened up a screen session but didn't close it completely. I was able to fix by going to Activity Monitor and terminating any "screen" processes.

Tun answered 30/10, 2017 at 19:46 Comment(1)
CTRL-A followed by CTRL-\ will close all open screen 'windows'. But if a 'screen' window has been detached, 'Activity Monitor' is one way to close it.Pediform
C
0

In my case there were no other "screen" processes running, but simply unplugging the device from the computer (i.e., USB to serial adapter) then plugging back in again cleared the issue.

Coincidentally answered 11/9, 2020 at 15:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.