Calibre content server crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Confirmed
|
Low
|
Unassigned | ||
calibre (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
Bug Description
I started the calibre content server from preferences on port 9090 with a custom username and password. When
I try to access it, either from a web browser via the test server option or using Calibre Companion I get a 500 server error.
There is this traceback in the calibre logs:
[26/Feb/
File "/usr/lib/
response.body = self.handler()
File "/usr/lib/
self.body = self.oldhandler
File "/usr/lib/
return self.callable(
File "/usr/lib/
ans = func(*args, **kwargs)
File "/usr/lib/
self.secret)
File "/usr/lib/
ha1 = get_ha1(realm, auth.username)
File "/usr/lib/
return md5_hex('%s:%s:%s' % (username, realm, password))
File "/usr/lib/
md5_hex = lambda s: md5(ntob(
File "/usr/lib/
assert_
File "/usr/lib/
raise TypeError("n must be a native str (got %s)" % type(n).__name__)
TypeError: n must be a native str (got unicode)
[26/Feb/
File "/usr/lib/
response.body = self.handler()
File "/usr/lib/
self.body = self.oldhandler
File "/usr/lib/
return self.callable(
File "/usr/lib/
ans = func(*args, **kwargs)
File "/usr/lib/
self.secret)
File "/usr/lib/
ha1 = get_ha1(realm, auth.username)
File "/usr/lib/
return md5_hex('%s:%s:%s' % (username, realm, password))
File "/usr/lib/
md5_hex = lambda s: md5(ntob(
File "/usr/lib/
assert_
File "/usr/lib/
raise TypeError("n must be a native str (got %s)" % type(n).__name__)
TypeError: n must be a native str (got unicode)
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: calibre 2.5.0+dfsg-1
ProcVersionSign
Uname: Linux 3.16.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Feb 26 19:00:30 2015
InstallationDate: Installed on 2014-11-20 (98 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/zsh
SourcePackage: calibre
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in calibre (Ubuntu): | |
importance: | Undecided → Medium |
importance: | Medium → Low |
Changed in calibre: | |
status: | New → Confirmed |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → Low |
no longer affects: | calibre |
I can confirm this bug.
I found some background info.
It is refered to and explained here
https:/ /bitbucket. org/cherrypy/ cherrypy/ issue/1285/ n-must- be-a-native- str-got- unicode