Comments (11)
Initially, when I opened this issue, I thought the issue was paraview not being able to find the modules, maybe because of different versions of python. Then by your suggestion, I understood that I can directly use only the downloaded osmesa binary, which simplified my work. After which now I realize that the issue is with mod_wsgi.
Very sorry to have wasted your time and thank you for your patience. Please let me know of how to delete this issue as it might not be of use to anyone. I am closing the issue.
from visualizer.
Just use the downloaded version of osmesa paraview inside your own container without starting with the pv base one.
from visualizer.
Hello Jourdain,
Thank you for your response, I removed the line
ARG BASE_IMAGE=kitware/paraviewweb:pv-osmesa-v5.6.0
and replaced it with
ARG BASE_IMAGE=ubuntu:16.04
, so that use the downloaded version of osmesa and neglect the built pv base image.
But I still get the same error.
[Wed Apr 10 15:12:18.201926 2019] [mpm_event:notice] [pid 6:tid 140012321695616] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.6.5 Python/3.6 configured -- resuming normal operations [Wed Apr 10 15:12:18.201997 2019] [core:notice] [pid 6:tid 140012321695616] 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 15:12:19.203142 2019] [core:notice] [pid 6:tid 140012321695616] AH00051: child pid 8 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999 [Wed Apr 10 15:12:20.204622 2019] [core:notice] [pid 6:tid 140012321695616] AH00051: child pid 23 exit signal Segmentation fault (11), possible coredump in /tmp/mod_wsgi-localhost:9090:999
Regards,
Shailesh
from visualizer.
What is the command that trigger that segfault. That's not clear to me.
from visualizer.
That error is triggered by the mod_wsgi-express start server command, which provides an apache module for hosting the flask application. The command in the docker file is:
CMD ["dumb-init", "mod_wsgi-express", "start-server", "postProcessing_flask.wsgi", "--port", "9090", "--socket-timeout", "600" ]
which starts the server listening to port 9090.
Thanks and regards,
Shailesh
from visualizer.
How is that related to ParaView or Visualizer?
from visualizer.
Hello Jourdain,
Sorry to disturb you again but I am stuck with a dilemma here and could really use some suggestions from you.
For the application which I am trying to build I need to compile ParaView with python 3.
The official binaries and the docker images all have ParaView compiled with python 2. Compiling ParaView on my own against Python 3 is a very scary option for me. Is there any other way?
Looking forward to hearing back from you.
Regards,
Shailesh
from visualizer.
No, someone need to build ParaView with Python 3.
Feel free to post on the ParaView discourse to request binaries for Python 3.
from visualizer.
from visualizer.
Aslo since it will be for a ParaViewWeb application, you don't need Qt but either EGL or OSMesa.
from visualizer.
Very sorry for such a late reply. Thank you for the documentation, following that I obtained the source and got all the prerequisites ready. I did not want to deviate much from the default build settings, so I only changed these variables:
cmake ../ -DPARAVIEW_BUILD_QT_GUI=OFF -DPARAVIEW_USE_MPI=ON -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_ENABLE_WEB=ON
I could successfully build this using Ninja, but I get the following error:
`[Tue Apr 30 11:25:27.120804 2019] [mpm_event:notice] [pid 1:tid 140375490279296] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.6.5 Python/3.6 configured -- resuming normal operations
[Tue Apr 30 11:25:27.120872 2019] [core:notice] [pid 1:tid 140375490279296] 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'
[Tue Apr 30 11:25:27.752476 2019] [wsgi:error] [pid 164:tid 140375490279296] Error: Cannot import vtkPVAnimation
[Tue Apr 30 11:26:08.563378 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] [2019-04-30 11:26:08,561] ERROR in app: Exception on /postProcess [POST]
[Tue Apr 30 11:26:08.563405 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] Traceback (most recent call last):
[Tue Apr 30 11:26:08.563410 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
[Tue Apr 30 11:26:08.563414 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] rv = self.dispatch_request()
[Tue Apr 30 11:26:08.563417 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
[Tue Apr 30 11:26:08.563414 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] rv = self.dispatch_request()
[Tue Apr 30 11:26:08.563417 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
[Tue Apr 30 11:26:08.563421 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] return self.view_functionsrule.endpoint
[Tue Apr 30 11:26:08.563425 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 458, in wrapper
[Tue Apr 30 11:26:08.563429 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] resp = resource(*args, **kwargs)
[Tue Apr 30 11:26:08.563432 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask/views.py", line 88, in view
[Tue Apr 30 11:26:08.563436 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] return self.dispatch_request(*args, **kwargs)
[Tue Apr 30 11:26:08.563439 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 573, in dispatch_request
[Tue Apr 30 11:26:08.563443 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] resp = meth(*args, **kwargs)
[Tue Apr 30 11:26:08.563446 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/postProcess_app/postProcessing_flask.py", line 15, in post
[Tue Apr 30 11:26:08.563450 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] call_paraview()
[Tue Apr 30 11:26:08.563453 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] File "/postProcess_app/postProcessing.py", line 26, in call_paraview
[Tue Apr 30 11:26:08.563457 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] animationScene1.UpdateAnimationUsingDataTimeSteps()
[Tue Apr 30 11:26:08.563462 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312] AttributeError: 'NoneType' object has no attribute 'UpdateAnimationUsingDataTimeSteps'
[Tue Apr 30 11:26:08.563489 2019] [wsgi:error] [pid 164:tid 140374181582592] [remote 106.51.23.138:12312]`
I tried to manually copy vtkPVAnimation.py from the official python2.7 paraview binaries, but that did not work. I tried to search which build setting relates to PVAnimation so that I can switch it off (I do not require animation at this moment), but I could not find it.
As per this https://public.kitware.com/pipermail/paraview/2015-May/034180.html
It was suggested to add the path to PYTHONPATH, which I have already done.
Could you please let me know which build setting I have to modify and is there documentation giving us a list of all build parameters so that I can keep that as a reference for future errors.
Thanks and regards,
Shailesh
from visualizer.
Related Issues (20)
- Uncaught TypeError: Cannot read properties of undefined (reading 'releaseFocus') HOT 1
- "Server disconnected" after "Loading paraview" on browser HOT 2
- Installation Issue HOT 2
- Remote rendering image disappearance problem HOT 3
- "--ws-endpoint" take no effect HOT 5
- Can't build Visualizer in development HOT 7
- I want to make short cut function in Visualizer HOT 2
- error when trying to import pvw-visualizer HOT 7
- Visualizing components of a vector HOT 6
- CSVReader not importing dataset? HOT 17
- Modifying Visualizer HOT 2
- Paraview web visualizer as a component within another web app HOT 4
- Deploying paraview web visualizer using Flask HOT 2
- Can't load state with layout split in multiple RenderViews HOT 15
- mpirun paraview with Visulizer HOT 2
- Can't customize visualizer project! HOT 4
- Provide option to set `sessionURL` in pvw-visualizer.py HOT 4
- Warning: componentWillReceiveProps, componentDidMount
- Server Disconneted and not showing anything HOT 5
- Incorrect syntax to start ParaView Web Visualizer in documentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visualizer.