问题标签 [oserror]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
267 浏览

tcp - What are the causes for os_error: message too long

We have a client and server communicating each other with grpc. Previously the server was running on Windows Server, and the client running on Linux or MacOS. Everything works perfectly until we migrate the server from Windows Server to a docker container.

Then we observed some weird tcp broken when we send a large amount of request from client to server.

Then we dig into the grpc arena and run our client and server with GRPC_VERBOSITY=info and GRPC_TRACE=tcp. Then we found that the disconnection was caused from the server side, with error message below:

So my question is what does the os_error: message too long really means? What is the next step for me to investigate?

Linked issue

0 投票
4 回答
6605 浏览

file - 使用 Tensorflow hub 时 SavedModel 文件不存在

尝试使用 中的hub.load函数时tensorflow_hub,出现OSError: SavedModel file does not exist at:错误。

奇怪的是它几天前就起作用了,所以我不太明白为什么我现在会收到这个错误。

重现代码:

收到的具体错误:

0 投票
1 回答
483 浏览

python-3.x - OSerror:dlopen 原因:找不到图像

我正在尝试运行 python 文件并收到此错误,我尝试查找但找不到解决方案。

在此处输入图像描述

0 投票
1 回答
4776 浏览

dependencies - OSError caffe2_detectron_ops_gpu PyTorch

当我尝试使用 PyTorch 运行我的代码时,我不断收到此错误

OSError: [WinError 126] 找不到指定的模块。加载“C:\Users\Username\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll”或其依赖项之一时出错。

我尝试将 cuda 10.1 更新到 10.2,但它没有解决问题。我也安装了 cudnn 。我使用 PyTorch 入门页面上的命令多次卸载并重新安装了 Torch。有人可以帮我解决这个问题吗?我现在被困了 2 天

0 投票
1 回答
821 浏览

python - 在 Python Azure Function 中使用 AzureML 时出现“失败异常:OSError:[Errno 30] 只读文件系统”

问题

我正在尝试准备,然后从 Python 中的 Azure 函数向 Azure 机器学习提交一个新实验。因此,我为我的 Azure ML 工作区注册了一个新数据集,其中包含使用dataset.register(.... 但是,当我尝试使用以下代码行创建此数据集时

然后我得到一个Failure Exception: OSError: [Errno 30] Read-only file system ....

想法

  1. 我知道如果可能的话,我不应该从 Azure 函数中写入文件系统。但我实际上不想向本地文件系统写入任何内容。我只想创建数据集作为对我的 blob 存储的引用datastore_path,然后将其注册到我的 Azure 机器学习工作区。但似乎该方法from_delimited_files无论如何都试图写入文件系统(也许是一些缓存?)。
  2. 我也知道有一个临时文件夹,允许在其中写入临时文件。但是,我相信我无法真正控制这种方法在哪里写入数据。我已经尝试在使用函数调用之前将当前工作目录更改为这个临时文件夹os.chdir(tempfile.gettempdir()),但这没有帮助。

还有其他想法吗?我不认为我在做一些特别不寻常的事情......

细节

我正在使用 python 3.7 和 azureml-sdk 1.9.0,我可以毫无问题地在本地运行 python 脚本。我目前使用 Azure Functions 扩展版本 0.23.0(以及用于 CI/CD 的 Azure DevOps 管道)从 VSCode 进行部署。

这是我的完整堆栈跟踪:

0 投票
0 回答
341 浏览

python - OSError: 'tor' 在您的系统上不可用。也许它不在你的路径中?

使用的IDE:IntellIJ IDEA

Python应用程序的源代码:

运行 Python 应用程序后出现错误:

0 投票
1 回答
206 浏览

python - OSError: [Errno 9] 安装 pip 时文件描述符错误

最近我尝试用 python 运行一个程序,但是当使用我安装的一个库(Eel)时,它给了我一堆错误。当我尝试卸载库或修复它,或者使用 pip 列出它的位置时也是如此。我想我只是重新安装 python 来修复它,但现在我什至无法安装 pip 而不会出现以下错误:

0 投票
2 回答
35 浏览

python - 我正在尝试制作一个更新壁纸的脚本。它给了我的 OSError

这是我的代码片段:

我得到的错误是:

OSError:[Errno 22] 无效参数:'E:\pranil\python\jee_wallpaper.png'

如何解决这个错误?

编辑:我解决了问题..我只是在 img.save(wall_path) 和 set_background(wall_path) 之间添加了 time.sleep(1)

0 投票
1 回答
492 浏览

python - 有太多 uwsgi OSError 消息

使用 uwsgi 和 nginx 运行 Django 3 python 3.6 应用程序会抛出太多这些!我花了太多时间试图弄清楚,所以欢迎任何帮助。

它们绝对不是客户端断开连接。在网上查找时,我发现了许多 uwsgi ini 配置并尝试了许多,但无济于事。其中大多数是来自没有业务访问该站点的国家/地区的 HEAD 请求,但也有许多正常请求也出现此错误。消息如下所示:

Uwsgi 日志:

Nginx 访问日志:

用户不太可能仅在这 313 毫秒内试图逃离该站点。这是当前运行的 ini 的极简版本:

Nginx:

uwsgi_params:

0 投票
0 回答
90 浏览

python - 尝试重命名文件时出现 Winerror 123

我正在尝试编写一个将文件名作为输入的代码。在我的电脑上找到这个文件,然后根据文件前 2 行的文本更改文件名。

但是,我WinError 123在尝试运行此代码时得到了。