在 2016年3月4日星期五 UTC+8上午2:37:30,Yibing Liu写道:
>
> Hello Everyone, I am installing an app from an .w2p file. However I get an 
> error message "unable to install application". And I add the following code 
> in gluon/admin.py app_install:
> except Exception:
>         import traceback
>         print traceback.format_exc()
>         if did_mkdir:
>             rmtree(path)
>         return 0
> Then I get the following message:
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2016
> Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
> Database drivers available: pymysql, imaplib, sqlite3, pg8000, pyodbc, 
> pymongo
> please visit:
> http://127.0.0.1:8000/
> starting browser...
> Traceback (most recent call last):
>   File "C:\Users\liuyibing\Desktop\�ĵ�\web2py2.12.3\gluon\admin.py", line 
> 239, in app_install
>     w2p_unpack(upname, path)
>   File "C:\Users\liuyibing\Desktop\�ĵ�\web2py2.12.3\gluon\fileutils.py", 
> line 285, in w2p_unpack
>     untar(tarname, path)
>   File "C:\Users\liuyibing\Desktop\�ĵ�\web2py2.12.3\gluon\fileutils.py", 
> line 228, in untar
>     _extractall(file, dir)
>   File "C:\Users\liuyibing\Desktop\�ĵ�\web2py2.12.3\gluon\fileutils.py", 
> line 203, in _extractall
>     ret = tar.extractall(path, members)
>   File "D:\Program Files\Python27\lib\tarfile.py", line 2072, in extractall
>     self.extract(tarinfo, path)
>   File "D:\Program Files\Python27\lib\tarfile.py", line 2109, in extract
>     self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
>   File "D:\Program Files\Python27\lib\tarfile.py", line 2185, in 
> _extract_member
>     self.makefile(tarinfo, targetpath)
>   File "D:\Program Files\Python27\lib\tarfile.py", line 2225, in makefile
>     with bltn_open(targetpath, "wb") as target:
> IOError: [Errno 2] No such file or directory: 
> 'C:\\Users\\liuyibing\\Desktop\\\xce\xc4\xb5\xb5\\web2py2.12.3\\applications\\soma\\uploads\\comtable\\comtable.com_info.96399da6be1c22d1.e783bde781abe9809ae4bfa132303136e698a5e5ada3e6a0a1e59bade68b9be88198e7ae80e7aba0efbc88e590abefbc9ae99c80e6b182e8818ce4bd8de58f8ae4bbbbe8818ce8a681e6b182efbc892e646f63.doc'
>
> It mean that name of some file in the "upload/" folder of my app is too 
> long, could anyone give me some help, thank you.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to