Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24451 closed defect (worksforme)

Not able to 'import Scientific' after successfull macports installation of py26-scientific

Reported by: torgi@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py26-scientific

Description (last modified by mf2k (Frank Schima))

I have installed port py26-scientific using Macports, but I am not able to use the installation. The installation goes very smooth, and does not complain about anything.

However, when running 'import Scientific' in a python environment I get 'No module named Scientific'. Re-installation, cleaning, updating the port does not change the outcome. Numpy is installed using macports, py26-numpy @1.3.0_0 (active), and works fine. The installation appears to work fine, I have the following installed and active,

$ port installed py26-scientific
The following ports are currently installed:
  py26-scientific @2.8_2+macosx (active)

Any help is highly appreciated. I do not know what is causing the trouble. Thank you

$ port contents py26-scientific
Port py26-scientific contains:
  /opt/local/bin/bsp_virtual-2.6
  /opt/local/bin/task_manager-2.6
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/bsp_virtual
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/task_manager
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/arrayobject.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/bspmodule.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/mpimodule.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/netcdfmodule.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/PyBSP_API.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Scientific/PyMPI_API.h
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/__pkginfo__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/__pkginfo__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/Console.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/Console.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/core.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/core.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/IO.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/IO.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/RemoteObjects.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/BSP/RemoteObjects.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Clustering/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Clustering/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Clustering/AffinityPropagation.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Clustering/AffinityPropagation.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/darwin/Scientific_affinitypropagation.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/darwin/Scientific_interpolation.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/darwin/Scientific_netcdf.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/darwin/Scientific_numerics_package_id.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/darwin/Scientific_vector.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DictWithDefault.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DictWithDefault.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/MasterSlave.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/MasterSlave.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/TaskManager.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/DistributedComputing/TaskManager.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/FFT.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/FFT.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Derivatives.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Derivatives.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/FindRoot.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/FindRoot.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/FirstDerivatives.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/FirstDerivatives.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Interpolation.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Interpolation.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/LeastSquares.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/LeastSquares.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Polynomial.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Polynomial.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Rational.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Rational.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Romberg.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Functions/Romberg.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Objects3D.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Objects3D.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Quaternion.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Quaternion.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/TensorAnalysis.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/TensorAnalysis.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/TensorModule.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/TensorModule.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Transformation.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/Transformation.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/VectorModule.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Geometry/VectorModule.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/indexing.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/indexing.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/ArrayIO.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/ArrayIO.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/FortranFormat.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/FortranFormat.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/NetCDF.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/NetCDF.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDB.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDB.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDBExportFilters.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDBExportFilters.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDBSpaceGroups.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/PDBSpaceGroups.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/TextFile.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/IO/TextFile.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/LA.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/LA.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Mathematica.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Mathematica.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/core.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/core.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/IO.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/MPI/IO.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/N.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/N.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/NRNG.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/NRNG.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/NumberDict.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/NumberDict.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/PhysicalQuantities.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/PhysicalQuantities.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/Potential.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Physics/Potential.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/qt_fake.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/qt_fake.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/QtPlotCanvas.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/QtPlotCanvas.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/QtVisualizationCanvas.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/QtWidgets/QtVisualizationCanvas.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Signals/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Signals/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Signals/Models.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Signals/Models.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Statistics/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Statistics/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Statistics/Histogram.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Statistics/Histogram.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Threading/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Threading/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Threading/TaskManager.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Threading/TaskManager.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/TkPlotCanvas.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/TkPlotCanvas.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/TkVisualizationCanvas.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/TkVisualizationCanvas.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/Utility.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/TkWidgets/Utility.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/Color.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/Color.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/PyMOL.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/PyMOL.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VMD.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VMD.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VPython.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VPython.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VRML.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VRML.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VRML2.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Scientific/Visualization/VRML2.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ScientificPython-2.8-py2.6.egg-info

Change History (11)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: py26-scientific added

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Are you using macports python?

What is the output of the following?

port installed python_select

and also

which python

comment:3 in reply to:  2 Changed 14 years ago by torgi@…

Yes I am using macports python (at least I hope). I'm working on a Snow Leopard system, OS X 10.6.3

  port installed python_select
The following ports are currently installed:
  python_select @0.3_0+darwin_10 (active)
  which python
/opt/local/bin/python

Thanks

which python

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to adfernandes@…

Please remember to cc the maintainer.

comment:5 Changed 14 years ago by adfernandes (Andrew Fernandes)

Hmm... works for me! torgi, your output above tells me that python_select is installed and that you're using MacPorts python, but not that you are definitely, abolutely using MacPorts python2.6.

Can you please try running

   /opt/local/bin/python2.6 -E -c 'import Scientific'

from the command line?

If it exits with any error (an error-free run should have no output), please paste the output of the command

   /opt/local/bin/python2.6 -E -v -c 'import Scientific'

(same as the previous command with a -v flag for verbosity).

comment:6 in reply to:  5 Changed 14 years ago by torgi@…

Strange! I did not get any error message from the command. The verbose output was:

