Sean Lake | 1 Jun 2010 06:44
Picon

scipy problems

Hello all,

I recently did a fink update-all and now scipy is broken. I launch /sw/bin/python2.6 and try to run:

import scipy.stats

and I get the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/sw/lib/python2.6/site-packages/scipy/stats/__init__.py", line 7, in <module>
    from stats import *
  File "/sw/lib/python2.6/site-packages/scipy/stats/stats.py", line 203, in <module>
    from morestats import find_repeats #is only reference to scipy.stats
  File "/sw/lib/python2.6/site-packages/scipy/stats/morestats.py", line 7, in <module>
    import distributions
  File "/sw/lib/python2.6/site-packages/scipy/stats/distributions.py", line 27, in <module>
    import vonmises_cython
  File "numpy.pxd", line 30, in scipy.stats.vonmises_cython (scipy/stats/vonmises_cython.c:2939)
ValueError: numpy.dtype does not appear to be the correct type object

This is on both my PPC machine and Intel. 
>From the Intel machine: fink --version
Package manager version: 0.29.10
Distribution version: selfupdate-rsync Mon May 31 16:21:50 2010, 10.6, x86_64

The python version info:
Python 2.6.5 (r265:79063, May 13 2010, 02:07:38) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin

The scipy and numpy version info:
(Continue reading)

Sean Lake | 1 Jun 2010 06:54
Picon

Failed: phase compiling: gcc44-4.4.4-1000 failed

Hello all,

I'm on a PPC machine this time. Here is the error message:

patch -p1 < /sw/fink/dists/unstable/main/finkinfo/languages/gcc44.patch
patching file libjava/configure.ac
Hunk #1 succeeded at 139 (offset 57 lines).
patching file libjava/configure
Hunk #1 succeeded at 1021 with fuzz 1 (offset 3 lines).
Hunk #2 succeeded at 1975 (offset 123 lines).
/var/tmp/tmp.1.9FN3tj
#!/bin/bash -ev
 set +x
 if [ -e /usr/local/lib/libgmp.a ] || [ -e /usr/local/lib/libgmp.dylib ]; then
    echo "-----WARNING-----WARNING-----WARNING-----"
    echo "You seem to have GMP installed in /usr/local."
    echo "This is known to cause gcc44 to fail to build."
    echo "Please move aside /usr/local and try again."
    echo "-----WARNING-----WARNING-----WARNING-----"
    exit 1
 fi
-----WARNING-----WARNING-----WARNING-----
You seem to have GMP installed in /usr/local.
This is known to cause gcc44 to fail to build.
Please move aside /usr/local and try again.
-----WARNING-----WARNING-----WARNING-----
### execution of /var/tmp/tmp.1.9FN3tj failed, exit code 1

fink version info:

(Continue reading)

Martin Costabel | 1 Jun 2010 08:40
Picon

Re: Failed: phase compiling: gcc44-4.4.4-1000 failed

Sean Lake wrote:
> Hello all,
> 
> I'm on a PPC machine this time. Here is the error message:
> 
> patch -p1 < /sw/fink/dists/unstable/main/finkinfo/languages/gcc44.patch
> patching file libjava/configure.ac
> Hunk #1 succeeded at 139 (offset 57 lines).
> patching file libjava/configure
> Hunk #1 succeeded at 1021 with fuzz 1 (offset 3 lines).
> Hunk #2 succeeded at 1975 (offset 123 lines).
> /var/tmp/tmp.1.9FN3tj
> #!/bin/bash -ev
>  set +x
>  if [ -e /usr/local/lib/libgmp.a ] || [ -e /usr/local/lib/libgmp.dylib ]; then
>     echo "-----WARNING-----WARNING-----WARNING-----"
>     echo "You seem to have GMP installed in /usr/local."
>     echo "This is known to cause gcc44 to fail to build."
>     echo "Please move aside /usr/local and try again."
>     echo "-----WARNING-----WARNING-----WARNING-----"
>     exit 1
>  fi
> -----WARNING-----WARNING-----WARNING-----
> You seem to have GMP installed in /usr/local.
> This is known to cause gcc44 to fail to build.
> Please move aside /usr/local and try again.
> -----WARNING-----WARNING-----WARNING-----
> ### execution of /var/tmp/tmp.1.9FN3tj failed, exit code 1
> 
> fink version info:
(Continue reading)

