问题标签 [windowserror]

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 回答
3230 浏览

visual-studio-2015 - Visual Studio 错误 microsoft.vshub.server.httphostx64.exe

每次我使用 Visual Studio 2015 时都会遇到同样的错误,

microsoft.vshub.server.httphostx64.exe 停止工作。

附上截图

0 投票
2 回答
6091 浏览

python - 如何从给定的文件目录中打开随机图像?

我正在尝试从此目录打开图像,但无法打开。它给了我以下错误:

WindowsError:[错误 123] 文件名、目录名或卷标语法不正确。

这是我的代码:

在这里,文件夹背景中有很多图像。我想打开一个随机图像。但是在运行程序时,我得到了WindowsError

我究竟做错了什么?

编辑 1

我试过这个:

但是我得到了错误:

WindowsError:[错误 123] 文件名、目录名或卷标语法不正确:'C:\Users\rkp10\AppData\Local\Google\Chrome\User Data\Default\Extensions\laookkfknpbbblfpciffpaejjkokdgca\0.91.6_0\backgrounds\ *.png/ '

编辑 2

我试过这个:

现在我没有收到错误,但它也没有打开图像。

编辑 3

我也试过:

但再次得到以下错误:

Traceback(最近一次调用最后一次):文件“G:\Grade 12 Project\auto.py”,第 4 行,在 a=random.choice(os.listdir(folder)) WindowsError: [Error 123] The filename, directory name ,或卷标语法不正确:'C:\Users\rkp10\AppData\Local\Google\Chrome\User Data\Default\Extensions\laookkfknpbbblfpciffpaejjkokdgca'

这里(黄色突出显示的部分)是存储我的图像的目录。

目录图片

0 投票
1 回答
810 浏览

python - Python 7-Zip SubProcess - WindowsError: [Error 5] Access is denied

I am getting a "WindowsError: [Error 5] Access is denied" error in my Python 2.7 script. There is no folder listed after the Access is denied message. I am not an administrator, but have full read/write/execute/modify security set for both the target .7z file and the output folder. Here is the relevant code:

0 投票
4 回答
8341 浏览

python - pytesseract 错误 Windows 错误 [错误 2]

您好我正在尝试使用 python 库 pytesseract 从图像中提取文本。请找到代码:

但是出现了以下错误:

我没有找到具体的解决方案。谁能帮我做什么。还有什么要下载或从哪里可以下载等等。

提前致谢 :)

0 投票
2 回答
392 浏览

python - Python pathlib glob 函数在 WindowsError 上失败:[123]?

我编写了以下 python 函数,它返回文件地理数据库路径的 python 列表。请注意,这input_folder是一个原始字符串,不包含 unicode 字符。

我遇到的问题是该pathlib glob方法在目录中的文件路径中遇到 unicode 字符时失败。

我尝试了以下但仍然失败,我认为这是因为我没有转换glob生成器遇到的路径。

返回的错误信息是:

任何帮助处理以下错误将不胜感激。

0 投票
1 回答
432 浏览

python - 重命名txt文件。编辑版本:[错误 183] 当文件已存在时无法创建文件

我正在使用 python 2.7x。我对 python 很陌生,非常感谢你的帮助。我已经阅读了许多帖子,包括下面显示的关于此错误的一些帖子:

WindowsError:[错误 32] 进程无法访问该文件,因为它正被另一个进程使用:'new.dat' --> 我的文件关闭指令已经结束。

python 2 [错误 32] 该进程无法访问该文件,因为它正在被另一个进程使用--> 我无法使用 shutil,因为我正在使用的 python 程序中有一些错误,我无法像我的计算机一样编辑路径受行政保护。

在 Python 中重命名文件--> 遵循建议后,我得到了 NameError: name 'rename' is not defined... :/

等等等等

在尝试纠正我的代码后,我仍然遇到同样的错误。

我想做的是:我读取目录中的文件,如果任何文件包含特定字符串,我将重命名文本文件(即 first.txt 到 firstfound.txt。)

编辑版本:在重命名文件之前,我尝试移动 abc.close():

但我有这个错误,而不是最后一行。os.rename(oldfile,newfile) WindowsError: [错误 183] 当该文件已存在时无法创建该文件。我的文件夹中没有新名称的文件。非常感谢您的建议!

编辑版本 2:我也尝试了这组其他代码,但它给了我 WindowsError:[错误 5] 访问被拒绝。请问有没有因为没有管理员权限而无法重命名txt文件的情况?谢谢!

初始版本:我得到的错误是在 os.rename 行。“WindowsError:[错误 32] 该进程无法访问该文件,因为它正被另一个进程使用”

我的整个程序代码如下图:

我不明白为什么这个错误仍然存​​在。(我已关闭所有文件和文件夹)。非常感谢!

0 投票
0 回答
280 浏览

python - 无法使用moviepy将视频与python连接起来

这是代码

当我运行时遇到这样的错误

请帮我 !

0 投票
1 回答
4983 浏览

python-2.7 - Pytesseract Image_to_string 返回 Windows 错误:Python 中的访问被拒绝错误

我尝试使用 Pytesseract 从图像中读取文本。我在运行以下脚本时收到拒绝访问消息。

当我运行脚本时,我得到以下错误

0 投票
0 回答
949 浏览

python - 如何修复 subprocess.call() 错误:WindowsError:[错误 5] 访问被拒绝?

你好!

我试图进行 subprocess.call() 将当前驱动器更改为 C: 但它给了我一个 WindowsError 说访问被拒绝。这是完整的错误:

这是我的代码:

任何提供的帮助,甚至是建议,都将不胜感激。

提前致谢!

0 投票
1 回答
461 浏览

python - Github python脚本挂起:“WindowsError:[错误2]系统找不到指定的文件”

我正在运行一个python 脚本,它从数据库中导出 xml,将记录转换为 PDF,然后尝试将 xml 和 pdf 文件上传到 github 存储库。导出和 pdf 转换工作正常,但该过程随后挂起并输出以下错误消息:

我的问题是我不确定脚本在哪里失败。“WindowsError: [Error 2] The system cannot find the file specified”指的是哪个文件?我如何解决它?谢谢!