Print

Print


Thanks you very much. I've tried with the new code and I've still the
same problem. I don't know if that BufferedIOBase exception could be
relevant, but I've found there's a module called io under 
ccpnmr3.0/python/ccpnmr/specView could be a conflict with the
namespaces? If so, how could this be solved?


Again, thanks a lot. Best,
Blanca

On Tue, 2014-04-15 at 15:18 +0100, Wayne Boucher wrote:

> OK, it turns out that it wasn't as bad as I thought.  So it allows you
> to open only one spectrum at a time for a CCPN project, which is what
> it was trying to do here.  But there was a bug in that code, so I have
> fixed that now.  But it's odd it gave you that error message, rather
> than the one I triggered because of this bug, so possibly something
> else is wrong somewhere.  Anyway, I have put together a SpecView1.0.4
> now which fixes this bug (and a few others which had crept in):
> 
> 
> 
> http://www.ccpn.ac.uk/downloads/leadingedge
> 
> 
> The installation script has changed, and there are notes about that on
> that webpage as well.
> 
> 
> Wayne
> 
> 
> 
> On 13 Apr 2014, at 15:28, Wayne Boucher wrote:
> 
> 
> 
> > Hello,
> > 
> > 
> > 
> > That BufferedIOBase exception looks like some internal Python error
> > reporting bug.
> > 
> > 
> > The other error is more significant.  It looks like it is trying to
> > open the project as a spectrum, which is clearly wrong and needs
> > fixing.
> > 
> > 
> > Wayne
> > 
> > 
> > On 11 Apr 2014, at 21:13, Blanca López-Méndez <[log in to unmask]>
> > wrote:
> > 
> > 
> > 
> > > Hi,
> > > 
> > > I save a couple of 1d spectra in a specView project. When I try to
> > > open the project I've the following error:
> > > 
> > > Model read finished. Duration 0.951414108276 
> > > Model validity check skipped
> > > Traceback (most recent call last):
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 869, in readCcpn
> > >     self.openSpectrum(dirName)
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 401, in openSpectrum
> > >     openedSpectra = self.openSpectra([filePath,], replace)
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 598, in openSpectra
> > >     spectrum.parent = self.parent
> > > AttributeError: 'NoneType' object has no attribute 'parent'
> > > Error in sys.excepthook:
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python2.7/dist-packages/apport_python_hook.py",
> > > line 66, in apport_excepthook
> > >     from apport.fileutils import likely_packaged,
> > > get_recent_crashes
> > >   File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line
> > > 1, in <module>
> > >     from apport.report import Report
> > >   File "/usr/lib/python2.7/dist-packages/apport/report.py", line
> > > 18, in <module>
> > >     import problem_report
> > >   File "/usr/lib/python2.7/dist-packages/problem_report.py", line
> > > 14, in <module>
> > >     import zlib, base64, time, sys, gzip, struct, os
> > >   File "/usr/lib/python2.7/gzip.py", line 36, in <module>
> > >     class GzipFile(io.BufferedIOBase):
> > > AttributeError: 'module' object has no attribute 'BufferedIOBase'
> > > 
> > > Original exception was:
> > > Traceback (most recent call last):
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 869, in readCcpn
> > >     self.openSpectrum(dirName)
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 401, in openSpectrum
> > >     openedSpectra = self.openSpectra([filePath,], replace)
> > >   File
> > > "/usr/local/soft.new/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py", line 598, in openSpectra
> > >     spectrum.parent = self.parent
> > > AttributeError: 'NoneType' object has no attribute 'parent'
> > > 
> > > Nevertheless, I can open the single spectrum.  How can I open a
> > > project with several spectra?
> > > 
> > > Thanks,
> > > Blanca
> > > 
> > > 
> > > 

-- 
********************************************************
Blanca López Méndez    Spectroscopy and NMR Unit
Structural and Computational Biology Program
Centro Nacional de Investigaciones Oncológicas
C/ Melchor Fernández Almagro, 3 Madrid E-28029. Spain
Tel.: +34-91-7328000(ext.3040/41). Fax.:+34-91-2246976
********************************************************




**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros adjuntos, pueden contener información protegida para el uso exclusivo de su destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de transmisión por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies.