Git Product home page Git Product logo

visualizer's Introduction

Build Status Dependency Status semantic-release npm-download npm-version-requirement node-version-requirement

Goal

Provide a Web based interface to ParaView similar to the ParaView Desktop Qt client.

Documentation

See the documentation for a getting started guide, advanced documentation, and API descriptions.

Pre-requisite

You will need ParaView, which can be downloaded here. The table below indicates which versions work together.

ParaView Visualizer Visualizer in PV binary
5.2 <= 2.0.17 2.0.16
5.3 broken on Linux, otherwise <=2.0.20 2.0.18
5.4 <=2.2.0 2.1.4
master 2.3+ 2.3.0

To install ParaViewWeb-Visualizer for your command line environment, you will need to have Node which should have NPM.

Installation

$ npm install -g pvw-visualizer

After installing the package you will get one executable Visualizer with the following set of options.

$ Visualizer

  Usage: Visualizer [options]

  Options:

    -h, --help                      output usage information
    -V, --version                   output the version number
    -p, --port [8080]               Start web server with given port
    -d, --data [directory]          Data directory to serve
    -s, --server-only               Do not open the web browser

    --paraview [path]               Provide the ParaView root path to use

    --load-file [fileToLoad]        File to load using data base path as root
    --exclude-regex [excludeRegex]  Regular expression for file filtering
    --group-regex [groupRegex]      Regular expression for grouping files
    --plugins [pluginList]          List of fully qualified path names to plugin objects to load
    --proxies [proxyFile]           Path to a file with json text containing filters to load
    --no-auto-readers               If provided, disables ability to use non-configured readers

    --viewport [1x2560x1440]        Configure viewport {scale}x{maxWidth}x{maxHeight}

Development

To start developing pvw-visualizer, execute the following commands:

$ git clone https://github.com/Kitware/visualizer.git
$ cd visualizer
$ npm install
$ npm run build
$ npm link
$ Visualizer

  Usage: Visualizer [options]

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -p, --port [8080]       Start web server with given port
    -d, --data [directory]  Data directory to serve
    -s, --server-only       Do not open the web browser
    
    --paraview [path]       Provide the ParaView root path to use

Before you commit, please run:

$ npm run build:release

This creates a minified version of the visualizer JavaScript code in dist/Visualizer.js which should be added to your commit.

Licensing

Visualizer aka ParaViewWeb:Visualizer is licensed under BSD Clause 3.

Getting Involved

Fork our repository and do great things. At Kitware, we've been contributing to open-source software for 15 years and counting, and want to make Visualizer useful to as many people as possible.

visualizer's People

Contributors

aronhelser avatar cjh1 avatar jourdain avatar phcerdan avatar scottwittenburg avatar tristanwright avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

visualizer's Issues

use DICOMReaderdirectory can't read directory

I try to use DICOMReaderdirectory to load all dicom files in one directory, but it seems I can't make it

I add DICOMReaderdirectory in proxies config file.

    "readers": [
        { "name": "DICOMReaderdirectory", "extensions": [ "dcm" ], "method": "FileName" }
    ]

and I find a way to hack protocols.py to make it work.

diff ParaView-v5.4.1-RC3/Web/Python/paraview/web/protocols.py protocols.py
1928c1928
<             kw = { customMethod: os.path.dirname(fileToLoad) }
---
>             kw = { customMethod: os.path.dirname(fileToLoad[0]) }

I also find related code in src/paraview/Qt/Core/pqObjectBuilder.cxx

    if (prop->GetHints() && prop->GetHints()->FindNestedElementByName("UseDirectoryName"))
    {
      use_dir = true;
    }

I would like to know if there is formal way make it work without changing protocols.py. For example, give a hint through rest api, or like paraview QtGUI let user to choose "directory or file".

Visualizer binaryImageStream WebSocket url

Hi Sebastien,

In VtkRenderer.js binaryImageStream url is set as
const wsbUrl = ${this.props.connection.urls}b;

That works for urls such as ws://127.0.1:/ws, but does not work for urls such as "ws://54.66.238.9/proxy?sessionId=5bd66ccf-2d58-11e6-9052-06fddeae017d".

Is anything need to change in Web/Python/vtk/web/server.py?

Thanks
Wei

Unable to build on Linux

Am running on an Amazon Linux AMI:
NAME="Amazon Linux AMI"
VERSION="2015.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2015.03"
PRETTY_NAME="Amazon Linux AMI 2015.03"

Running "npm install -g pvw-visualizer" yields

/usr/bin/Visualizer -> /usr/lib/node_modules/pvw-visualizer/bin/pvw-visualizer-cli.js

[email protected] postinstall /usr/lib/node_modules/pvw-visualizer
fix-kw-web-suite || true
sh: fix-kw-web-suite: command not found
/usr/lib
└── [email protected]

password authentication

Hello all,

I tried to set up password authentication for Visualizer by Apache, with the configuration :

<Directory "/var/web/visualizer/www">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
< /Directory>

Sometimes it works, but sometimes no authentication is required. Can someone advise me what should I do?

Thanks!

Alex

Inconsistency between given proxies.json and the ParaView one

When no --proxies are given, ParaView Web use its default one (in Web/Python/paraview/web/_default_proxies.py). This default one is not the same as the default one provided by visualizer in server/proxies.json, as there is an additional line in the visualizer file:
{ "name": "VERAOUTReader", "extensions": [ "h5" ], "method": "FileName" }

Install on Mac OSX Sierra seems incomplete

I have Paraview 5.6.0 and Visualizer 13.1.10 installed on a MAcOSX Sierra system. I have both Python 2.7 and 3.2 installed; both Python versions have 'service_indentity' installed. However, when I try to launch the Visualizer with:

Visualizer --paraview /Applications/paraview.app --data ~/Desktop

I get:

===============================================================================
| Execute:
| $ "/Applications/ParaView-5.6.0.app/Contents/bin/pvpython"
| -dr
| "/usr/local/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py"
| --content
| "/usr/local/lib/node_modules/pvw-visualizer/dist"
| --port
| 8080
| --data
| "/Users/cynthia/Desktop"

:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
wslink: Starting factory
CRITICAL:twisted:wslink: Starting factory

And I have a very small window pop up with the 3 axis icon, but no tab or windows bar. It appears to not be launching properly, and I don't know why the 'service_identity' warning is coming up, when it is indeed installed.

ImportError: cannot import name pv_wslink

hadoop@ubuntu:~/Downloads/visualizer-master$ /usr/local/bin/Visualizer --data /home/hadoop/Downloads/ParaViewData-v4.4.0 --port 8080 --paraview /home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit

===============================================================================
| Execute:
| $ "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython"
| -dr
| "/home/hadoop/Downloads/visualizer-master/server/pvw-visualizer.py"
| --content
| "/home/hadoop/Downloads/visualizer-master/dist"
| --port
| 8080
| --data
| "/home/hadoop/Downloads/ParaViewData-v4.4.0"

Traceback (most recent call last):
File "/home/hadoop/Downloads/visualizer-master/server/pvw-visualizer.py", line 93, in
from paraview.web import pv_wslink
ImportError: cannot import name pv_wslink
hadoop@ubuntu:~/Downloads/visualizer-master$

Cell selection and querying data

Thank you for developing this tool - we have just started playing around with it and have found it very useful. Is it possible to 'select cells' via mouse clicks, and then query the data using something like the 'Find Data' feature in Paraview desktop? Or is there any documentation we could start from in order to implement such a feature?

Thank you.

Visualizer crashes when using JS file webpacked from the master directory

Visualizer crashes when using JS file webpacked from the master directory, but it works well when using the given file Visualizer.js. I didn't make any change in the directory but just webpacked a new one to test the output file of webpack.
The window on the server is crashing like this:
default
And even the file size is different between the webpacked one and the given one (webpack output file is larger)

Live demo?

Is there an active install of Visualizer somewhere with some demo data that can be used to show someone the functionality without having to download and setup an accessible server myself?

Fully working demo - example in repository doesn't work

Hi again!

I've been trying for a few days to just get a basic demo up and running. I was first trying with a Singularity container, and have defaulted back to using the Dockerfile you have under "demo." I am following the instructions and for the life of me I can't get it working. The start command seems to hang:

$ docker run -p 127.0.0.1:8081:80 -ti paraview ws://localhost:8081
Starting/Restarting Apache webserver
 * Restarting Apache httpd web server apache2                                   AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
                                                                         [ OK ]
Starting the wslink launcher

Then the mapping to 127.0.0.1 doesn't work, but I can go to 172.17.0.2, but the links are all dead (permission denied)

image

Then I browse to visualizer, for example, and it waits for a bit that it's loading paraview

image

but ultimately fails:

image

Can you please provide a clean set of commands to reproduce your working demo? Thank you!

Issues starting visualizer

I am trying to launch Visualizer on an ec2 instance (headless Ubuntu 16.04 server), but it's giving me trouble:

Visualizer --paraview /home/ubuntu/apps/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/ -p 9090 -s --viewport [1x1024x860]

===============================================================================
| Execute:
| $ "/home/ubuntu/apps/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython"
|	-dr
|	"/usr/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py"
|	--content
|	"/usr/lib/node_modules/pvw-visualizer/dist"
|	--port
|	9090
|	--data
|	"undefined"
|	--viewport-scale
|	[1
|	--viewport-max-width
|	1024
|	--viewport-max-height
|	860]
===============================================================================

Traceback (most recent call last):
  File "/usr/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py", line 85, in <module>
    from paraview.web import wamp      as pv_wamp
ImportError: cannot import name wamp

exit signal Segmentation fault

Hello,

I am trying to build a flask application which calls paraview, loads VTK files from an OpenFOAM simulation, applies a few filters on it and then saves a statefile. I am running this on AWS EC2 micro instance which does not have gpu support, hence I am using a docker image of pv-osmesa-v5.6.0 to build my paraview.

Upon building my image and running a container I got many "file not found errors", to solve that I downloaded "ParaView-5.6.0-osmesa-MPI-Linux-64bit binaries" and copied that onto my container. I set my PYTHONPATH and LD_LIBRARY_PATHs to point to site-packages modules. That solved the file not found errors, but it gives me a new "exit signal Segmentation fault" :

Wed Apr 10 11:14:32.024814 2019] [mpm_event:notice] [pid 7:tid 139777627867008] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.6.5 Python/3.6 configured -- resuming normal operations [Wed Apr 10 11:14:32.024898 2019] [core:notice] [pid 7:tid 139777627867008] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/mod_wsgi-localhost:9090:999/httpd.conf -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND' [Wed Apr 10 11:14:33.026052 2019] [core:notice] [pid 7:tid 139777627867008] AH00051: child pid 9 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999 [Wed Apr 10 11:14:34.027550 2019] [core:notice] [pid 7:tid 139777627867008] AH00051: child pid 24 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999 [Wed Apr 10 11:14:35.029068 2019] [core:notice] [pid 7:tid 139777627867008] AH00051: child pid 26 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999 [Wed Apr 10 11:14:36.030557 2019] [core:notice] [pid 7:tid 139777627867008] AH00051: child pid 28 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999

I am using python3.6 to build my flask/mod_wsgi application, but I think the paraview build using super build on the osmesa docker image uses python2.7.. I am not sure if this is the source of my error.

This is my Dockerfile:
`ARG BASE_IMAGE=kitware/paraviewweb:pv-osmesa-v5.6.0
FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
USER root

Initial update and upgrade

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y software-properties-common

Install python3.6 through PPA

RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install -y
python3.6
python3.6-dev
python3.6-venv

Install all necessary packages

RUN apt-get install -y
lsof
apache2
apache2-dev
vim
libapache2-mod-wsgi
curl
wget

#Install pip
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3.6 get-pip.py
RUN ln -s /usr/bin/python3.6 /usr/local/bin/python3
RUN ln -s /usr/bin/python3.6 /usr/local/bin/python

pip install necesary python packages

RUN pip install
Flask
flask-restful
boto3
requests
mod_wsgi

###################################################################################

Start dumb_init as pid 1, to prevent any weird behaviour.

ADD https://github.com/Yelp/dumb-init/releases/download/v1.1.1/dumb-init_1.1.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init

Default user is root, which could cause issues in case of a breakout.

RUN groupadd -r niramai && useradd -m -r -g niramai niramai

RUN mkdir -p /home/niramai/postProcess_application

WORKDIR /home/niramai/postProcess_application

RUN ln -fs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py /usr/lib/python2.7/

COPY --chown=niramai:niramai . .

RUN tar -xvzf ParaView-5.6.0-osmesa-MPI-Linux-64bit.tar.gz

ENV LD_LIBRARY_PATH="/home/niramai/postProcess_application/ParaView-5.6.0-osmesa-MPI-Linux-64bit/lib"

ENV PYTHONPATH="/home/niramai/postProcess_application/ParaView-5.6.0-osmesa-MPI-Linux-64bit/lib:/opt/paraview/install/bin:/home/niramai/postProcess_application/ParaView-5.6.0-osmesa-MPI-Linux-64bit/lib/python2.7/site-packages:/home/niramai/postProcess_application/ParaView-5.6.0-osmesa-MPI-Linux-64bit/lib/python2.7/site-packages/vtkmodules"
USER niramai

EXPOSE 9090

CMD ["dumb-init", "mod_wsgi-express", "start-server", "postProcessing_flask.wsgi", "--port", "9090", "--socket-timeout", "600" ]`

I have tried many options as setting permissions to the library directory, setting different paths in PYTHONPATH and LD_LIBRARY_PATH, copying the site-packages and pasting it in /usr/local/lib/ python modules, setting PYTHONPATH explicitly in mod_wsgi command, but none of them seem to work.

I tried having the whole thing use only python2.7, but that gave me a "Time not found error", only on upgrading to python3.6 did it get the necessary .so files and solved that problem.

I am not sure on how to proceed and any suggestion would be greatly appreciated. Looking forward to hearing back from you.

Regards,
Shailesh

Error in new version

on v2.0.18 i have error when start visualizer

ls: no such file or directory: /Applications
ls: no such file or directory: /usr/local/opt/

===============================================================================
| Execute:
| $ "/home/k1ng/Downloads/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/pvpython"
|	-dr
|	"/usr/local/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py"
|	--content
|	"/usr/local/lib/node_modules/pvw-visualizer/dist"
|	--port
|	8080
|	--data
|	"/home/k1ng/parav/data/granata/files"
===============================================================================

2017-02-10 10:43:21+0200 [-] Log opened.
2017-02-10 10:43:21+0200 [-] Traceback (most recent call last):
2017-02-10 10:43:21+0200 [-]   File "/usr/local/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py", line 219, in <module>
2017-02-10 10:43:21+0200 [-]     server.start_webserver(options=args, protocol=_VisualizerServer)
2017-02-10 10:43:21+0200 [-]   File "/home/k1ng/Downloads/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/vtk/web/server.py", line 185, in start_webserver
2017-02-10 10:43:21+0200 [-]     appSession = protocol(types.ComponentConfig(realm = "vtkweb"))
2017-02-10 10:43:21+0200 [-]   File "/home/k1ng/Downloads/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/wamp.py", line 13, in __init__
2017-02-10 10:43:21+0200 [-]     wamp.ServerProtocol.__init__(self, config)
2017-02-10 10:43:21+0200 [-]   File "/home/k1ng/Downloads/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/vtk/web/wamp.py", line 62, in __init__
2017-02-10 10:43:21+0200 [-]     self.initialize()
2017-02-10 10:43:21+0200 [-]   File "/usr/local/lib/node_modules/pvw-visualizer/server/pvw-visualizer.py", line 183, in initialize
2017-02-10 10:43:21+0200 [-]     self.registerVtkWebProtocol(pv_protocols.ParaViewWebViewPort(_VisualizerServer.viewportScale, _VisualizerServer.viewportMaxWidth, _VisualizerServer.viewportMaxHeight))
2017-02-10 10:43:21+0200 [-] TypeError: __init__() takes exactly 1 argument (4 given)

on version 2.0.16 all work fine, what i do wrong?

command to start

Visualizer -d /home/k1ng/parav/data/granata/files --paraview /home/k1ng/Downloads/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/

Server crash w/ image delivery + load state

  1. Create a state file using paraview, just one view should be good

  2. Start the visualizer application in the browser with the --data option pointing to a folder where the state file will be accessible

  3. Load the visualizer application in the browser

  4. Hit '+' and choose 'Wavelet'

  5. Now use the file panel to navigate to the state file you saved in step (1), at this point everything is still ok

  6. Try to interact using the mouse and the server will crash

To avoid the crash, you can switch to local rendering and back to remote rendering before step (6), and then everything seems to be fine from that point onward. When I attach the debugger to the pvpython process, I get the attached output from gdb.

loadStateCrash.txt

:CRITICAL:twisted:Unhandled Error

Hi Jourdain,

As per your suggestion, I was able to install pvw-visualizer from npm.. I could not install wslink inside my docker (it kept saying requirements.txt not found despite my repeated efforts.) So I installed wslink outside and copied the contents onto my container and fed all the paths correctly. But when I run it I get the following error:
CRITICAL:twisted:Unhandled Error Traceback (most recent call last): File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/http.py", line 1588, in dataReceived finishCallback(data[contentLength:]) File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/http.py", line 1980, in _finishRequestBody self.allContentReceived() File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/http.py", line 2059, in allContentReceived req.requestReceived(command, path, version) File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/http.py", line 869, in requestReceived self.process() --- <exception caught here> --- File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/server.py", line 184, in process self.render(resrc) File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/server.py", line 235, in render body = resrc.render(self) File "/postProcess_app/paraview/build/lib/python3.5/site-packages/twisted/web/resource.py", line 250, in render return m(request) File "/postProcess_app/paraview/build/lib/python3.5/site-packages/wslink/launcher.py", line 496, in render_POST payload = json.loads(request.content.getvalue()) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) builtins.TypeError: the JSON object must be str, not 'bytes'

Could you please look into it and let me know on how to proceed. Any suggestion would be greatly appreciated.

Regards,
Shailesh

command "npm run build" failed

I tried to follow the README to do npm run build, but I met error soon.

paraview@ubuntu-16-paraview:~/visualizer$ npm run build

> [email protected] build /home/paraview/visualizer
> fix-autobahn && webpack

sh: 1: webpack: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] build: `fix-autobahn && webpack`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/paraview/.npm/_logs/2017-08-16T09_45_31_948Z-debug.log

Then, I update package.json and add following modules

    "webpack": "1.14.0",
    "babel-preset-es2015": "6.9.0",
    "babel-preset-react": "6.22.0"

I met error related with webpack

> fix-autobahn && webpack

Hash: 35b184ce2e4d48472af0
Version: webpack 1.14.0
Time: 6523ms
                                 Asset     Size  Chunks             Chunk Names
  25a32416abee198dd821b0b17a198a8f.eot  76.5 kB          [emitted]
e6cf7c6ec7c2d6f670ae9d762604cb0b.woff2  71.9 kB          [emitted]
 c8ddf1e5e5bf3682bc7bebf30f394148.woff  90.4 kB          [emitted]
  1dc35d25e61d819a9c357074014867ab.ttf   153 kB          [emitted]
  d7c639084f684d66a1bc66855d193ed8.svg   392 kB          [emitted]
                         Visualizer.js  1.93 MB       0  [emitted]  main
    + 285 hidden modules

ERROR in ./~/[email protected]@paraviewweb/src/React/Renderers/VtkRenderer/index.js
Module parse failed: /home/paraview/visualizer/node_modules/[email protected]@paraviewweb/src/React/Renderers/VtkRenderer/index.js Unexpected token (107:11)
paraview@ubuntu-16-paraview:~/visualizer$ npm version
{ 'pvw-visualizer': '0.0.0-semantically-release',
  npm: '5.3.0',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '58.2',
  modules: '48',
  node: '6.11.2',
  openssl: '1.0.2l',
  uv: '1.11.0',
  v8: '5.1.281.103',
  zlib: '1.2.11' }

I intended to fix --proxies problem as mentioned in #35 , but it seems I blocked by setup dev environment.

Is there a document that I can follow to have good "npm run build'

Cannot display variable for CGNS

Hello all,
First of all, congratulations for your awesome work !
I have an issue when visualising CGNS file:; when switching the representation to "surface", i cannot color by variable, only "solid color" is available
If save my file in vtk format in Paraview, evething works fine
(v5.4.1)

Another question : is this possible (or planned) to have a different color for each block for multi-blocks mesh , like in paraview?

Wavelet constant color or colormap

  • Use the '+' to add a Wavelet source
  • Change to a Volume view
  • Change from 'Solid color' to '(p1) RTData'
  • Use the gear icon to change colormaps - choose one of the first two, solid purple or solid green
    Bug: no change to wavelet display. Is a solid color valid for a wavelet?
    Notice that the wavelet also displays nothing when first changed to Volume view - is 'solid color' valid?

In addition:

  • Use the bookmark icon to display the color scale bar.
    Bug: for a single color colormap nothing displays. For other colormaps a valid scale bar displays.

ImportError: cannot import name pv_wslink

hadoop@ubuntu:~$ /usr/local/bin/Visualizer --data /home/hadoop/Downloads/ParaViewData-v4.4.0 --port 8080 --paraview /home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit

===============================================================================
| Execute:
| $ "/home/hadoop/Downloads/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython"
| -dr
| "/home/hadoop/Downloads/visualizer-master/server/pvw-visualizer.py"
| --content
| "/home/hadoop/Downloads/visualizer-master/dist"
| --port
| 8080
| --data
| "/home/hadoop/Downloads/ParaViewData-v4.4.0"

Traceback (most recent call last):
File "/home/hadoop/Downloads/visualizer-master/server/pvw-visualizer.py", line 93, in
from paraview.web import pv_wslink
ImportError: cannot import name pv_wslink
hadoop@ubuntu:~$

