View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014922 | ParaView | (No Category) | public | 2014-08-11 21:56 | 2015-01-11 08:16 | ||||
Reporter | Andy Bauer | ||||||||
Assigned To | Utkarsh Ayachit | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | git-master | ||||||||
Target Version | git-master | Fixed in Version | 4.2 | ||||||
Summary | 0014922: installing paraview locally has issues with paraview.simple | ||||||||
Description | When building pv locally with Python enabled and then installing to a separate directory, when running pvpython or pvbatch from the installed directory it can't import paraview.simple. For a shared library build I get the following error: >>> from paraview.simple import * Error: Could not import vtkCommonComputationalGeometryPython Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/media/ssddrive/BUILDS/ParaView/debug-developer-install/lib/paraview-4.1/site-packages/paraview/simple.py", line 39, in <module> import servermanager File "/media/ssddrive/BUILDS/ParaView/debug-developer-install/lib/paraview-4.1/site-packages/paraview/servermanager.py", line 48, in <module> import paraview, re, os, os.path, new, sys, atexit, vtk File "/media/ssddrive/BUILDS/ParaView/debug-developer-install/lib/paraview-4.1/site-packages/paraview/vtk/__init__.py", line 7, in <module> from vtkCommonCorePython import * ImportError: No module named vtkCommonCorePython For a static library build I get the following error: >>> from paraview.simple import * Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named paraview.simple With the static build, if I copy the <installdir>/lib/paraview-4.1/site-packages to <installdir>/lib/ then I can import paraview.simple from pvpython and pvbatch. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Topic Name | 14922_fix_python_from_install | ||||||||
Type | usability | ||||||||
Attached Files | CMakeCache.txt [^] (322,386 bytes) 2014-08-12 09:50 CMakeCache.txt-shared [^] (406,654 bytes) 2014-08-12 09:52 | ||||||||
Relationships | |
Relationships |
Notes | |
(0033195) Utkarsh Ayachit (administrator) 2014-08-12 09:45 |
Andy, Is this a static build? What can you tell about your build environment? Can you attach your CMakeCache.txt. Utkarsh |
(0033196) Andy Bauer (developer) 2014-08-12 09:53 |
I tried this out for both a static and shared build on my Ubuntu 12.04 machine. I attached the CMakeCache.txt from each. I had the same issue with the static build on a Cray. |
(0033213) Andy Bauer (developer) 2014-08-13 13:26 |
Doing a fresh build of ParaView's latest with a share library build I was able to import paraview.simple properly in pvpython. For a fresh static build I still had the same problem. FYI: The version of ParaView I was using was 1dc9843728232bb330b5425ac9a598db9fbd343d |
(0033214) Utkarsh Ayachit (administrator) 2014-08-13 13:41 |
Ok. I'll test out the static build next. |
(0033216) Utkarsh Ayachit (administrator) 2014-08-13 15:02 |
commit 72d0a78de03c669e3476c792423c591c43d017ea Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com> Date: Wed Aug 13 15:01:20 2014 -0400 BUG 0014922: Fix python module locating logic for static builds. vtkProcessModuleInitializePython didn't handle the case that ParaView was built as a static build. For static builds, the Python module locating logic is not same as the one for shared builds since shared builds typically use shared-forwarding executables. This commit expands that logic. Change-Id: I9da105148b2f1af68f8a3deae0f819a89823a2f7 |
(0033222) Utkarsh Ayachit (administrator) 2014-08-15 10:49 |
--------------------------------------------- Topics merged into master: 14901_fix_transfer_function_settings_labels 14922_fix_python_from_install 14928_add_catalyst_label_to_test fix_parallel_tests live-breakpoint pvweb-dev-doc start_counting_from_1 |
(0033226) Andy Bauer (developer) 2014-08-15 11:39 |
Verified that it works on my Ubuntu 12.04. machine. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-08-11 21:56 | Andy Bauer | New Issue | |
2014-08-11 21:56 | Andy Bauer | Assigned To | => Utkarsh Ayachit |
2014-08-12 09:45 | Utkarsh Ayachit | Note Added: 0033195 | |
2014-08-12 09:50 | Andy Bauer | File Added: CMakeCache.txt | |
2014-08-12 09:52 | Andy Bauer | File Added: CMakeCache.txt-shared | |
2014-08-12 09:53 | Andy Bauer | Note Added: 0033196 | |
2014-08-13 13:26 | Andy Bauer | Note Added: 0033213 | |
2014-08-13 13:41 | Utkarsh Ayachit | Note Added: 0033214 | |
2014-08-13 15:02 | Utkarsh Ayachit | Topic Name | => 14922_fix_python_from_install |
2014-08-13 15:02 | Utkarsh Ayachit | Note Added: 0033216 | |
2014-08-13 15:02 | Utkarsh Ayachit | Status | backlog => gatekeeper review |
2014-08-13 15:02 | Utkarsh Ayachit | Fixed in Version | => git-next |
2014-08-13 15:02 | Utkarsh Ayachit | Resolution | open => fixed |
2014-08-15 10:48 | Utkarsh Ayachit | Target Version | => git-master |
2014-08-15 10:49 | Utkarsh Ayachit | Status | gatekeeper review => customer review |
2014-08-15 10:49 | Utkarsh Ayachit | Note Added: 0033222 | |
2014-08-15 11:39 | Andy Bauer | Note Added: 0033226 | |
2014-08-15 11:39 | Andy Bauer | Status | customer review => closed |
2014-08-29 11:01 | Utkarsh Ayachit | Fixed in Version | git-next => 4.2 |
2015-01-11 08:16 | Utkarsh Ayachit | Source_changeset_attached | => ParaView master ad35b25e |
2015-01-11 08:16 | Utkarsh Ayachit | Source_changeset_attached | => ParaView master 72d0a78d |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |