简体   繁体   English

崇高的tset:标准错误:设备的ioctl不适当

[英]Sublime tset: standard error: Inappropriate ioctl for device

I just installed Sublime 3 on my Mac running OSX and I'm just trying to ensure that my environment is set up correctly for running Python scripts. 我刚刚在运行OSX的Mac上安装了Sublime 3,并且试图确保正确设置环境以运行Python脚本。

Upon running the below code: 运行以下代码后:

def main():
    print('hello world')
main()

I get the following output: 我得到以下输出:

tset: standard error: Inappropriate ioctl for device

hello world
[Finished in 0.1s]

Any idea why I am getting the tset:standard error? 知道为什么我会收到tset:standard错误吗?

You did not mention the operating system. 您没有提到操作系统。 If it's a *nix system you need to mark the file as an executable. 如果是*nix系统,则需要将文件标记为可执行文件。

chmod +x filename.py

I might be wrong. 我可能错了。 But this is worth giving a try. 但这值得一试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何抑制“stty:'标准输入':设备的 ioctl 不合适”错误 - How to supress the “stty: 'standard input': Inappropriate ioctl for device” error Pexpect和PyCharm - 适用于设备的ioctl - Pexpect and PyCharm - Inappropriate ioctl for device OpenCV3错误:“无法停止流:设备的不适当的ioctl” - OpenCV3 error: “Unable to stop the stream: Inappropriate ioctl for device” IOError:[Errno 25] 设备的 ioctl 不合适 - IOError: [Errno 25] Inappropriate ioctl for device opencv无法阻止流:设备的ioctl不合适 - opencv Unable to stop the stream: Inappropriate ioctl for device 在Python中运行ioctl会返回ENOTTY-设备不适合的ioctl - Running ioctl in Python returns ENOTTY - inappropriate ioctl for device 詹金斯的pipenv shell返回问题termios.error:(25,'不合适的设备ioctl') - pipenv shell in Jenkins return the issue termios.error: (25, 'Inappropriate ioctl for device') X 服务器“localhost:10.0”上的 matplot lib“致命 IO 错误 25(设备的 ioctl 不合适)” - matplot lib "fatal IO error 25 (Inappropriate ioctl for device) on X server "localhost:10.0" “GetPassWarning:无法控制终端上的回声”是什么意思? “设备的 ioctl 不合适”? - What does "GetPassWarning: Can not control echo on the terminal" mean? "Inappropriate ioctl for device"? 使用Ubuntu和pty不合适的ioctl - Inappropriate ioctl using Ubuntu and pty
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM