[vtkusers] Compile VTK under Mac Os X 10.9.5 with python 2.7.8

Michka Popoff michkapopoff at gmail.com
Mon Sep 29 13:25:09 EDT 2014


Hi

you did not send the error message with your mail.
With it, can you also send us the result of the “which python” command, so that we know what python you are calling.

Michka

On 29 sept. 2014, at 19:03, Marco Salatin <marco.salatin at gmail.com> wrote:

> Hi,
>    i install successfull vtk but when i start python and import vt i receive this error:
> 
> 
> 2014-09-28 19:44 GMT+02:00 Marco Salatin <marco.salatin at gmail.com>:
> There aren't an IDE that support vtk installation?
> 
> 
> 
> 2014-09-28 13:45 GMT+02:00 Marco Salatin <marco.salatin at gmail.com>:
> Thanks
> 
> 2014-09-27 10:32 GMT+02:00 Michka Popoff <michkapopoff at gmail.com>:
> Hi
> 
> brew should work out of the box.
> If you need a fast installation, and don’t mind using brewed python,
> you can try my binaries:
> 
> https://github.com/iMichka/homebrew-MacVTKITKPythonBottles
> 
> brew install iMichka/MacVTKITKPythonBottles/imichka-vtk
> 
> Michka
> 
> On 27 sept. 2014, at 09:59, Marco Salatin <marco.salatin at gmail.com> wrote:
> 
>> If i use brew is better?
>> 
>> 2014-09-27 8:57 GMT+02:00 Marco Salatin <marco.salatin at gmail.com>:
>> Like QT_QMAKE_EXECUTABLE?
>> 
>> 2014-09-27 8:55 GMT+02:00 Marco Salatin <marco.salatin at gmail.com>:
>> Ok,
>>      to use vtk with pyqt4 i need to configure something when i install vtk?
>> 
>> Thanks
>> 
>> 2014-09-26 14:23 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:
>> The QVTKRenderWindowInteractor.py hasn't been updated for PyQt5 yet,
>> but you might be able to do the modifications yourself.
>> 
>> On Fri, Sep 26, 2014 at 12:20 AM, Marco Salatin <marco.salatin at gmail.com> wrote:
>> > Ok thaks for help!
>> >
>> > If i need to use vtk and pyqt5 is possible?
>> >
>> > 2014-09-25 18:39 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:
>> >>
>> >> In that case, yes, the directory you mentioned should work for your
>> >> python.
>> >>
>> >>
>> >> On Thu, Sep 25, 2014 at 10:32 AM, Marco Salatin <marco.salatin at gmail.com>
>> >> wrote:
>> >> >>>> print sys.path
>> >> > ['',
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
>> >> >
>> >> > '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
>> >> >
>> >> >
>> >> > 2014-09-25 18:30 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:
>> >> >>
>> >> >> On Thu, Sep 25, 2014 at 10:15 AM, Marco Salatin
>> >> >> <marco.salatin at gmail.com>
>> >> >> wrote:
>> >> >> > I add this:
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > VTK_INSTALL_PYTHON_MODULE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
>> >> >> >
>> >> >> > is correct?
>> >> >>
>> >> >> No, I don't think that will work.  The setting that I recommended was
>> >> >> the following, because it is where all third-party python modules are
>> >> >> installed on my system:
>> >> >>
>> >> >> VTK_INSTALL_PYTHON_MODULE_DIR:PATH=/Library/Python/2.7/site-packages
>> >> >>
>> >> >> Did you install your own python, instead of using the python that
>> >> >> comes with OS X? If so, you might have to check to see what its
>> >> >> default module path is:
>> >> >>
>> >> >> import sys
>> >> >> print sys.path
>> >> >>
>> >> >>  - David
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > ---
>> >> > www.salatin.eu
>> >
>> >
>> >
>> >
>> > --
>> > ---
>> > www.salatin.eu
>> 
>> 
>> 
>> -- 
>> ---
>> www.salatin.eu
>> 
>> 
>> 
>> -- 
>> ---
>> www.salatin.eu
>> 
>> 
>> 
>> -- 
>> ---
>> www.salatin.eu
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
> 
> 
> 
> 
> -- 
> ---
> www.salatin.eu
> 
> 
> 
> -- 
> ---
> www.salatin.eu
> 
> 
> 
> -- 
> ---
> www.salatin.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140929/bec0013c/attachment.html>


More information about the vtkusers mailing list