limboy / chat Goto Github PK
View Code? Open in Web Editor NEWa live chat built with python(flask + gevent + apscheduler) + redis
Home Page: http://blog.leezhong.com/tech/2011/10/26/python-comet.html
a live chat built with python(flask + gevent + apscheduler) + redis
Home Page: http://blog.leezhong.com/tech/2011/10/26/python-comet.html
zadd(key,ts,content) ts一样时后一条会重写掉前一条,你是怎么解决的
其它用户登录发言时,admin能看到它的发言,但它的界面跳转到post_content
背景:ie浏览器
{
"content": "3",
"created": "07-14 11:01:49",
"id": 7,
"room_id": "1",
"user": "3"
}
[root@chwch chat]# python bootstrap.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "bootstrap.py", line 258, in
ws.require(requirement)
File "/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
File "/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 569, in resolve
pkg_resources.VersionConflict: (setuptools 0.6c11 (/tmp/tmpu13QMC/setuptools-0.6c11-py2.7.egg), Requirement.parse('setuptools>=3.3'))
why? please help me!
我的setuptools 是14.3.1
Scofier:chat sk$ python bootstrap.py -v 14.3.1
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
No local packages or download links found for zc.buildout==14.3.1
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/private/var/folders/p9/_69nns9s6rs467vj6njph32h0000gn/T/tmp7lcGxh/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
An error occurred when trying to install zc.buildout. Look above this message for any errors that were output by easy_install.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.