View Single Post
Old 08-12-2009, 04:15 AM   #1
acidzebra
Liseuse Lover
acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.acidzebra ought to be getting tired of karma fortunes by now.
 
acidzebra's Avatar
 
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
Conflict between Calibre and mounted TrueCrypt device volume

Hi all,


This may be an unusual/edge case, I don't know. I have an external USB hard drive entirely encrypted (so not a separate truecrypt container on a partition, nor a encrypted partition, but a device-hosted truecrypt volume) using TrueCrypt's volume creation wizard and choosing the 'encrypt a non-system partition/drive' option. If this device is mounted via truecrypt, calibre fails to detect the reader properly when it is subsequently attached (reader shows up with 0KB mem, card is not detected, get the following error:

ERROR: Error: Error communicating with device
unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
File "calibre\gui2\device.pyo", line 57, in run
File "calibre\gui2\device.pyo", line 199, in _books
File "calibre\devices\prs505\driver.pyo", line 103, in books
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

)

This behavior only occurs when the encrypted drive is mounted, not when it is attached but not mounted, it also does not happen when a truecrypt container/file is mounted.

Behavior occurs on windows XP, any of the Calibre 0.6.x series, TrueCrypt 6.2a and earlier. I will test this under linux shortly.

Of course it is no big deal to unmount the drive before attaching the reader (if slightly annoying), but the behavior is a little odd so I thought I'd mention it.
acidzebra is offline   Reply With Quote