IIS中的Python脚本 [英] Python scripts in IIS

查看:98
本文介绍了IIS中的Python脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中执行Python脚本时遇到问题。我有错误消息

"%1不是有效的Win32应用程序。任何人都知道这是关于什么的吗?


Jon Cosby

解决方案

Jon Cosby写道:


我在IIS中执行Python脚本时遇到问题。我有错误消息
%1不是有效的Win32应用程序。有人知道这是关于什么的吗?




在某个地方,有些东西试图用

参数执行一个包含%1的应用程序。 ,通常用其他东西提供的

变量字符串代替。很明显,这不会发生。




如果没有更多细节,我怀疑任何人都可以提供更多帮助。也许你应该发布一些代码片段。
发布一些代码片段。另外,如果错误消息实际上包含了更多信息(例如Python追踪会有的话),那么剪切并粘贴整个输出而不仅仅是重新输入部分它(如果那就是你b
$ b)。


-Peter


" ;彼得汉森 < PE *** @ engcorp.com>写了

我在IIS中执行Python脚本时遇到了麻烦。我有错误
消息%1不是有效的Win32应用程序。有人知道这是关于什么的吗?
在某个地方,某些东西试图用一个包含%1的
参数来执行一个应用程序,该参数通常被一个由某个东西提供的变量字符串替换。其他。显然这不会发生在这里。

没有更多细节,我怀疑任何人都可以提供更多帮助。也许你应该发布一些代码片段。此外,如果错误消息实际上包含更多信息(例如Python追踪会有的话),cut和



粘贴整个输出而不仅仅是重新输入部分它(如果这就是你所做的
)。

-Peter




我和所有的人一样我的剧本,别无其他。


Jon


Jon Cosby写道:


彼得汉森 < PE *** @ engcorp.com>写了

没有更多细节,我怀疑任何人都可以提供更多帮助。



我的所有脚本都没有其他内容。




请返回并重新阅读上一句话。如果你不希望
提供一些上下文,你就不可能得到有用的答案。


我会再试一次:*什么*给你那个错误信息?某些程序

打印它,某处。它在日志文件中吗?打印到控制台?

在弹出对话框中?在浏览器屏幕上?在您看到错误之前,您确切地命令了什么?
类型。你安装了Python吗?

什么版本?等等......


-Peter


I''m having trouble executing Python scripts in IIS. I have the error message
"%1 is not a valid Win32 application". Anyone know what this is about?

Jon Cosby

解决方案

Jon Cosby wrote:


I''m having trouble executing Python scripts in IIS. I have the error message
"%1 is not a valid Win32 application". Anyone know what this is about?



Somewhere, something is attempting to execute an application with an
argument that contains "%1", which is normally substituted with a
variable string supplied by something else. Clearly that isn''t happening
here.

Without more detail, I doubt anyone can help much more. Maybe you should
post some snippets of code. Also, if the error message actually includes
more information (e.g. such as a Python traceback would have), cut and paste
the entire output rather than just retyping a part of it (if that''s what you
did).

-Peter


"Peter Hansen" <pe***@engcorp.com> wrote

I''m having trouble executing Python scripts in IIS. I have the error message "%1 is not a valid Win32 application". Anyone know what this is about?
Somewhere, something is attempting to execute an application with an
argument that contains "%1", which is normally substituted with a
variable string supplied by something else. Clearly that isn''t happening
here.

Without more detail, I doubt anyone can help much more. Maybe you should
post some snippets of code. Also, if the error message actually includes
more information (e.g. such as a Python traceback would have), cut and


paste the entire output rather than just retyping a part of it (if that''s what you did).

-Peter



I get the same line with all of my scripts, nothing else.

Jon


Jon Cosby wrote:


"Peter Hansen" <pe***@engcorp.com> wrote

Without more detail, I doubt anyone can help much more.



I get the same line with all of my scripts, nothing else.



Please go back and reread the previous sentence again. If you won''t
provide some context, you won''t likely get helpful answers.

I''ll try again: *what* is giving you that error message? Some program
prints it, somewhere. Is it in a log file? Printed to the console?
In a popup dialog box? On the browser screen? What exact command did you
type just before you saw that error. Have you installed Python?
What version? etc etc etc...

-Peter


这篇关于IIS中的Python脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