Re: 请教,用py2exe生成的程序, 执行出现错误,winxp好用,win2k出现问题

Joey <[email protected]> Wed, 23 Jan 2008 14:03:44 +0800
Newsgroups gmane.comp.python.chinese
Message-ID <[email protected]>
发现程序在vista上没有问题

把os.makedirs()注视掉后,用py2exe生成,然后在win2k下运行,问题也没有了。

感觉就是os.makedirs()的问题,怪怪。

2008/1/23 Weimin Li <[email protected]>:

>
> 把源代码拷贝到exe相同的路径下试试,不过还是推荐用pyinstaller这个生成单个exe文件感觉更好用.
>  -----Original Message-----
> From: [email protected] [mailto:
> [email protected]] On Behalf Of xxmplus
> Sent: 2008年1月23日 12:47
> To: [email protected]
> Subject: Re: [python-chinese]请教,用py2exe生成的程序,执行出现错误,winxp好用,win2k出现问题
>
> 可能是你没有权限?
>
> 2008/1/23 Joey <[email protected]>:
> > 查了一下代码,是在某行调用了 os.makedirs() 这个函数,
> >
> > 用py2exe做出的exe, 运行会有问题么?
> >
> >
> >
> >
> >
> > 2008/1/23 Joey <[email protected]>:
> >
> > >
> > > 不太明白,
> > >
> > > 应该如何解决呢?
> > > 哈
> > >
> > >
> > > 2008/1/23 xxmplus <[email protected]>:
> > >
> > >
> > >
> > >
> > > > 路径设置问题咯
> > > >
> > > > 2008/1/23 Joey <[email protected] >:
> > > >
> > > >
> > > >
> > > > > Hi All,
> > > > >
> > > > > 我用python写了个command line的程序,用py2exe打包,在win xp下运行良好。
> > > > >
> > > > > 后来换到一台win2k的机器上,运行是出现如下问题
> > > > > C:\Documents and
> > > > > Settings\clab\Desktop\A.TNG\packagertool-1.0.0.1\Packager_J2ME\
> > > > > dist>createjar.exe
> > > > > Traceback (most recent call last):
> > > > >   File "createjar.py", line 385, in <module>
> > > > >   File " createjar.py", line 199, in createJar
> > > > >   File " os.pyc", line 172, in makedirs
> > > > > WindowsError: [Error 3] The system cannot find the path specified:
> ''
> > > > >
> > > > > 不知道该如何解决,比较着急,
> > > > > 希望大家支招。
> > > > >
> > > > > 谢谢。
> > > > >
> > > > > 注:在对应的代码中寻找,对应的行中并没有奇怪的地方。
> > > > >
> > > > >
> > > > > --
> > > > > Best Regard,
> > > > > Tang, Jiyu (Joey)
> > > > > _______________________________________________
> > > > > python-chinese
> > > > > Post: send [email protected]
> > > > > Subscribe: send subscribe to
> [email protected]
> > > > > Unsubscribe: send unsubscribe to
> > [email protected]
> > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Any complex technology which doesn't come with documentation must be
> the
> > best
> > > > available.
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send [email protected]
> > > > Subscribe: send subscribe to [email protected]
> > > > Unsubscribe: send unsubscribe to
> > [email protected]
> > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > > --
> > >
> > >
> > >
> > > Best Regard,
> > > Tang, Jiyu (Joey)
> >
> >
> >
> > --
> >
> >
> > Best Regard,
> > Tang, Jiyu (Joey)
> > _______________________________________________
> > python-chinese
> > Post: send [email protected]
> > Subscribe: send subscribe to [email protected]
> > Unsubscribe: send unsubscribe to  [email protected]
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
>
> --
> Any complex technology which doesn't come with documentation must be the
> best
> available.
> _______________________________________________
> python-chinese
> Post: send [email protected]
> Subscribe: send subscribe to [email protected]
> Unsubscribe: send unsubscribe to  [email protected]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send [email protected]
> Subscribe: send subscribe to [email protected]
> Unsubscribe: send unsubscribe to  [email protected]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
Best Regard,
Tang, Jiyu (Joey)

_______________________________________________
python-chinese
Post: send [email protected]
Subscribe: send subscribe to [email protected]
Unsubscribe: send unsubscribe to  [email protected]
Detail Info: http://python.cn/mailman/listinfo/python-chinese