segrest / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

Module not found vtkCommonCorePython #779

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?
2.7.10.0

2. Which components have you installed (Python(x,y) installer:
componentpage):
c. Have you selected manually plugins in the component list?
Yes

Whatplugins?
VTK

3. Have you selected the option "Customize installation directories"?
b. No

4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?
a. default path

6. Have you installed Python(x,y):
    b. For "All users"

7. What is your operating system?
d. Windows 8

8. Is the operating system 64 bit?
a. Yes

9. When you installed Python(x,y), were you logged in as :
b. an administrator of the machine

10. If you are using Windows Vista/7, have you installed Python(x,y):

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
b. you uninstalled any previous Python distribution (including the
official .msi)
d. you cleaned the environment variables by removing all deprecated
entries

What steps will reproduce the problem?
1.>>> import vtk.tk.vtkTkRenderWindowInteractor

What is the expected output? What do you see instead?
Expected module to import, instead thrown error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\vtk\tk\vtkTkRenderWindowInteractor.py", line 16, in <module>
    from vtkLoadPythonTkWidgets import vtkLoadPythonTkWidgets
  File "C:\Python27\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 2, in <module>
    import vtkCommonCorePython
ImportError: No module named vtkCommonCorePython

Please provide any additional information below.

Original issue reported on code.google.com by guillegi...@gmail.com on 24 Jul 2015 at 3:55

GoogleCodeExporter commented 9 years ago
The error was fixed by creating the environment variable PYTHONPATH with the 
folder containing the VTK files:

PYTHONPATH='C:\Python27\Lib\site-pagackes\vtk;'

I suppose Python(x,y) didn't create the variable at installation.

But anyway VTK doesn't support vtkTk widgets anymore as seen here 
http://www.vtk.org/Bug/view.php?id=14517

If anybody like me want the support back, we can ask here: 
http://vtk.uservoice.com/forums/31508-general/suggestions/9291084-return-support
-for-tkinter-widgets

Original comment by guillegi...@gmail.com on 12 Aug 2015 at 3:06