no module named vtk

Aron Wahlberg aron at simula.no
Fri Mar 12 01:41:21 PST 2010


Yes, I have encountered +py26. I've even had it running before and it worked fine for several months until I reinstalled a software (FEniCS) that depended on vtk. However, Paraview still worked though. Isn't that wiered?

Anyway, now everything is fine again! :)

Aron


On 12 Mar, 2010, at 10:38, Russell Jones wrote:

> As a side note, it's always worth running
> port variants <package>
> when considering installing <package>
> That way you can pick from the list and not have to guess, though of course variant names should be consistent. Have you encountered ports that have +py26 as a variant? Sounds like it might be an error by the packager.
> 
> Russell
> 
> From: "Aron Wahlberg" <aron at simula.no>
> Date: 12 March, 2010 10:22:07 GMT+01:00
> To: "Frank Schima" <macsforever2000 at macports.org>
> Cc: "MacPorts Users" <macports-users at lists.macosforge.org>
> Subject: Re: no module named vtk
> 
> 
> 
> On 10 Mar, 2010, at 16:41, Frank Schima wrote:
> 
>> 
>> 
>> 
>> On Mar 10, 2010, at 7:04 AM, Aron Wahlberg wrote:
>> 
>>> Thank you for your answers!
>>> 
>>> You were right Brandon, I had two port versions of python. I uninstalled the older and inactive version. I made sure I was running the remaining python from macports, not the MacOSX one by "which python", which points at /opt/local/bin/python. Then I reinstalled vtk:
>>> 
>>>> sudo port uninstall vtk-devel
>>>> sudo port clean --all vtk-devel
>>>> sudo port -v install vtk-devel +py26
>>> 
>>> However, I still get no module named vtk-devel. Other ideas?
>> 
>> You want to install the python26 variant, not "py26". 
> 
> Ah, I see. Thank you very much Frank. That solved my problem. Just by curiosity: could you give a short explanation of the differences of +py26 and +python26.
> 
> Thank's to all you helpful souls!
> 
> Aron
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
> 
> On 10 Mar, 2010, at 16:41, Frank Schima wrote:
> 
>> 
>> 
>> 
>> On Mar 10, 2010, at 7:04 AM, Aron Wahlberg wrote:
>> 
>>> Thank you for your answers!
>>> 
>>> You were right Brandon, I had two port versions of python. I uninstalled the older and inactive version. I made sure I was running the remaining python from macports, not the MacOSX one by "which python", which points at /opt/local/bin/python. Then I reinstalled vtk:
>>> 
>>>> sudo port uninstall vtk-devel
>>>> sudo port clean --all vtk-devel
>>>> sudo port -v install vtk-devel +py26
>>> 
>>> However, I still get no module named vtk-devel. Other ideas?
>> 
>> You want to install the python26 variant, not "py26". 
> 
> Ah, I see. Thank you very much Frank. That solved my problem. Just by curiosity: could you give a short explanation of the differences of +py26 and +python26.
> 
> Thank's to all you helpful souls!
> 
> Aron
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
> 
> 



More information about the macports-users mailing list