Dlaczego readline.read_history_file daje mi 'IOError: [Errno 2] Brak takiego pliku lub katalogu'

Mój plik historii Pythona istnieje w ~ / .pyhistory i zawiera następujące elementy:

from project.stuff import *
quit()
from project.stuff import *
my_thing = Thing.objects.get(id=21025)
my_thing
my_thing.child_set.all()
my_thing.current_state
my_thing.summary_set
my_thing.summary_set.all()
[ x.type for x in my_thing.child_set.all() ]
[ x.type for x in my_thing.child_set.all().order_by( 'datesubmitted' ) ]
quit()

Używam virtualenv i virtualenvwrapper do budowania środowisk wirtualnych. Dzisiaj mam problem z odczytaniem linii odczytu w moim pliku historii:

>>> historyPath
'/Users/johndoe/.pyhistory'
>>> readline.read_history_file(historyPath)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory

Plik jest do odczytu i zapisu przeze mnie:

[johndoe@here]# ls -l ~/.pyhistory
-rw-------  1 johndoe  somegroup  325 21 Sep  2012 /Users/johndoe/.pyhistory

Co może spowodować ten problem?

questionAnswers(1)

yourAnswerToTheQuestion