简体   繁体   English

带有 python 和 wandbox API 的设备的 ioctl 不合适

[英]Inappropriate ioctl for device with python and wandbox API

before you guys say this is a duplicate question.. its not.在你们说这是一个重复的问题之前..它不是。 This is in python and im using the wandbox API.这是在 python 中,我使用的是魔杖盒 API。 Heres my code这是我的代码

@bot.command()
async def linux(ctx):
  ez= os.popen("wandbox -f test.py 2> /dev/stdout").read()
  print(f"```{ez}```")

Im trying to make a linux command (discord.py) that everybody can use.我试图制作一个每个人都可以使用的 linux 命令(discord.py)。 Im trying to use the wandbox API though, its not working as expected.我尝试使用魔杖盒 API,但它没有按预期工作。 The code is supposed to run the file test.py.. Heres the code for test.py该代码应该运行文件 test.py .. 这是 test.py 的代码

import os
os.system("ls")

It should be returning with prog.py although im getting the error Inappropriate ioctl for device.它应该与prog.py一起返回,尽管我收到错误 Inappropriate ioctl for device。

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

相关问题 在Python中运行ioctl会返回ENOTTY-设备不适合的ioctl - Running ioctl in Python returns ENOTTY - inappropriate ioctl for device Pexpect和PyCharm - 适用于设备的ioctl - Pexpect and PyCharm - Inappropriate ioctl for device 崇高的tset:标准错误:设备的ioctl不适当 - Sublime tset: standard error: 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 OpenCV3错误:“无法停止流:设备的不适当的ioctl” - OpenCV3 error: “Unable to stop the stream: Inappropriate ioctl for device” 如何抑制“stty:'标准输入':设备的 ioctl 不合适”错误 - How to supress the “stty: 'standard input': Inappropriate ioctl for device” error 詹金斯的pipenv shell返回问题termios.error:(25,'不合适的设备ioctl') - pipenv shell in Jenkins return the issue termios.error: (25, 'Inappropriate ioctl for device') “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