Play does not stop after reaching last iteration and data analysis filters

Hello,

In Visualizer, once I click the play button it does not stop at the last iteration, as it does on the ParaView native application, but it loops back onto the first iteration. How do I enable it to stop after the last iteration?

Also, how do I use data analysis filters like "plot over line"? I have defined a "plot over line" filter in my loaded state file but it does not show on Visualizer. Instead, it shows a wrongly oriented line. Please refer to the below image (in the image I have renamed plot over line as temperature plot).

plot_over_line

Any suggestion would be greatly appreciated.

Regards,
Shailesh

Server crash with image encoder, Windows

On windows 10, ParaView 5.4 version or latest version.

run Visualizer, add a sphere source, and color by 'p3 (Normals)'. The server will intermittently segfault. In the visual studio debugger, it's inside a thread wait().

On the latest version, the segfault is very reliable whenever the "pv.color.manager.lut.image.get" RPC call is made twice in a row, as in the above case.

If I put a import pdb; pdb.set_trace() right before the line b64Str = encoder.EncodeAsBase64Png(imgData, 0) then the crash is avoided.

So what's up with the threaded encoder?

ParaViewWeb Visualizer installation with python3 ParaView binary

Hello,

I built ParaView binaries on python3 but that does not have the python launcher nor the visualiser front end installed in it. Could you please let me know on how to install all the necessary packages to use ParaViewWeb visualizer with the python3 ParaView binaries.

Thanking you,

Regards,
Shailesh

NetCDF - Invalid dimension ID or name

Are NetCDF files supported by the Visualizer? When I try to open a NetCDF file that Paraview opens correctly the Visualizer crashes with the following error:

NetCDF: Invalid dimension ID or name

I am using Visualizer 2.0.18 and Paraview 5.2.0 on Linux.

questions

I have few questions:

  1. does this code work with older paraview installations (5.0)? As far as I can see this is a rewrite on client with react+redux instead of jquery?
  2. is this production ready?
  3. (crosspost from mailing) The web visuailzer should work via npm installation? It does not work for me:
C:\Users\danie\AppData\Roaming\npm\node_modules\pvw-visualizer\bin\pvw-visualizer-cli.js:41
var pvPythonExecs = find(paraview).filter(function(file) { return file.match(/pvpython$/) || file.match(/pvpython.exe$/); });
                                   ^

TypeError: find(...).filter is not a function
    at Object.<anonymous> (C:\Users\danie\AppData\Roaming\npm\node_modules\pvw-visualizer\bin\pvw-visualizer-cli.js:41:36)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

Opening Ensight does not detect time

Hi,

I've been trying to load time-dependent Ensight files into Visualizer and I noticed that it doesn't detect the time series. When I load in ParaView, the time series is detected normally, but not when I open with Visualizer.

Loading a state file doesn't help either.

Will this feature be added at some point?

Thanks,

Arnau

ParaviewWeb and Amazon EC2 instance

Hi,

Thanks to Jourdain I was able to set up Visualizer and load a state file on my local machine (Ubuntu 16.04). I am trying to have the same set up on an Amazon EC2 Ubuntu 16.04 server instance, without any GPU or display. I followed the set up as suggested by http://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html
using ParaView-5.6.0-osmesa-MPI-Linux-64bit.tar.gz binary. When I launch paraviewWeb using
=> http://IP_of_the_Amazon_instance/visualizer

I get the following error:
[Fri Jan 18 05:34:48.541489 2019] [proxy_http:error] [pid 2721:tid 140617541936896] (70007)The timeout specified has expired: [client xx.xx.xx.xx:8522] AH01102: error reading status line from remote server localhost:8080, referer: http://xx.xx.xx.xx/?data=stateFile.pvsm
[Fri Jan 18 05:34:48.541540 2019] [proxy:error] [pid 2721:tid 140617541936896] [client xx.xx.xx.xx:8522] AH00898: Error reading from remote server returned by /paraview/, referer: http://xx.xx.xx.xx/?data=stateFile.pvsm
[Fri Jan 18 07:02:17.092040 2019] [proxy_http:error] [pid 6017:tid 140079620159232] (70007)The timeout specified has expired: [client xx.xx.xx.xx:7474] AH01102: error reading status line from remote server localhost:8080, referer: http://xx.xx.xx.xx/?data=stateFile.pvsm
[Fri Jan 18 07:02:17.092090 2019] [proxy:error] [pid 6017:tid 140079620159232] [client xx.xx.xx.xx:7474] AH00898: Error reading from remote server returned by /paraview/, referer: http://xx.xx.xx.xx/?data=stateFile.pvsm

From this document:
https://www.paraview.org/pipermail/paraview/2014-September/032085.html
I understood that for instances without a graphics card, it is not possible to use the binary installation of Paraview and you'll need to compile ParaView yourself with support for OSMesa, following this documentation.
https://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D

On another documentation,
https://public.kitware.com/pipermail/paraview/2013-December/030237.html
it was stated that: the machine should be able to run an x server. So, I tried to enable x11 forwarding by installing xorg using
sudo apt-get install xorg openbox
which successfully installed.

I am very new to this domain and the thought of building ParaView with the support of OSMesa from scratch is scary, is there a way to configure ParaView OSMesa binary to work with an EC2 instance without GPU and display? Like some configuration options where we can set DISPLAY to null, or something like this.

I am sorry for such a silly question, but I am completely new to this and any suggestion would be greatly appreciated.

Thanks and Regards,
Shailesh

