New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve python-vtk6 link issues in Ubuntu #759

Closed
Garyfallidis opened this Issue Nov 2, 2015 · 6 comments

Comments

Projects
4 participants
@Garyfallidis
Copy link
Member

Garyfallidis commented Nov 2, 2015

Moving back to python-vtk6 from vtk5(python-vtk) creates an error

<ipython-input-1-b7e11aadda62> in <module>()
----> 1 import vtk

/usr/lib/python2.7/dist-packages/vtk/__init__.py in <module>()
37 
38 # --------------------------------------
---> 39 from vtkCommonCore import *
40 from vtkCommonMath import *
41 from vtkCommonMisc import *

/usr/lib/python2.7/dist-packages/vtk/vtkCommonCore.py in <module>()
----> 1 from vtkCommonCorePython import *

ImportError: No module named vtkCommonCorePython

The resolution was to relink the broken so files

So I went to /usr/lib/x86_64-linux-gnu and ran for i in *-6.0.so.6.0; do sudo ln -s $i ${i/-6.0.so.6.0/-6.0.so}; done. 

(May need sudo first too)

The rest of the discussion is found here
http://stackoverflow.com/questions/13495285/importerror-no-module-named-vtkcommonpython

@Garyfallidis

This comment has been minimized.

Copy link
Member

Garyfallidis commented Nov 2, 2015

@arokem is this the same error you got the other day in Travis?

@arokem

This comment has been minimized.

Copy link
Member

arokem commented Nov 2, 2015

Yes. Looks the same. We should be able to run that in the vtk6 machine on
travis
On Nov 1, 2015 7:58 PM, "Eleftherios Garyfallidis" notifications@github.com
wrote:

@arokem https://github.com/arokem is this the same error you got the
other day in Travis?


Reply to this email directly or view it on GitHub
#759 (comment).

@MarcCote

This comment has been minimized.

Copy link
Contributor

MarcCote commented Oct 15, 2016

I saw that we have a Travis build that is supposed to use VTK6 but Ubuntu 12.04 "precise", the one currently used by Travis, doesn't offer the package python-vtk6. See
https://travis-ci.org/nipy/dipy/jobs/167835093#L399

This means tests related to VTK are skipped in that build. Maybe we should drop that specific Travis build (speed up the testing) or try the Travis's Trusty beta environment (https://docs.travis-ci.com/user/trusty-ci-environment)?

Also, I think Anaconda now comes with VTK 6.3 (https://anaconda.org/anaconda/vtk)

@Garyfallidis

This comment has been minimized.

Copy link
Member

Garyfallidis commented Oct 15, 2016

I think what you suggest is a good idea. +1

@MarcCote

This comment has been minimized.

Copy link
Contributor

MarcCote commented Oct 15, 2016

I'm not sure if we can use Trusty beta environment only for a specific build (i.e. the one testing VTK6). That might impact the other builds we have. The easiest solution would be to drop the build with Python-vtk6.

@skoudoro

This comment has been minimized.

Copy link
Member

skoudoro commented Sep 20, 2018

This issue was moved to fury-gl/fury#5

@skoudoro skoudoro closed this Sep 20, 2018

@skoudoro skoudoro moved this from Issues to Done in Viz Module Oct 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment