Coder Social home page Coder Social logo

Comments (4)

joakim-hove avatar joakim-hove commented on August 17, 2024

Well;

as the error message says the python module can not locate the underlying shared library libecl.so - and why is that is not immediately clear to me. If you find the location of the libecl.sofile you can set the LD_LIBRARY_PATHvariable to point there:

export LD_LIBRARY_PATH=/path/to/libecl/library

That being said something was slightly broken with the 2017.10 version of the libecl packages. For Python and plotting with summaryplot you can just download and build your own version; it is quite simple:

git clone [email protected]:Statoil/libecl
cd libecl
mkdir build ; cd build
cmake .. -DENABLE_PYTHON=ON -DCMAKE_INSTALL_PREFFIX=$HOME/libecl/install
make 
make install

Then you can set PYTHONPATH=$HOME/llibecl/install/lib/python2.7/dist-packages and things should work.

The Python bindings in the libecl distribution are quite well maintained, and generally work well. However the summaryplot in opm-utilities is not equally well maintained; and you might have to make some changes there as well. I'd be happy to assist you.

For something more feature complete you could give Resinsight a try, that will also show 3D fields like pressure and saturations.

from resdata.

pgdr avatar pgdr commented on August 17, 2024

Or perhaps sudo make install is simpler if you want to avoid path managing

from resdata.

Shrikantspatil avatar Shrikantspatil commented on August 17, 2024

Thank you so much for the guidance ! I followed the above mentioned set of instructions, but i now i am getting a new error:

ubuntu@ubuntu-xenial:~/opm-data-master/spe1$ python summaryplot WBHP:INJ WBHP:PROD WOPR:PROD WGPR:PROD WGIR:INJ SPE1CASE1.DATA
Menu: 'q' = quit, 'r' = reload plots
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "summaryplot", line 344, in summaryplotter
fig = pyplot.figure()
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 527, in figure
**kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 84, in new_figure_manager
return new_figure_manager_given_figure(num, figure)
File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 92, in new_figure_manager_given_figure
window = Tk.Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: no display name and no $DISPLAY environment variable

how can I fix this ?

Joakim,

I like ResInsight, but I am trying to automate the generation of graphs, so that with one command the system will display a list of graphs for me. Can ResInsight do something like that ?

from resdata.

pinkwah avatar pinkwah commented on August 17, 2024

Closing due to age. Looks like a Linux environment issue rather than anything in libecl.

from resdata.

Related Issues (20)

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.