Strange scene visualization when Remote Rendering is turned off

Hello all,

I found out that when I load scene to Visualizer and I turn the Remote Rendering off, the entire scene gets strange visualization, plus the legends and text disappear. Please see my printscreens below. When I turn the Remote Rendering back on, I can see again the correct scene visualization.

Remote Rendering on
capture

Remote Rendering off
capture2

Do you have any idea what is wrong?

Thank you for your help

Mariana

Unable to build on Windows

I followed the instructions in the Readme on how to build with npm, however when the build runs it gets an error on the "fix-autobahn && webpack" step. I get the same error when trying to build ParaviewWeb. The error is below:

[email protected] build C:\visualizer\visualizer
fix-autobahn && webpack

path.js:146
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.win32.resolve (path.js:146:13)
at Object. (C:\visualizer\visualizer\node_modules\paraviewweb\tools\fix-autobahn\patch-autobahn-0.9.6-cli.js:10:23)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v0.12.2
npm ERR! npm v3.8.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: fix-autobahn && webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'fix-autobahn && webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pvw-visualizer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! fix-autobahn && webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pvw-visualizer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pvw-visualizer
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\visualizer\visualizer\npm-debug.log

pvpython server stops by itself

Hi,

Is there any reason why the pvpython server stops by itself after some time (around 3 or 5 minutes) without getting any request??
This behaviour happens in the light-viz application just by running the server script and let it be for 5 minutes.
I think is more related to wslink , but I couldnt find any helpful link.
Appreciate the help.

Auto-load data and 'scene' (or state) on launch

For me, a main motivation of using visualizer is to be able to share simulation results with a collaborator without them needing the hardware or software to open the data. Because of this we need to assume that the collaborator is also not familiar with ParaView.

What I'd like to do is preload a dataset in a saved state (e.g. using .pvsm). I've found documentation for visualizer regarding installation but not regarding usage. Could you please point me in the right direction?

Also, does visualizer accept all of the same input file types as ParaView? If not, is there a comprehensive list somewhere saying which types are compatible?

Add a cone and slice filter, crash server

  • Load Visualizer.
  • Use the '+' to add a Cone
  • Use the '+' to add a Slice
    Result: Server crashes with a segfault. On Windows, this includes:

Expression: vector subscript out of range

The python log of the server includes, 7 timies:

Caught exception setting domain values in apply_domains:
'vtkPVServerManagerCorePython.vtkSMBoundsDomain' object has no attribute 'SetDomainValues'

This case should either be handled or disallowed in the UI.

Volume rendering, --proxies

Hi all,

Paraviewweb/Visualizer is a very useful tool for demonstration and communication between collaborators working on a project. Here are some problems when testing Visualizer :

(1) I tried to visualize volume data (4 unsigned char components : RGB + opacity) with Visualizer ( the version in ParaView-5.5.0-Qt5-MPI-Linux-64bit), the file is loaded correctly in Visualizer, I uncheck the checkbox "Map Scalars" so that it can directly interpret colors, but I cannot get right volume rendering, it seems that for the opacity it chooses Magnitude instead of taking the last component. I also tried with the nightly build version (ParaView-5.5.0-342-g968ff44-Qt5-MPI-Linux-64bit), which has a new checkbox "Multi Components Mapping" for multi component array, but checked or not, it does not solve the problem. However the visualization works perfectly on Paraview. Could you advise me what to do?

(2) Is it possible to start Visualizer with different defaut settings (check or uncheck checkboxes, specify background color, etc)?

(3) It is interesting to be able to add other readers and filters via the --proxies option, but strangely it crashes, even with the defaut proxies :

/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/bin/pvpython -dr /home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py --content /home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/www/ --port 8080 --data /home/alex/dev/Data/ --proxies /home/alex/dev/test/defaut_proxies.json
Traceback (most recent call last):
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py", line 241, in <module>
    server.start_webserver(options=args, protocol=_VisualizerServer)
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/wslink/server.py", line 180, in start_webserver
    wslinkServer = protocol()
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/pv_wslink.py", line 12, in __init__
    vtk_wslink.ServerProtocol.__init__(self)
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/vtkmodules/web/wslink.py", line 44, in __init__
    websocket.ServerProtocol.__init__(self)
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/wslink/websocket.py", line 62, in __init__
    self.initialize()
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py", line 192, in initialize
    self.registerVtkWebProtocol(pv_protocols.ParaViewWebProxyManager(allowedProxiesFile=_VisualizerServer.proxies, baseDir=_VisualizerServer.dataDir, fileToLoad=_VisualizerServer.fileToLoad, allowUnconfiguredReaders=_VisualizerServer.allReaders))
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/protocols.py", line 1597, in __init__
    self.readAllowedProxies(allowedProxiesFile)
  File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/protocols.py", line 1632, in readAllowedProxies
    with open(filepath, 'r') as fd:
NameError: global name 'filepath' is not defined

All suggestions and answers are welcome!

Alex

ParaViewWeb: session did not start when timeout expired

Hello,
I am working with OpenFOAM simulations on Ubuntu 16.04, the paraview which I have is paraviewopenfoam54 which came coupled with OpenFOAM5. This paraview has a slightly different folder structure than of the downloadable paraview binaries.

I followed this documentation to set up a paraViewWeb server instance: http://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html

