VTK install

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Sep 15 20:32:01 EDT 2009


En Tue, 15 Sep 2009 19:35:23 -0300, Gib <gib.bogle at gmail.com> escribió:
> On Sep 16, 12:28 am, Francesco Bochicchio <bieff... at gmail.com> wrote:
>> On Sep 15, 6:29 am, Gib <gib.bo... at gmail.com> wrote:
>>
>> > Since VTK appears to be installed, I'm guessing that either the path
>> > setting is wrong, or python is not using PYTHONPATH.  How can I check
>> > that PYTHONPATH is being used?
>>
>> The paths in PYTHONPATH should show un sys.path python variable. So
>> just do from a
>> python prompt "import sys; sys.path" and check if the VTK directories
>> are listed.
>
> Interesting.  sys.path includes this path:
> 'C:\\Documents and Settings\\mbog002.EC\\ C:\\Program Files\\VTK\\lib\
> \site-packages'
> The first part is what I set the environment variable HOME to (as per
> Enthought instructions), the second part is the VTK path.  Apparently
> the specified VTK path is being made relative to HOME - clearly
> inconsistent with the installation instructions.

Your VTK path starts with a space, and that confuses the path  
manipulations.

> I solved the problem by editing PYTHONPATH in the registry.
> Definitely a trap for Windows users.

If you set the VTK path to an absolute path, this should not happen.

-- 
Gabriel Genellina




More information about the Python-list mailing list