blog-python-app icon indicating copy to clipboard operation
blog-python-app copied to clipboard

import utils 是什么包呀

Open xk1yan opened this issue 9 years ago • 2 comments

import utils 我用pip安装了这个包但是依然有错误

File "/home/work/blog-python-app/www/transwarp/web.py", line 789, in set_header self._headers[key] = utils.to_str(value) AttributeError: 'module' object has no attribute 'to_str'

xk1yan avatar Dec 06 '15 16:12 xk1yan

Try this https://pypi.python.org/pypi/python-utils/1.5.2

2015-12-07 0:41 GMT+08:00 xk1yan [email protected]:

import utils 我用pip安装了这个包但是依然有错误

File "/home/work/blog-python-app/www/transwarp/web.py", line 789, in set_header self._headers[key] = utils.to_str(value) AttributeError: 'module' object has no attribute 'to_str'

— Reply to this email directly or view it on GitHub https://github.com/yumaojun03/blog-python-app/issues/1.

mo-xiaoxi avatar Dec 15 '15 09:12 mo-xiaoxi

install the python_utils and then use this command import python_utils as utils

15133916507 avatar Aug 10 '17 08:08 15133916507