These are my configuration files

  1. launcher.json
    {
    "resources": [ {"port_range": [9001, 9103], "host": "localhost"} ],
    "sessionData": {
    "updir": "/Home"
    },

    "configuration": {
    "log_dir": "/data/pvw/logs",
    "host": "localhost",
    "endpoint": "paraview",
    "sessionURL": "ws://shailesh-office/proxy?sessionId=${id}&path=ws",
    "timeout": 25,
    "upload_dir": "/data/pvw/upload",
    "fields": ["file", "host", "port", "updir"],
    "port": 8080,
    "proxy_file": "/data/proxy.txt"
    },
    "properties": {
    "web_path": "/data/pv/pv-current/lib/paraview-5.4/site-packages/paraview/web",
    "dataDir": "/data/pvw/data/simulation",
    "python_exec": "/data/pv/pv-current/bin/pvpython"
    },
    "apps": {
    "visualizer": {
    "cmd": [
    "${python_exec}",
    "-dr",
    "${web_path}/visualizer/server/pvw-visualizer.py",
    "--port", "${port}",
    "--data", "${dataDir}",
    "-f",
    "--authKey", "${secret}"
    ],
    "ready_line" : "Starting factory"
    },
    "lightviz": {
    "cmd": [
    "${python_exec}",
    "-dr",
    "${web_path}/lightviz/server/pvw-light-viz.py",
    "--port", "${port}",
    "--data", "${dataDir}",
    "-f",
    "--authKey", "${secret}"
    ],
    "ready_line" : "Starting factory"
    }
    }
    }

  2. Apache config file
    <VirtualHost *:80>
    ServerName shailesh-office
    ServerAdmin [email protected]
    DocumentRoot /data/www

    ErrorLog /data/logs/error.log
    CustomLog /data/logs/access.log combined

    <Directory /data/www>
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride None
    Require all granted

    Handle launcher forwarding

    ProxyPass /paraview http://localhost:8080/paraview

    Handle WebSocket forwarding

    RewriteEngine On
    RewriteMap session-to-port txt:/home/shailesh/mappingFileDirectory/proxy.txt
    RewriteCond %{QUERY_STRING} ^sessionId=(.)&path=(.)$ [NC]
    RewriteRule ^/proxy.*$ ws://${session-to-port:%1}/%2 [P]

  3. Launcher start file: start.sh
    #!/bin/bash
    export DISPLAY=:0.0
    /data/pv/pv-current/bin/pvpython /data/pv/pv-current/lib/paraview-5.4/site-packages/vtk/web/launcher.py /data/pvw/conf/launcher.json &

I have double checked the directory structure changes in accordance with paraviewopenfoam54.

When I run http://shailesh-office/visualizer/ in my web browser,
I get the following error: "Session did not start before timeout expired"

This is my launcher log file
2018-12-26 17:30:49,279:INFO:twisted:"127.0.0.1" - - [26/Dec/2018:12:00:48 +0000] "POST /paraview/ HTTP/1.1" 503 78 "http://shailesh-office/visualizer/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
2018-12-26 17:31:49,281:INFO:twisted:Timing out client: IPv4Address(TCP, '127.0.0.1', 59766)

Could you please let me know of what my error is, I am completely new to this domain so I am finding it hard to proceed from here.

Thanks and regards,
Shailesh

Customizing Visualizer App

Hi,

I am working on Paraview and its web applications such as LightViz, Visualizer.
I want to know, from where exactly I can customize the Visualizer application?
Customization regards to the addition of a button/text or changing entire UI.
I have tried changing js files from React/Widgets directory of paraviewweb, but found no changes were reflected. May I know where exact files are located?

Thanks in advance!!!

Regards,
Sagar

Unwanted zoom-out change while loading state file (.pvsm)

Hi all,

I have scene in Paraview which looks like this (the data are zoomed in)
scene_paraview

When I export this scene to .pvsm file and I load this .pvsm file in Visualizer I get the same view as in Paraview but unfortunately the same view lasts only for 1-2 seconds. Then the zoom is changed by itself (probably to fit all the data to the window) and I get this:
scene_visualizer

Is there any way to keep the initial zoom, so the Visualizer wouldn't automatically zoom out the scene?

Thank you

Mariana

TypeError: __init__() got an unexpected keyword argument 'showBuiltin'

Hi I cloned the code and installed, built. When I run Visualizer, I get the following error:

Visualizer -p 8181 --paraview /Applications/3D-Software/ParaView-5.5.0.app -d ~/Develop/data

:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.

Traceback (most recent call last):
File "/Users/ssy/Develop/visualizer/server/pvw-visualizer.py", line 243, in
server.start_webserver(options=args, protocol=_VisualizerServer)
File "/Applications/3D-Software/ParaView-5.5.0.app/Contents/Python/wslink/server.py", line 180, in start_webserver
wslinkServer = protocol()
File "/Applications/3D-Software/ParaView-5.5.0.app/Contents/Python/paraview/web/pv_wslink.py", line 12, in init
vtk_wslink.ServerProtocol.init(self)
File "/Applications/3D-Software/ParaView-5.5.0.app/Contents/Python/vtkmodules/web/wslink.py", line 44, in init
websocket.ServerProtocol.init(self)
File "/Applications/3D-Software/ParaView-5.5.0.app/Contents/Python/wslink/websocket.py", line 62, in init
self.initialize()
File "/Users/ssy/Develop/visualizer/server/pvw-visualizer.py", line 195, in initialize
self.registerVtkWebProtocol(pv_protocols.ParaViewWebColorManager(pathToColorMaps=_VisualizerServer.colorPalette, showBuiltin=_VisualizerServer.showBuiltin))
TypeError: init() got an unexpected keyword argument 'showBuiltin'

how to use texture

Is there this component in the 2.2 version? Similar to the texture component in parview

