[Bug 4283] New: hg serve fails on python 2.7.7
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Jun 17 11:50:44 CDT 2014
http://bz.selenic.com/show_bug.cgi?id=4283
Priority: normal
Bug ID: 4283
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg serve fails on python 2.7.7
Severity: bug
Classification: Unclassified
OS: Windows
Reporter: antonxx at gmx.de
Hardware: PC
Status: UNCONFIRMED
Version: 3.0.1
Component: hgweb
Product: Mercurial
Created attachment 1775
--> http://bz.selenic.com/attachment.cgi?id=1775&action=edit
the same log as attachment
I just figured it out:
1. is use windows 7 64 bit german
2. I install python 2.7.6 32 bit
3. I install mercurial-3.0.1.win32-py2.7.exe
4. I go in a mercurial repo and type on the command line:
d:> hg serve
5. and I can see my repo in the browser on http://localhost:8000
Now:
a. I uninstall mercurial & python
b. I install now python 2.7.7. 32 bit (python-2.7.7.msi)
c. I install the same mercurial again and do
the previous steps 3.) 4.) and 5.)
d. now it crashes with the following output as soon as I
access it with my browser:
Log of the console:---------------------
D:\util>hg serve
listening at http://localhost:8000/ (bound to *:8000)
127.0.0.1 - - [17/Jun/2014 17:36:10] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [17/Jun/2014 17:36:10] "GET /static/style-paper.css HTTP/1.1" 500
-
127.0.0.1 - - [17/Jun/2014 17:36:10] Exception happened during processing
request '/static/style-paper.css':
Traceback (most recent call last):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 80, in do_POST
self.do_write()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 73, in do_write
self.do_hgweb()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 140, in do_hgweb
for chunk in self.server.application(env, self._start_response):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 136, in __call__
return self.run_wsgi(req)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 265, in run_wsgi
req.respond(inst, ctype)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\request.py",
line 86, in respond
raise TypeError('header value must be string: %r' % (v,))
TypeError: header value must be string: u'text/css'
127.0.0.1 - - [17/Jun/2014 17:36:10] "GET /static/mercurial.js HTTP/1.1" 200 -
127.0.0.1 - - [17/Jun/2014 17:36:10] "GET /static/hglogo.png HTTP/1.1" 500 -
127.0.0.1 - - [17/Jun/2014 17:36:10] "GET /static/feed-icon-14x14.png HTTP/1.1"
500 -
127.0.0.1 - - [17/Jun/2014 17:36:10] Exception happened during processing
request '/static/hglogo.png':
Traceback (most recent call last):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 80, in do_POST
self.do_write()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 73, in do_write
self.do_hgweb()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 140, in do_hgweb
for chunk in self.server.application(env, self._start_response):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 136, in __call__
return self.run_wsgi(req)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 265, in run_wsgi
req.respond(inst, ctype)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\request.py",
line 86, in respond
raise TypeError('header value must be string: %r' % (v,))
TypeError: header value must be string: u'image/png'
127.0.0.1 - - [17/Jun/2014 17:36:10] Exception happened during processing
request '/static/feed-icon-14x14.png':
Traceback (most recent call last):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 80, in do_POST
self.do_write()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 73, in do_write
self.do_hgweb()
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\server.py",
line 140, in do_hgweb
for chunk in self.server.application(env, self._start_response):
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 136, in __call__
return self.run_wsgi(req)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py",
line 265, in run_wsgi
req.respond(inst, ctype)
File "D:\Programme\python27\lib\site-packages\mercurial\hgweb\request.py",
line 86, in respond
raise TypeError('header value must be string: %r' % (v,))
TypeError: header value must be string: u'image/png'
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list