Andrew M. Rappe | 1 Jun 2010 03:48
Favicon

Re: problem with display/image-magick

Dear Dan.

Yes.  For me, downgrading imagemagick as you describe instantly
solves the loss of x-window handles.

% fink install imagemagick-6.4.1-1018
% dpkg -l|grep imagemagick
ii  imagemagick    6.4.1-1018     Image manipulation tools
ii  imagemagick1-s 6.4.1-1018     Image manipulation tools
ii  imagemagick2-d 6.5.8.2-4      Image manipulation tools
ii  imagemagick2-s 6.5.8.2-4      Image manipulation tools

This returns "display" to proper behavior.  I can shrink or grow the
image to any extent, and it never loses its X-window decorations.

% fink install imagemagick-6.5.8.2-4
% dpkg -l|grep imagemagick
ii  imagemagick    6.5.8.2-4      Image manipulation tools
ii  imagemagick1-s 6.4.1-1018     Image manipulation tools
ii  imagemagick2-d 6.5.8.2-4      Image manipulation tools
ii  imagemagick2-s 6.5.8.2-4      Image manipulation tools

This brings back the error.
% display image.jpg
(image has proper x-window decorations; can be moved around desktop, etc)
(view half size)
(image still has proper decorations)
(view half size [2nd time])
(image is a bare rectangle.  Image is seen but no x-window borders.
Cannot be moved or etc.)
(Continue reading)

Andrew M. Rappe | 1 Jun 2010 05:18
Favicon

Re: problem with display/image-magick

Dear Dan,

Yes, downgrading/upgrading imagemagick reversibly fixes/brings back
the error I reported.

% dpkg -l|grep imagemagick
ii  imagemagick    6.5.8.2-4      Image manipulation tools
ii  imagemagick1-s 6.4.1-1018     Image manipulation tools
ii  imagemagick2-d 6.5.8.2-4      Image manipulation tools
ii  imagemagick2-s 6.5.8.2-4      Image manipulation tools

% display image.jpg
(looks fine)
(view half size)
(looks fine)
(view half size)
(loses x window handles; image window cannot be moved etc)

% fink install imagemagick-6.4.1-1018
% dpkg -l|grep imagemagick
ii  imagemagick    6.4.1-1018     Image manipulation tools
ii  imagemagick1-s 6.4.1-1018     Image manipulation tools
ii  imagemagick2-d 6.5.8.2-4      Image manipulation tools
ii  imagemagick2-s 6.5.8.2-4      Image manipulation tools

% display image.jpg
(looks fine no matter how many times viewed half size)

% fink install imagemagick-6.5.8.2-4
(restores erroneous behavior)
(Continue reading)

Martin Costabel | 1 Jun 2010 14:02
Picon

Re: problem with display/image-magick

Andrew M. Rappe wrote:
> Dear Dan,
> 
> Yes, downgrading/upgrading imagemagick reversibly fixes/brings back
> the error I reported.

Did you say what version of X11 you have installed?

--

-- 
Martin

------------------------------------------------------------------------------
Alexander Hansen | 1 Jun 2010 15:28
Picon
Gravatar

Re: scipy problems


On 6/1/10 12:44 AM, Sean Lake wrote:
> Hello all,
> 
> I recently did a fink update-all and now scipy is broken. I launch /sw/bin/python2.6 and try to run:
> 
> import scipy.stats
> 
> and I get the following error:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/sw/lib/python2.6/site-packages/scipy/stats/__init__.py", line 7, in <module>
>     from stats import *
>   File "/sw/lib/python2.6/site-packages/scipy/stats/stats.py", line 203, in <module>
>     from morestats import find_repeats #is only reference to scipy.stats
>   File "/sw/lib/python2.6/site-packages/scipy/stats/morestats.py", line 7, in <module>
>     import distributions
>   File "/sw/lib/python2.6/site-packages/scipy/stats/distributions.py", line 27, in <module>
>     import vonmises_cython
>   File "numpy.pxd", line 30, in scipy.stats.vonmises_cython (scipy/stats/vonmises_cython.c:2939)
> ValueError: numpy.dtype does not appear to be the correct type object
> 
> This is on both my PPC machine and Intel. 
>>From the Intel machine: fink --version
> Package manager version: 0.29.10
> Distribution version: selfupdate-rsync Mon May 31 16:21:50 2010, 10.6, x86_64
> 
> The python version info:
> Python 2.6.5 (r265:79063, May 13 2010, 02:07:38) 
> [GCC 4.2.1 (Apple Inc. build 5659)] on darwin
(Continue reading)

