crash on "from paraview.simple import *" after fresh install

Bug #882995 reported by Florent
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
paraview (Debian)
Fix Released
Unknown
paraview (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

> python -c "from paraview.simple import *"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/paraview/simple.py", line 39, in
<module>
    import servermanager
  File "/usr/lib/python2.7/dist-packages/paraview/servermanager.py", line
43, in <module>
    import paraview, re, os, os.path, new, sys, vtk
  File "/usr/lib/python2.7/dist-packages/paraview/vtk/__init__.py", line 1,
in <module>
    from vtkCommonPython import *
ImportError: No module named vtkCommonPython

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: paraview-python 3.10.1-6
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Fri Oct 28 11:13:09 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: paraview
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Florent (fcayre) wrote :
Revision history for this message
Florent (fcayre) wrote :

I just found out that I needed to modify my PYTHONPATH to include /usr/lib/paraview.
I do not know much about python application packaging, but I suppose some links are missing from standard python directories to the /usr/lib/paraview libraries.

Changed in paraview (Debian):
status: Unknown → Fix Released
Changed in paraview (Debian):
status: Fix Released → New
Changed in paraview (Debian):
status: New → Fix Released
Revision history for this message
Anton Gladky (gladky-anton) wrote :

I hope it is fixed in 3.10.1-8

Revision history for this message
Anton Gladky (gladky-anton) wrote :

For Ubuntu Oneiric the fixed package can be installed from private ppa:
ppa:gladky-anton/paraview

Changed in paraview (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.