problem installing py-scipy port (solved but another problem pops up :-( )

David Tremouilles david.trem at gmail.com
Mon Jun 11 08:43:06 PDT 2007


The bug seems to be known:
From
http://www.nabble.com/Failed:-phase-compiling:-scipy-py25-0.5.2-3-failed-t3873666.html

> This smells like a bug *in* numpy (=scipy-core).
>
> Checking sources: *Indeed*, *in* version scipy-core-py25_1.0.3-1, they
> have renamed the "get_path" function to "get_path_from_frame",
> apparently without *documenting* it. *In* their own
> numpy/*doc*/DISTUTILS.txt file, the function is still mentioned as
> "get_path", as it used to be called *in* the older version
> scipy-core-py25_1.0.1-1. And scipy (which is developed by the same
> guys!) still uses the old name. I wonder how they manage to compile
> their stuff.

>Martin:  Thanks for catching this - patching the setup.py files to use
>get_path_from_frame *instead* of get_path fixes this one.

Changing manually the incriminated files in macports "work/scipy-0.5.2"
directory does the trick...
(search all files containing "get_path" and replace by
"get_path_from_frame")

But now, I have another problem. I get the following error:
g95: unrecognized option '-shared'

Does somebody know what it could come from ?

David

2007/6/9, David Tremouilles <david.trem at gmail.com>:
>
> Hello,
>
>  I cannot install py-scipy port. I get the following output.
> Could somebody help?
> (py-numpy 1.0.3 is installed
> macports is 1.442
> port selfupdate and ugrapde outdated freshly done...)
>
>
> David
>
> $ sudo port install py-scipy
> --->  Building py-scipy with target build
> Error: Target com.apple.build returned: shell command " cd
> "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-
> 0.5.2" && /opt/local/bin/python2.4 setup.py build " returned error 1
> Command output:   warnings.warn(self.notfounderror.__doc__)
>   NOT AVAILABLE
>
> non-existing path in 'Lib/maxentropy': 'doc'
> Traceback (most recent call last):
>   File "setup.py", line 55, in ?
>     setup_package()
>   File "setup.py", line 47, in setup_package
>     configuration=configuration )
>   File "/opt/local/lib/python2.4/site-packages/numpy/distutils/core.py",
> line 142, in setup
>     config = configuration()
>   File "setup.py", line 19, in configuration
>     config.add_subpackage('Lib')
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 772, in add_subpackage
>     caller_level = 2)
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 755, in get_subpackage
>     caller_level = caller_level + 1)
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 702, in _get_configuration_from_setup_py
>     config = setup_module.configuration(*args)
>   File
> "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-
> 0.5.2/Lib/setup.py", line 15, in configuration
>     config.add_subpackage('odr')
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 772, in add_subpackage
>     caller_level = 2)
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 755, in get_subpackage
>     caller_level = caller_level + 1)
>   File
> "/opt/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line
> 687, in _get_configuration_from_setup_py
>     ('.py', 'U', 1))
>   File "Lib/odr/setup.py", line 9, in ?
>     from numpy.distutils.misc_util import get_path, Configuration,
> dot_join
> ImportError: cannot import name get_path
>
> Error: Status 1 encountered during processing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070611/c5e04f95/attachment.html


More information about the macports-users mailing list