[SciPy-dev] scipy cow and proc.py

Virgilio, Vincent Vincent.Virgilio at itt.com
Wed May 12 16:10:00 EDT 2004


Hi Pearu,

I dropped proc.py into scipy/Lib, deleted scipy/MANIFEST, the reran
python2.3 setup.py bdist_rpm --fix-python.

The generated scipy rpm included proc.py, and installed it into the
correct location. I was able to import scipy.proc and use various
functions.

It looks like a success.

Unfortunately scipy.cow still hangs during cow.start(), even with a
machine list of local nodes/ports only. Hm, I had this working some
earlier today . . .

Also, I'm having trouble with scipy in help; I type help(), then scipy,
and get the below traceback. I'm using the latest CVS.

Thanks,

Vince Virgilio

------------------------------------------------------------------------
---
AttributeError                            Traceback (most recent call
last)

/nas/static/abi/gs/cal-hifi/metrics/abigs_output/<console>

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/site.py in
__call__(self, *args,
 **kwds)
    307     def __call__(self, *args, **kwds):
    308         import pydoc
--> 309         return pydoc.help(*args, **kwds)
    310
    311 __builtin__.help = _Helper()

/usr/lib/python2.3/site-packages/scipy_base/ppimport.py in
_scipy_pydoc_help_cal
l(self, *args, **kwds)
    379     def _scipy_pydoc_help_call(self,*args,**kwds):
    380         _old_pydoc_help_call.__doc__
--> 381         return _old_pydoc_help_call(self,
*map(_ppresolve_ignore_failure
,args),
    382                                     **kwds)
    383     _pydoc.help.__class__.__call__ =
_new.instancemethod(_scipy_pydoc_he
lp_call,

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in
__call__(self, reque
st)
   1548         else:
   1549             self.intro()
-> 1550             self.interact()
   1551             self.output.write('''
   1552 You are now leaving help and returning to the Python
interpreter.

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in
interact(self)
   1567             request = strip(replace(request, '"', '', "'", ''))
   1568             if lower(request) in ['q', 'quit']: break
-> 1569             self.help(request)
   1570
   1571     def help(self, request):

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in help(self,
request)
   1579             elif request in self.keywords:
self.showtopic(request)
   1580             elif request in self.topics: self.showtopic(request)
-> 1581             elif request: doc(request, 'Help on %s:')
   1582         elif isinstance(request, Helper): self()
   1583         else: doc(request, 'Help on %s:')

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in doc(thing,
title, fo
rceload)
   1375         pager(title % desc + '\n\n' + text.document(object,
name))
   1376     except (ImportError, ErrorDuringImport), value:
-> 1377         print value
   1378
   1379 def writedoc(thing, forceload=0):

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in
resolve(thing, force
load)
   1356     """Given an object or a path to an object, get the object
and its na
me."""
   1357     if isinstance(thing, str):
-> 1358         object = locate(thing, forceload)
   1359         if not object:
   1360             raise ImportError, 'no Python documentation found
for %r' %
thing

/usr/lib/python2.3/site-packages/scipy_base/ppimport.py in
_scipy_pydoc_locate(t
hing, forceload)
    404         _old_pydoc_locate.__doc__
    405         return
_old_pydoc_locate(_ppresolve_ignore_failure(thing),
--> 406                                  forceload=forceload)
    407     _pydoc.locate = _scipy_pydoc_locate
    408

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/pydoc.py in locate(path,
forcelo
ad)
   1332 def locate(path, forceload=0):
   1333     """Locate an object by name or dotted path, importing as
necessary."
""
-> 1334     parts = [part for part in split(path, '.') if part]
   1335     module, n = None, 0
   1336     while n < len(parts):

/var/tmp/python2.3-2.3.3-root/usr/lib/python2.3/string.py in split(s,
sep, maxsp
lit)
    119
    120     """
--> 121     return s.split(sep, maxsplit)
    122 splitfields = split
    123

/usr/lib/python2.3/site-packages/scipy_base/shape_base.py in split(ary,
indices_
or_sections, axis)
    404     except TypeError:
    405         sections = indices_or_sections
--> 406         N = ary.shape[axis]
    407         if N % sections:
    408             raise ValueError, 'array split does not result in an
equal d
ivision'

AttributeError: 'str' object has no attribute

> -----Original Message-----
> From: scipy-dev-bounces at scipy.net
> [mailto:scipy-dev-bounces at scipy.net] On Behalf Of Pearu Peterson
> Sent: Wednesday, May 12, 2004 1:31 PM
> To: SciPy Developers List
> Subject: Re: [SciPy-dev] scipy cow and proc.py
>
>
>
>
> On Wed, 12 May 2004, Virgilio, Vincent wrote:
>
> >
> > Hello,
> >
> > I am trying to use the scipy cow module, and find partial
> functionality
> > in it. It fails in classes which require scipy.proc.
> >
> > I couldn't find proc.py in CVS under /scipy, but it is present in
> > /scipy1.
> >
> > Is there a standard way to access the functionality in proc.py? Or
> > should I checkout /scipy1 and copy proc.py over to /scipy?
>
> Yes, try copying proc.py to scipy/Lib directory, rereun scipy install
> command, and let us know if it works.
>
> Thanks,
> Pearu
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
>

************************************
This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email
in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc.
The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this
email.
************************************




More information about the SciPy-Dev mailing list