Comment 6 for bug 556864

Revision history for this message
Tor Gillberg (torgi) wrote : Re: [Bug 556864] Re: Unable to import Viper (no module named vtk)

Very tempting suggestion...

I installed my vtk-devel as adviced in dorsal - and the same way that worked
for Aron, vtk-devel +python26. This gives:

    $ port installed vtk-devel
  vtk-devel @5.4.2_1+cocoa+data+doc+examples+python26+shared+testing
(active)

However I am now trying to install vtk-devel +py26, to see if there is any
improvement. I have an other issue which might be related, and I do not
know how to fix. I can not 'import Scientific' in python. I have
python-scientific installed via macport, and a reinstallation does not help.
Any easy fix, or is it maybe related?

I get a quite substantial output when running:

     $ port variants vtk-devel
vtk-devel has the variants:
   boost: use Boost libraries - www.boost.org
   carbon: build with Carbon
     * conflicts with cocoa x11
[+]cocoa: build with Cocoa
     * conflicts with carbon x11
   core: provide data doc examples testing
     * requires data doc examples testing
   darwin_8: Platform variant, selected automatically
   darwin_9: Platform variant, selected automatically
[+]data: provide example data in: /opt/local/share/vtk-5.4/data
   database: provide all database variants
     * requires mysql5 odbc pgsql84
   debug: debug build
     * conflicts with release
[+]doc: provide doxygen documentation in: /opt/local/share/vtk-5.4/doc
[+]examples: provide VTK examples in: /opt/local/share/vtk-5.4/examples
   huge: provide core cocoa shared wrap database mpi boost
     * requires boost cocoa core database mpi shared wrap
   java: java wrapper
   mpi: use message passing interface (mpich2) for parallel support
   mysql5: build the MySQL driver for vtkSQLDatabase
   odbc: build the ODBC database interface
   pgsql83: build the PostgreSQL 8.3 driver for vtkSQLDatabase
     * conflicts with pgsql84
   pgsql84: build the PostgreSQL 8.4 driver for vtkSQLDatabase
     * conflicts with pgsql83
   python25: python 2.5 wrapper
     * conflicts with python26
     * requires shared
   python26: python 2.6 wrapper
     * conflicts with python25
     * requires shared
   release: release build
     * conflicts with debug
[+]shared: build shared libraries
   tcl: tcl wrapper (MacPorts tcl/tk)
     * conflicts with tcl_apple
   tcl_apple: tcl wrapper (Apple tcl/tk framework)
     * conflicts with tcl
[+]testing: provide VTK tests in: /opt/local/share/vtk-5.4/testing
     * requires data
   universal: Build for multiple architectures
   wrap: provide java, python26, & tcl
     * requires java python26 tcl
   x11: build with X11
     * conflicts with carbon cocoa

On 4/8/10 21:34 , "Anders Logg" <email address hidden> wrote:

> A better solution would be to install a non-crippled operating system
> on your shiny macbook ;-)
>
> --
> Anders
>
>
> On Thu, Apr 08, 2010 at 07:21:00PM -0000, Aron Wahlberg wrote:
>> When I had this problem, the solution was to install vtk-devel +python26
>> instead of vtk-devel +py26, which was advised in the dorsal installation
>> at that time. I think that is changed now.
>>
>> Aron
>>
>> On 8 Apr, 2010, at 19:15, Tor Gillberg wrote:
>>
>>>
>>> Thanks.
>>> Do you know how I fix that?
>>> I have installed everything that is adviced when installing Dorsal.
>>>
>>> Regards
>>> /Tor
>>>
>>> On 4/8/10 18:15 , "Johannes Ring" <email address hidden> wrote:
>>>
>>>> Sorry, this is not a bug in DOLFIN. It seems that you don't have
>>>> installed the Python interface to VTK since you are unable to import VTK
>>>> from Python.
>>>>
>>>> ** Changed in: dolfin
>>>> Status: New => Invalid
>>>
>>