On Fri, Jun 11, 2010 at 9:52 AM, Miguel Ortiz Lombardia
<[email protected]> wrote:
> Hi Alexander,
>
>
> Le 11 juin 2010 à 15:23, Alexander Hansen a écrit :
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 6/11/10 3:24 AM, Miguel Ortiz Lombardia wrote:
>>> Hi all,
>>>
>>> I want to use the python wrappers for vtk.
>>> I installed vtk54, vtk54-shlibs and vtk54-dev, but they don't include the 
>>> wrappers. So I went on and installed pyvtk-py25.
>>>
>>> But then I face this problem:
>>>
>>> (A)> /sw64/bin/python2.5
>>> Python 2.5.5 (r255:77872, May 15 2010, 03:23:49)
>>> [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>> import vtk
>>> Fatal Python error: Interpreter not initialized (version mismatch?)
>>> Abort trap
>>>
>>> This is on:
>>>
>>> OSX 10.6.3 (64bit)
>>> XCode 3.2.2
>>> fink:
>>> Package manager version: 0.29.99.cvs
>>> Distribution version: selfupdate-rsync Wed Jun  9 19:12:06 2010, 10.6, 
>>> x86_64
>>>
>>> Any help would be appreciated.
>>> Cheers,
>
> (...)
>
>> I don't get that message:
>>
>> $ /sw/bin/python2.5
>> Python 2.5.5 (r255:77872, May 14 2010, 13:19:00)
>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import vtk
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>> ImportError: No module named vtk
>>
>> Did _you_ create a "vtk" in your python25 site-packages?
>>
>
> Interesting...
> Nope, it was vtk54, look at the output of:
>
> dpkg -L vtk54
>
>> And if you do "dpkg -L pyvtk-py25", you'll find that all of the files go
>> in /sw/lib/python2.5/site-packages/pyvtk, which suggests that you really
>> want to import "pyvtk".  It works here:
>>
>> $ /sw/bin/python2.5
>> Python 2.5.5 (r255:77872, May 14 2010, 13:19:00)
>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import pyvtk
>
> I have tried:
>
> import pyvtk as vtk
>
> which seems to work, except that some classes that I need are absent. For 
> instance:
>
>  File "/Users/mol/tmp/VEDA/mod/sym.py", line 18, in <module>
>    class symmate(vtk.vtkAssembly):
> AttributeError: 'module' object has no attribute 'vtkAssembly'
>
> So not sure whether pyvtk is the right module to load or these classes were 
> not created at compiling time for vtk54.
>
> Installing VTK on 64bit SnowLeopard seems far too much for me...
> But I thank you very much for your input and I would appreciate other 
> insights at this respect.
>
> Best,
>
>
> -- Miguel
>
> Architecture et Fonction des Macromolécules Biologiques (UMR6098)
> CNRS, Universités d'Aix-Marseille I & II
> Case 932, 163 Avenue de Luminy, 13288 Marseille cedex 9, France
> Tel: +33(0) 491 82 55 93
> Fax: +33(0) 491 26 67 20
> e-mail: [email protected]
>
>
>
>

I don't really use Python much, so somebody else probably will know
more than I.  However, you might try checking for "vtkAssembly" via

dpkg -S vtkAssembly

to see if it is indeed installed, but in a strange place.
-- 
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to