/opt/local/bin/python2.6 -E -v -c 'import Scientific'
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te.py
import site # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os
.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os
.py
import os # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os
.pyc
import errno # builtin
import posix # builtin
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/po
sixpath.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/po
sixpath.py
import posixpath # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/po
sixpath.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/st
at.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/st
at.py
import stat # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/st
at.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ge
nericpath.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ge
nericpath.py
import genericpath # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ge
nericpath.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wa
rnings.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wa
rnings.py
import warnings # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wa
rnings.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/li
necache.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/li
necache.py
import linecache # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/li
necache.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ty
pes.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ty
pes.py
import types # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ty
pes.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/Us
erDict.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/Us
erDict.py
import UserDict # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/Us
erDict.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_a
bcoll.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_a
bcoll.py
import _abcoll # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_a
bcoll.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ab
c.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ab
c.py
import abc # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ab
c.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
py_reg.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
py_reg.py
import copy_reg # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
py_reg.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ne
w.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ne
w.py
import new # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ne
w.pyc
import encodings # directory
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/__init__.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/__init__.py
import encodings # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/__init__.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
decs.pyc matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
decs.py
import codecs # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/co
decs.pyc
import _codecs # builtin
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/aliases.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/aliases.py
import encodings.aliases # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/aliases.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/utf_8.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/utf_8.py
import encodings.utf_8 # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/en
codings/utf_8.pyc
Python 2.6.5 (r265:79063, Mar 30 2010, 14:35:34)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import Scientific # directory
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__init__.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__init__.py
import Scientific # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__init__.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__pkginfo__.pyc matches
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__pkginfo__.py
import Scientific.__pkginfo__ # precompiled from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/si
te-packages/Scientific/__pkginfo__.pyc
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] encodings
# cleanup[1] site
# cleanup[1] abc
# cleanup[1] _codecs
# cleanup[1] new
# cleanup[1] _warnings
# cleanup[1] zipimport
# cleanup[1] encodings.utf_8
# cleanup[1] codecs
# cleanup[1] Scientific
# cleanup[1] signal
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] Scientific.__pkginfo__
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] errno
# cleanup[2] _abcoll
# cleanup[2] types
# cleanup[2] genericpath
# cleanup[2] stat
# cleanup[2] warnings
# cleanup[2] UserDict
# cleanup[2] os.path
# cleanup[2] linecache
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 20 unfreed ints
# cleanup floats

Thanks for your help, /Tor

comment:7 Changed 14 years ago by adfernandes (Andrew Fernandes)

Resolution: worksforme
Status: newclosed

The problem is that your python_select has not correctly selected python2.6. You're welcome!

comment:8 in reply to:  7 Changed 14 years ago by torgi@…

Resolution: worksforme
Status: closedreopened

Replying to adfernandes@…:

The problem is that your python_select has not correctly selected python2.6. You're welcome!

Hello again,

Thanks for locating the issue. Can you please help me with a fix for the problem?

I have selected python26 before installation of python scientific, and done this repeatedly, and even tried to reinstall py26-scientific with no success.

sudo python_select python26

Does not help. Do you have any idea of how to help python_select choose python26, or should I report this as a bug related to python_select? Thank you

comment:9 Changed 14 years ago by adfernandes (Andrew Fernandes)

Resolution: worksforme
Status: reopenedclosed

I can offer a couple of suggestions; if they don't work, then filing a possible bug with python_select is a good idea. I stopped using python_select and gcc_select a while a go because I would constantly discover applications ignoring paths, versions, etc. Now I just specify everything explicitly. That's just my casual opinion, by the way, and should not be taken as an implicit statement that python_select is buggy!

For example, try running your scripts as python2.6. Usually that will run /opt/local/bin/python2.6, and you can check that with which python2.6. Depending on where /opt/local/bin is on your search path, python may be the system interpreter instead of the macports one, regardless of what python_select has done.

So (1) try running python as python2.6. (2) Try sudo python_select -d python26 and make sure it appears to have worked. (3) Try always invoking python as /opt/local/bin/python2.6 and see if the import problem goes away. Also, if python_select succeeds, try running python as /opt/local/bin/python directly - explicit paths are your friends.

I suspect, given your description of your problem, that somehow the system python is being run, somehow. The explicit path to macports will help diagnose where and why this is happening. Good luck!

comment:10 Changed 14 years ago by mf2k (Frank Schima)

Here's a few things to check besides what adfernandes is suggesting.

What is the output of the following?

python_select -s

Also, run python and tell us the version of python it displays. Here's what it says for me where py26-scientific works fine:

$ python
Python 2.6.5 (r265:79063, Mar 22 2010, 09:16:22) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Scientific
>>> 

comment:11 Changed 14 years ago by torgi@…

Thank you all very much for your efforts. I found the error with my installation, the problem was with my ipython. The once I used was not the one installed by macport, and did not connect to the correct python version. So my python_select and the python scientific port works fine!

Once again, thank you very much, I am very sorry for the inconvenience. Regards Tor

Note: See TracTickets for help on using tickets.