mailRe: relax 1.3.13/14 oddities


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Jack Howarth on March 26, 2012 - 19:55:
On Mon, Mar 26, 2012 at 07:16:31PM +0200, Edward d'Auvergne wrote:
Hi Jack,

Thank you for updating this!  From memory, I did see a similar problem
when I was using the fink versions of all the software required.
Though I also had many problems with dependency clashes with Python,
wxPython, numpy, and scipy (note this is different to Scientific
Python which is no longer a dependency, see
http://pdb.finkproject.org/pdb/package.php/scipy-py27) - I had to use
the sources and these different relax dependencies had their own
dependencies which were not compatible with each other.  The problem,
I think, was the dependance on different gcc versions, so each was
taking a day or longer to build as fink kept rebuilding the full tool
chain.  Anyway, that's not completely related to this problem and
might already be resolved in fink.

The problem looks more like a wxPython issue.  Would you be able to
tell me the fink repository software and versions you used for this so
I can try to replicate the problem?  Do you use the binary
distribution archive for the dependencies or have fink compile from
the source archives?  I am using XCode 3.2.2, but I don't think using
4.2 will change this problem.  If you had the exact sequence of fink
commnds to set the relax dependencies up, that would be appreciated as
I could then be sure that I have close to the same setup as you.  Then
I could debug and find the exact xwgtk problem, and come up with a
special work around.

Cheers!

Edward

Edward,
    Try the attached packaging placed in /sw/fink/10.4/local/main/finkinfo. I 
don't
know how old your fink installation is. If it is rather old, you might want 
to consider
a clean bootstrap following the instructions on 
http://www.finkproject.org/download/srcdist.php.
You will want to move aside your current fink installation from /sw to 
/sw.old beforehand.
Also make sure you do 'fink selfupdate-cvs' and 'fink update-all' to keep your
trees and installation current. You should be able to just use 'fink install 
relax-py27'
to install relax 1.3.14. I would also consider upgrading your Xcode to 3.2.6 
which
is the last release of the 3.2.x series. Oh, on darwin10, I used the gcc46 
compilers
for the build, when prompted, if that makes any difference.
                     Jack
ps I also have built relax 1.3.14 under fink but had to use the 2.9.3 release 
of 
wxPython because that is the only wxPython they have for python 2.7 in 
macports.
Have you tested relax against the wxPython 2.9.3 release on linux or any 
other target?







On 26 March 2012 18:14, Jack Howarth <howarth@xxxxxxxxxxxxxxxx> wrote:
Edward,
  I am in the process of updating the relax-py and relax packages in fink 
and
macports to the latest release. However I am seeing some oddities with 
the new
gui interface. In both cases, relax 1.3.13 and 1.3.14 exhibits a bug when
executed as 'relax --gui'. The gui interface window opens much larger 
than the
displayed contents. Only if I refresh the window does the contents 
properly
expand out to the actual size of the window (by clicking on the green zoom
button in the window frame twice). If I move aside the window, I also see 
a small
square with a butterfly icon left on the screen. This square can't be 
closed or
moved. Running 'relax --test-suite' is even more problematic as it seems 
to
be trapped in an endless loop of display the squares with the butterfly 
icon
and segfaults on exiting...

% relax --test-suite
/sw/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py:14448: 
UserWarning: wxPython/wxWidgets release number mismatch
 warnings.warn("wxPython/wxWidgets release number mismatch")
Echoing of user function calls has been enabled.




#############################
# System / functional tests #
#############################


.........................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 233 tests in 291.075s

OK




##############
# Unit tests #
##############


................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 1232 tests in 11.183s

OK




#############
# GUI tests #
#############



(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type
.
(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type
.
(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type

(python2.7:9037): Gtk-WARNING **: Unable to find default local directory 
monitor type
..
----------------------------------------------------------------------
Ran 4 tests in 70.926s

OK




###################################
# Summary of the relax test suite #
###################################


# Optional packages/modules
###########################

No tests skipped due to missing modules.

# Synopsis
##########

System/functional tests ......................................... [ OK ]
Unit tests ...................................................... [ OK ]
GUI tests ....................................................... [ OK ]
Synopsis ........................................................ [ OK ]



Segmentation fault

It is odd that the GUI tests pass but that relax segfaults in the process.
                Jack
ps This is on x86_64 fink under darwin10 using Xcode 4.2.

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users
Info2: <<
Package: relax-py%type_pkg[python]
Version: 1.3.14
Revision: 1
Type: python (2.6 2.7)
Source: http://download.gna.org/relax/relax-%v.src.tar.bz2
Source-MD5: d8bb7eebfa4112f95ade4e22c99899a7
SourceDirectory: relax-%v
Depends: python%type_pkg[python], numpy-py%type_pkg[python], 
scientificpython-py%type_pkg[python] (>= 2.9.0), wxgtk2.8-py%type_pkg[python] 
BuildDepends: python%type_pkg[python], scons, numpy-py%type_pkg[python], 
scientificpython-py%type_pkg[python] (>= 2.9.0), 
wxgtk2.8-py%type_pkg[python], fink (>= 0.24.12)
Conflicts: relax-py24, relax-py25, relax-py26, relax-py27
Replaces: relax-py24, relax-py25, relax-py26, relax-py27
#SetCC: gcc-4.2
PatchFile: relax-py.patch
PatchFile-MD5: 74e2711a8688bcf7320cb2949a0041cb 
PatchScript: <<
#!/bin/sh -ev
sed 's|python2.X|python%type_raw[python]|g' < %{PatchFile} |sed 
's|@FINK_PREFIX@|%p|g' | sed 's|@FINK_INSTALL_DIR@|%i|g' | sed 
's|relax-py2X|relax-py%type_pkg[python]|g' | patch -p1
if [ "%m" == "x86_64" ] ; then
perl -pi -e "s|cflags = '-I'|cflags = '-m64 -I'|g" ./sconstruct
perl -pi -e "s|'-bundle',|'-m64', '-bundle',|g" ./sconstruct
else
perl -pi -e "s|cflags = '-I'|cflags = '-m32 -I'|g" ./sconstruct
perl -pi -e "s|'-bundle',|'-m32', '-bundle',|g" ./sconstruct
fi
<<
# running relax compiles the scripts
InfoTest: TestScript: ./relax --test-suite; /usr/bin/find 
%i/lib/relax-py%type_pkg[python] -name '*.pyc' -delete; /usr/bin/find 
%i/lib/relax-py%type_pkg[python] -name '*.pyo' -delete; exit 0 :
CompileScript: <<
%p/bin/python%type_raw[python] %p/bin/scons 
<<
InstallScript: <<
mkdir -p %i/lib
mkdir -p %i/bin
%p/bin/python%type_raw[python] %p/bin/scons install
/usr/bin/find %i/lib/relax-py%type_pkg[python] -name '*.pyc' -delete
/usr/bin/find %i/lib/relax-py%type_pkg[python] -name '*.pyo' -delete
rm %i/bin/relax
<<
PostInstScript: <<
update-alternatives --install %p/bin/relax relax 
%p/lib/relax-py%type_pkg[python]/relax %type_pkg[python]
%p/bin/python%type_raw[python] -O 
%p/lib/python%type_raw[python]/compileall.py -q 
%p/lib/relax-py%type_pkg[python]
cd %p/lib/relax-py%type_pkg[python]
perl -pi -e 's|%i|%p|g' ./sconstruct
relax --test
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
  update-alternatives --remove relax %p/lib/relax-py%type_pkg[python]/relax
fi
/usr/bin/find %p/lib/relax-py%type_pkg[python] -name '*.pyc' -delete
/usr/bin/find %p/lib/relax-py%type_pkg[python] -name '*.pyo' -delete
<<
Description: Protein dynamics by NMR relax. data analysis
License: GPL
Homepage: http://www.nmr-relax.com/
Maintainer: None <fink-devel@xxxxxxxxxxxxxxxxxxxxx>
<<
diff -uNr relax-1.3.5/relax relax-1.3.5.new/relax
--- relax-1.3.5/relax   2010-05-21 11:00:31.000000000 -0400
+++ relax-1.3.5.new/relax       2010-06-24 15:27:29.000000000 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2.X
 
 
###############################################################################
 #                                                                            
 #
diff -uNr relax-1.3.5/scons/install.py relax-1.3.5.new/scons/install.py
--- relax-1.3.5/scons/install.py        2010-05-21 11:00:21.000000000 -0400
+++ relax-1.3.5.new/scons/install.py    2010-06-24 15:28:06.000000000 -0400
@@ -112,8 +112,8 @@
     ###############
 
     # Run relax to create the *.pyc files.
-    print("\nRunning relax to create the byte-compiled *.pyc files.")
-    system(env['SYMLINK'] + " --test")
+    # print("\nRunning relax to create the byte-compiled *.pyc files.")
+    # system(env['SYMLINK'] + " --test")
 
     # Final print out.
     print("\n\n\n")
--- relax-1.3.14/sconstruct.orig        2012-03-19 12:05:34.000000000 -0400
+++ relax-1.3.14/sconstruct     2012-03-26 11:56:13.000000000 -0400
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! @FINK_PREFIX@/bin/python2.x
 # That line was just so programs like gvim or emacs will understand that 
this is Python code!  Don't
 # make this file executable.
 
@@ -99,7 +99,7 @@
     SYS = SYSTEM
 
     # Mac OS X installation path.
-    INSTALL_PATH = sys.prefix + sep + 'local'
+    INSTALL_PATH = '@FINK_INSTALL_DIR@' + sep + 'lib'
 
 
 # All other operating systems.
@@ -116,10 +116,10 @@
 ###############
 
 # Relax installation directory.
-RELAX_PATH = INSTALL_PATH + sep + 'relax'
+RELAX_PATH = INSTALL_PATH + sep + 'relax-py2X'
 
 # Installation path for binaries.
-BIN_PATH = INSTALL_PATH + sep + 'bin'
+BIN_PATH = '@FINK_INSTALL_DIR@' + sep + 'bin'
 
 # Symbolic link installation path.
 SYMLINK = BIN_PATH + sep + 'relax'
@@ -497,11 +497,11 @@
                  'relax_fit.c']
 
         # Construct the python include path (for Python.h).
-        py_include_minpath = sys.prefix + path.sep + 'include'
+        py_include_minpath = '@FINK_PREFIX@' + path.sep + 'include'
         py_include_fullpath = py_include_minpath + path.sep + 'python' + 
`sys.version_info[0]` + '.' + `sys.version_info[1]`
 
         # Construct the python bin path.
-        py_bin_minpath = sys.prefix + path.sep + 'bin'
+        py_bin_minpath = '@FINK_PREFIX@' + path.sep + 'bin'
         py_bin_fullpath = py_bin_minpath + path.sep + 'python' + 
`sys.version_info[0]` + '.' + `sys.version_info[1]`
 
         # Get the numpy include path (for numpy/arrayobject.h).
@@ -515,9 +515,9 @@
             cflags = '/nologo /I\"' + py_include_minpath + '\" /I\"' + 
numpy_path + '\"'
         else:
             cflags = '-I' + py_include_fullpath + ' -I' + numpy_path
-        if env['PLATFORM'] == 'darwin':
-            for arch in ['i386', 'x86_64', 'ppc', 'ppc64']:
-                cflags = '%s -arch %s' % (cflags, arch)
+        # if env['PLATFORM'] == 'darwin':
+        #    for arch in ['i386', 'x86_64', 'ppc', 'ppc64']:
+        #        cflags = '%s -arch %s' % (cflags, arch)
 
         # Python library path.
         libpath = ''

Related Messages


Powered by MHonArc, Updated Mon Mar 26 20:20:47 2012