Kitware / visualizer

The ParaViewWeb Visualizer application which can be used standalone or as a component within another web context.
https://kitware.github.io/visualizer/
BSD 3-Clause "New" or "Revised" License
115 stars 28 forks source link

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

Closed shariefyoussef closed 6 years ago

shariefyoussef commented 6 years ago

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'

jourdain commented 6 years ago

Visualizer 3.1.4 is the one compatible with 5.5. For Visualizer 3.1.5, you need paraview/master.

The compatibility table is available here

Trophime commented 6 years ago

What about Visualizer 3.1.10? Is it compatible with ParaView 5.6.0?

jourdain commented 6 years ago

Yes, that's probably the one that get's bundle inside the ParaView binaries.

Trophime commented 6 years ago

Thanks.

I still have an other question (maybe stupid one) Following the docs I've tried: Visualizer --paraview /Applications/paraview.app --data dir where dir is the directory with my results (ensigth case)

But I got only an "empty" window... I'm wondering what kind of argument is actually requirered for data. It's not clear for me. Could you provide some data to check the install?

jourdain commented 6 years ago

The dir path needs to be absolute and only provide a root directory for you to browse. Are you trying to pre-load a file or just let the user pick the file they want from that root directory?

Trophime commented 6 years ago

Right now I would like to check if it's working... I could start with pre-load a file but The ideal situation would be that the user pick the file they want from that directory

jourdain commented 6 years ago

Ok so, I believe the issue was that you were not using a full path for the --data argument. Unless you don't know how to load a file from the Web UI after the application is starting?

Trophime commented 6 years ago

Actually, I don't understand how to load a file.

jourdain commented 6 years ago

Ok then click on the icon that looks like a file. The panel will change to a list with all the files and directories that are below the specified directory on the server side. visualizer

Trophime commented 6 years ago

The point is I don't see any icons. What I've got looks like that: visualizer

I've created a dockerfile (build with latest mesa 18.2.4) for Visualizer. Then start the container interactively and just run Visualizer ...

jourdain commented 6 years ago

Wait what? You should probably start a new thread explaining what you did. This is definitely off that __init__() error topic.

When you use our docker image with Visualizer, you don't need to run the Visualizer command line. The docker give you a web server that you need to access via your browser.

When you run that command line, it looks like a server is running on http://localhost:8080/.

Trophime commented 6 years ago

When you use our docker image with Viasualizer

Actually I've not found the docker for that part so I've tried to create my own... that's why... Is the Visualizer docker image publicly available?

jourdain commented 6 years ago

Yes, you can even use our latest demo one which provide all the other webapps at the same time that are bundled within ParaView binaries.

The images are available here: https://hub.docker.com/r/kitware/paraviewweb/tags/

The documentation on how to use the visualizer one is available here: http://kitware.github.io/paraviewweb/docs/ec2.html

If you use pvw-egl-demo-v5.6.0 you will have a full web server with a welcome page and all the web apps.

Trophime commented 6 years ago

Thanks a lot.