Python论坛  - 讨论区

标题:[python-chinese] 是否有类似java applet的技术

2005年04月05日 星期二 13:37

Can Xue xuecan at gmail.com
Tue Apr 5 13:37:23 HKT 2005

是否有这样的python虚拟机,可以像Java Applet那样写出来的程序可以在浏览器中执行?

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月05日 星期二 13:56

Qiangning Hong hongqn at gmail.com
Tue Apr 5 13:56:07 HKT 2005

On Apr 5, 2005 1:37 PM, Can Xue <xuecan at gmail.com> wrote:
> 是否有这样的python虚拟机,可以像Java Applet那样写出来的程序可以在浏览器中执行?

Jython?

-- 
Qiangning Hong
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>

- - - -
Thought for the moment: 
Somewhere in Tenafly, New Jersey, a chiropractor is viewing "Leave it
to Beaver"!

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月05日 星期二 14:56

Liming_Do Liming_Do at smics.com
Tue Apr 5 14:56:48 HKT 2005

我在安装SCG1.2时,执行python setup.py install出现如下错误

\Python\mems-exchange\scgi-1.2>python setup.py install
running install
running build
running build_py
running build_ext
building 'scgi.passfd' extension
C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3
/GX /DNDEBUG -IC:\Python23\include -IC:\Python23\PC /Tcscgi/passfd.c /Fobuild\te
mp.win32-2.3\Release\scgi/passfd.obj
passfd.c
scgi/passfd.c(20) : fatal error C1083: Cannot open include file: 'sys/socket.h':
 No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"' fail
ed with exit status 2

错误信息的意思象是在VC98的编译环境中找不到'sys/socket.h'这个头文件.
我找到目录C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC\SYS查看,这里没有这个头文件。
请问该如何解决这个问题?

Liming

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月05日 星期二 15:20

Liming_Do Liming_Do at smics.com
Tue Apr 5 15:20:33 HKT 2005

Bo Yang,
你的SCGI是怎么安装的?
是不是只能在linux的环境下,看包含的头文件似乎不是使用VC来编译

Liming

-----原始邮件-----
发件人: Liming_Do 
发送时间: 2005年4月5日 14:57
收件人: python-cn at googlegroups.com; python-chinese at lists.python.cn
主题: 安装SCGI找不到头文件的问题



我在安装SCG1.2时,执行python setup.py install出现如下错误

\Python\mems-exchange\scgi-1.2>python setup.py install
running install
running build
running build_py
running build_ext
building 'scgi.passfd' extension
C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3
/GX /DNDEBUG -IC:\Python23\include -IC:\Python23\PC /Tcscgi/passfd.c /Fobuild\te
mp.win32-2.3\Release\scgi/passfd.obj
passfd.c
scgi/passfd.c(20) : fatal error C1083: Cannot open include file: 'sys/socket.h':
 No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"' fail
ed with exit status 2

错误信息的意思象是在VC98的编译环境中找不到'sys/socket.h'这个头文件.
我找到目录C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC\SYS查看,这里没有这个头文件。
请问该如何解决这个问题?

Liming

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月06日 星期三 09:14

Bo Yang boyang at mac.com
Wed Apr 6 09:14:01 HKT 2005

scgi好像不能在windows上跑。试试别的吧(比如mod_python).

- bo
-------------------------------------------
http://mail.mems-exchange.org/pipermail/quixote-users/2003-July/ 
001797.html

On Wed, Jul 23, 2003 at 03:36:13PM -0400, Graham Fawcett wrote:
 > Neil, I haven't used scgi, and last November you posted that you  
hadn't
 > had any success getting scgi to work on Windows (you noted that "lack  
of
 > socket.fromfd" was the major show-stopper).

My memory is a little fuzzy but I think the lack of fromfd was a problem
for FCGI.py.  I think there is a way to make FastCGI work on Windows but
I don't know how to do it.  I vaguely recall that there is a really ugly
fromfd() hack for Win32 in Perl-land somewhere.

 > Any chance that the Apache2 scgi might work on Win32?

mod_scgi for Apache 1.3 almost certainly will not compile in Windows.
That could be fixed but it's probably better to use Apache 2.

mod_scgi for Apache 2 _should_ work on Windows (the apr helps a lot
here).  That hasn't been tested though, AFAIK.

The Python scgi package will not work on Windows.  It uses Unix specific
APIs like fork(), sendmsg(), recvmsg() and socketpair().  If you wanted
to use Quixote/SCGI on Windows you would have to come up with your own
solution (e.g. use threads instead of fork() and fd passing).

Does anyone know how mod_fastcgi works on Windows?  Does it spawn
multiple processes?

   Neil


On Apr 5, 2005, at 3:20 PM, Liming_Do wrote:

> Bo Yang,
> 你的SCGI是怎么安装的?
> 是不是只能在linux的环境下,看包含的头文件似乎不是使用VC来编译
>
> Liming
>
> -----原始邮件-----
> 发件人: Liming_Do
> 发送时间: 2005年4月5日 14:57
> 收件人: python-cn at googlegroups.com; python-chinese at lists.python.cn
> 主题: 安装SCGI找不到头文件的问题
>
>
>
> 我在安装SCG1.2时,执行python setup.py install出现如下错误
>
> \Python\mems-exchange\scgi-1.2>python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building 'scgi.passfd' extension
> C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo  
> /Ox /MD /W3
> /GX /DNDEBUG -IC:\Python23\include -IC:\Python23\PC /Tcscgi/passfd.c  
> /Fobuild\te
> mp.win32-2.3\Release\scgi/passfd.obj
> passfd.c
> scgi/passfd.c(20) : fatal error C1083: Cannot open include file:  
> 'sys/socket.h':
>  No such file or directory
> error: command '"C:\Program Files\Microsoft Visual  
> Studio\VC98\BIN\cl.exe"' fail
> ed with exit status 2
>
> 错误信息的意思象是在VC98的编译环境中找不到'sys/socket.h'这个头文件.
> 我找到目录C:\Program Files\Microsoft Visual  
> Studio\VC98\CRT\SRC\SYS查看,这里没有这个头文件。
> 请问该如何解决这个问题?
>
> Liming
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4066 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20050406/6180337f/attachment.bin

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号