Marshall,

It's a bit lengthy, but here goes:
~~~~~~~~~~~~~~~~~~~~~~
sage: pari(7).isprime()
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call
last)

/home/mdobbs/sage-4.2/local/lib/python2.6/site-packages/IPython/
iplib.pyc in raw_input(self, prompt, continue_prompt)
   2185             # only entries starting at first column go to
shadow history
   2186             if line.lstrip() == line:
-> 2187                 self.shadowhist.add(line.strip())
   2188         elif not continue_prompt:
   2189             self.input_hist_raw.append('\n')

/home/mdobbs/sage-4.2/local/lib/python2.6/site-packages/IPython/
history.pyc in add(self, ent)
    235         newidx = self.inc_idx()
    236         #print "new",newidx # dbg
--> 237         self.db.hset('shadowhist',ent, newidx)
    238
    239     def all(self):

/home/mdobbs/sage-4.2/local/lib/python2.6/site-packages/IPython/
Extensions/pickleshare.pyc in hset(self, hashroot, key, value)
     99         d = self.get(hfile, {})
    100         d.update( {key : value})
--> 101         self[hfile] = d
    102
    103

/home/mdobbs/sage-4.2/local/lib/python2.6/site-packages/IPython/
Extensions/pickleshare.pyc in __setitem__(self, key, value)
     84         if parent and not parent.isdir():
     85             parent.makedirs()
---> 86         pickled = pickle.dump(value,fil.open('w'))
     87         try:
     88             self.cache[fil] = (value,fil.mtime)

/home/mdobbs/sage-4.2/local/lib/python2.6/site-packages/IPython/
external/path.pyc in open(self, mode)
    521     def open(self, mode='r'):
    522         """ Open this file.  Return a file object. """
--> 523         return file(self, mode)
    524
    525     def bytes(self):

IOError: [Errno 13] Permission denied: path('/home/mdobbs/.sage/
ipython/db/shadowhist/39')
~~~~~~~~~~~~~~~~
I had run -testall and that came back fairly clean except for this:
~~~~~~~~~~~~~~~~
The following tests failed:
        sage -t  "devel/sage/sage/modules/vector_real_double_dense.pyx"
Total time for all tests: 4311.3 seconds
~~~~~~~~~~~~~~~~
N.B. - as per previous advice, I was running the binary for Ubuntu
9.04 under Ubuntu 9.10

Thanks in advance for any advice...Dave

On Nov 2, 7:25 pm, Marshall Hampton <hampto...@gmail.com> wrote:
> pari(7).isprime() works fine for me in the sage command line with
> sage-4.2.  What error are you getting?
>
> -M. Hampton
>
> On Nov 2, 9:03 pm, davedo2 <dave...@gmail.com> wrote:
>
> > Robert,
>
> > Thanks for setting me straight on True vs 1. I still wonder though
> > about the first part of my question.
> > Why does pari(7).isprime() work just fine in the notebook, but not
> > from the Sage command line? Thank you for being patient...Dave
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to