Adding more filters and readers

Hi all,

I am trying to add more filters and readers to Visualizer. I have created file named filter.json, see below:

    "sources": [
        { "name": "AnnotateTime", "label": "Annotate Time" },
        { "name": "Cone" },
        { "name": "Sphere" },
        { "name": "Text" },
        { "name": "Wavelet" }
    ],

    "filters": [
        { "name": "Calculator" },
        { "name": "CellDatatoPointData", "label": "Cell Data To Point Data" },
        { "name": "Clip" },
        { "name": "Contour" },
        { "name": "D3" },
        { "name": "ExtractCTHParts", "label": "Extract CTH Parts" },
        { "name": "MaskPoints", "label": "Mask Points" },
        { "name": "ProcessIdScalars", "label": "Process ID Scalars" },
        { "name": "Reflect" },
        { "name": "Slice" },
        { "name": "StreamTracer", "label": "Stream Tracer" },
        { "name": "Threshold" },
        { "name": "Transform" },
        { "name": "Tube" },
        { "name": "Ribbon" },
        { "name": "Volume", "label": "Volume" },
        { "name": "WarpByScalar", "label": "Warp By Scalar" },
        { "name": "WarpByVector", "label": "Warp By Vector" },
        { "name": "ExtractBlock", "label": "Extract Blocks" }
    ],

    "readers": [
        { "name": "LegacyVTKReader", "extensions": [ "vtk" ], "method": "FileNames" },
        { "name": "Xdmf3ReaderS", "extensions": [ "xmf", "xdmf" ] }
    ]
}

I am starting the Visualizer like this:
./node_modules/.bin/Visualizer --paraview ../ParaView-5.4.1-RC2-Qt5-OpenGL2-MPI-Linux-64bit/ --data ../vtk/ --proxies ../filter.json

But when I open Visualizer in my browser I don't see any changes. Can you advise me what should I do differently?

I was also wondering if I can add functionalities like "go to first frame", "go to last frame", or "manually type frame number" by adding them to this filter.json file. If yes, could you please advise me what I should type there?
I saw that you had these functions implemented in Visualizer 4 years ago, based on your video here, so I assume that it has to be somehow possible to implement these functionalities.

Thank you

Mariana

Error: Cannot import vtkPVAnimation while building ParaView with python 3

Hello,

I have been at this issue for quite some time now. But still, I am not getting a way to successfully build ParaView with python3.
I followed the documentation at https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md

This is my cmake command:
cmake -GNinja ../ -DPARAVIEW_BUILD_QT_GUI=OFF -DPARAVIEW_USE_MPI=ON -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_ENABLE_WEB=ON -DPARAVIEW_BUILD_ALL_MODULES=OFF -DPARAVIEW_USE_MPI_SSEND=ON -DPARAVIEW_USE_ICE_T=ON -DPARAVIEW_USE_QTHELP=OFF -DENABLE_osmesa:BOOL=ON -DENABLE_qt5:BOOL=OFF -DENABLE_ffmpeg:BOOL=ON`

After building I get this error:
`Error: Cannot import vtkPVAnimation'

I require vtkPVAnimation because I am using GetAnimationScene() and UpdateAnimationUsingDataTimeSteps() functions, after using LegacyVTKReader to load vtk data from openFoam simulation.

To check if the files have been built, I did a diff between the vtkmodules in the python2.7 built official binary and the vtkmodules which I have built. I found that my build has these many files missing. Here . represents the vtkmodules drectory of the official binaries

`Only in .: vtkPVAnimation.py
Only in .: vtkPVAnimationPython.so
Only in .: vtkPVCatalyst.py
Only in .: vtkPVCatalystPython.so
Only in .: vtkPVClientServerCoreCore.py
Only in .: vtkPVClientServerCoreCorePython.so
Only in .: vtkPVClientServerCoreDefault.py
Only in .: vtkPVClientServerCoreDefaultPython.so
Only in .: vtkPVClientServerCoreRendering.py
Only in .: vtkPVClientServerCoreRenderingPython.so
Only in .: vtkPVCommon.py
Only in .: vtkPVCommonPython.so
Only in .: vtkPVPythonAlgorithm.py
Only in .: vtkPVPythonAlgorithmPython.so
Only in .: vtkPVPythonCatalystPython.so
Only in .: vtkPVServerImplementationCore.py
Only in .: vtkPVServerImplementationCorePython.so
Only in .: vtkPVServerImplementationRendering.py
Only in .: vtkPVServerImplementationRenderingPython.so
Only in .: vtkPVServerManagerApplication.py
Only in .: vtkPVServerManagerApplicationPython.so
Only in .: vtkPVServerManagerCore.py
Only in .: vtkPVServerManagerCorePython.so
Only in .: vtkPVServerManagerDefault.py
Only in .: vtkPVServerManagerDefaultPython.so
Only in .: vtkPVServerManagerRendering.py
Only in .: vtkPVServerManagerRenderingPython.so
Only in .: vtkParaViewWebCore.py
Only in .: vtkClientServer.py
Only in .: vtkClientServerPython.so
Only in .: vtkPythonInterpreter.py
Only in .: vtkPythonInterpreterPython.so
Only in .: vtkRenderingParallelLIC.py
Only in .: vtkRenderingParallelLICPython.so'

And many other files which I have explicitly switched off in my build as I do not require them (like vtk extensions.)

I have been playing around with many build options, which I thought was related to this, but to no use.
Could you please let me know which build setting I have to enable so that vtkPVAnimation is built in this setting. Any suggestion would be greatly appreciated.

Regards,
Shailesh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.