You should extend the generated package.json file with the following set of scripts. $ mkdir MyWebProjectĬreating your own project Webpack config const path = require( 'path') Ĭonst HtmlWebpackPlugin = require( 'html-webpack-plugin') Ĭonst rules = require( './node_modules/paraviewweb/config/') Ĭonst entry = path.join(_dirname, './src/index.js') Ĭonst outputPath = path.join(_dirname, './dist') Ĭonst styles = path.resolve( './node_modules/paraviewweb/style') This documentation will explain how to create a new Web project that can leverage ParaViewWeb. Getting ParaViewWeb source code for contributing $ git clone Once all the requirements are installed, you can install Hexo with npm. $ nvm install 4Īlternatively, download and run the installer. Once nvm is installed, restart the terminal and run the following command to install Node.js. The best way to install Node.js is with nvm. Linux (Fedora, Red Hat, CentOS): sudo yum install git-core. ![]() Linux (Ubuntu, Debian): sudo apt-get install git-core.Mac: Install it with Homebrew, MacPorts or installer.After Xcode is installed, open Xcode and go to Preferences -> Download -> Command Line Tools -> Install to install command line tools. Please install Xcode from App Store first. You may encounter some problems when compiling. If not, please follow the following instructions to install all the requirements. If your computer already has these, congratulations! Just install ParaViewWeb with npm: $ npm install paraviewweb -save However, you do need to have a couple of other things installed first: Installing ParaViewWeb as a dependency inside your Web project is quite easy. If you encounter a problem and can’t find the solution here, please submit a GitHub issue and I’ll try to solve it. It only takes few minutes to set up ParaViewWeb. makeParaView -python -mpi -python-lib /usr/lib/libpython2. somewhere between 30 minutes to 2 hours or more. ParaViewWeb is a Web framework that can leverage ParaView and VTK to build interactive application Now, in order to build ParaView 5.4.0, including with the ability to use Python and MPI, several steps are needed: For building ParaView with Python and MPI, run: cd WMTHIRDPARTYDIR this will take a while. If you encounter any problems when using ParaViewWeb, have a look at the troubleshooting guide, raise an issue on GitHub or start a topic on the Mailing list. I removed vtk with apt but it is still here.Welcome to the ParaViewWeb documentation. Where vtkCommonComputationalGeometry.so is but it does not work.įurthermore, if I try to locate vtkCommonComputationalGeometry, I find it in another location: /usr/lib/x86_64-linux-gnu/libvtkCommonComputationalGeometry-6.2.so I tried to set LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/home/paraview/lib Then, I rerun my script and I get a different error message: Error: Could not import vtkCommonComputationalGeometry ![]() So, I set my PYTHONPATH like this: export PYTHONPATH=/home/paraview/lib/python2.7/site-packages:$PYTHONPATH ModuleNotFoundError: No module named 'paraview' I get the following error message: Traceback (most recent call last): I followed the steps explained in paraview: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directoryand the error went away, only to be replaced with the error that I wrote at the start of this question. If I do not anything more than running the script with python test.py So, I downloaded it from the official webpage and I uncompressed the corresponding archive into a folder, say /home/paraview. ![]() I want to use the last version of paraview. I try to run a python script (test.py) containing this line only: from paraview.simple import *
0 Comments
Leave a Reply. |