Andrew M. Rappe | 1 Jun 2010 17:20
Favicon

Re: problem with display/image-magick

Dear Martin,

I have Xquartz 2.5.0 (xorg-server 1.7.6)
Installed from X11-2.5.0.dmg:

% ls -l X11-2.5.0.dmg 
-rw-r--r-- <at>  1 rappe  staff  70851244 Mar 29 20:00 X11-2.5.0.dmg
% md5sum X11-2.5.0.dmg
a7097ef93ee12d2c4ac35ebc72d6dc94  X11-2.5.0.dmg
% 

(By the way, I see the same error and same reversible
upgrade/downgrade giving/removing error on an Intel MacBook and a G4
Mini)

Thanks for looking into this.  
Andrew

On Tue, Jun 01, 2010 at 02:02:40PM +0200 or thereabouts, Martin Costabel wrote:
> Andrew M. Rappe wrote:
> >Dear Dan,
> >
> >Yes, downgrading/upgrading imagemagick reversibly fixes/brings back
> >the error I reported.
> 
> Did you say what version of X11 you have installed?
> 
> -- 
> Martin
> 
(Continue reading)

Alexander Hansen | 1 Jun 2010 19:38
Picon
Gravatar

Re: problem with display/image-magick


On 6/1/10 11:20 AM, Andrew M. Rappe wrote:
> Dear Martin,
> 
> I have Xquartz 2.5.0 (xorg-server 1.7.6)
> Installed from X11-2.5.0.dmg:
> 
> % ls -l X11-2.5.0.dmg 
> -rw-r--r-- <at>  1 rappe  staff  70851244 Mar 29 20:00 X11-2.5.0.dmg
> % md5sum X11-2.5.0.dmg
> a7097ef93ee12d2c4ac35ebc72d6dc94  X11-2.5.0.dmg
> % 
> 
> (By the way, I see the same error and same reversible
> upgrade/downgrade giving/removing error on an Intel MacBook and a G4
> Mini)
> 
> Thanks for looking into this.  
> Andrew
> 

I get a different "half size" behavior on 10.5.8/i386 and
10.5.8/powerpc; both machines have Xquartz 2.5 and use quartz-wm as the
window manager. imagemagick is locally built in both cases (rather than
from an unofficial binary distribution), but I'm not sure what vintage
of Xquartz was used.

When I try to view an image at half size, I don't lose my window
decorations, but instead the window flickers like crazy and I can't
close it directly.
(Continue reading)

Sean Lake | 1 Jun 2010 22:53
Picon

Re: scipy problems


On Jun 1, 2010, at 6:28, Alexander Hansen wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 6/1/10 12:44 AM, Sean Lake wrote:
>> Hello all,
>> 
>> I recently did a fink update-all and now scipy is broken. I launch /sw/bin/python2.6 and try to run:
>> 
>> import scipy.stats
>> 
>> and I get the following error:
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/sw/lib/python2.6/site-packages/scipy/stats/__init__.py", line 7, in <module>
>>    from stats import *
>>  File "/sw/lib/python2.6/site-packages/scipy/stats/stats.py", line 203, in <module>
>>    from morestats import find_repeats #is only reference to scipy.stats
>>  File "/sw/lib/python2.6/site-packages/scipy/stats/morestats.py", line 7, in <module>
>>    import distributions
>>  File "/sw/lib/python2.6/site-packages/scipy/stats/distributions.py", line 27, in <module>
>>    import vonmises_cython
>>  File "numpy.pxd", line 30, in scipy.stats.vonmises_cython (scipy/stats/vonmises_cython.c:2939)
>> ValueError: numpy.dtype does not appear to be the correct type object
>> 
>> This is on both my PPC machine and Intel. 
>>> From the Intel machine: fink --version
>> Package manager version: 0.29.10
(Continue reading)


Gmane