[Dip] error when using dippy

Ted Ralphs ted at lehigh.edu
Tue Aug 19 15:44:03 EDT 2014


Hi Hugh,

I actually thought I had compiled the Linux version statically, which would
mean you wouldn't even need to install Dip, but apparently I did not.

In any case, the solution to your problem should be pretty easy. You just
need to either install Dip in a location that's in your system library path
(/usr/local/lib should usually be one such location) or set the variable
LD_LIBRARY_PATH to the directory where you installed DIP (by default, this
would be the lib/directory in the root of the directory where built DIP,
probably the same as where the DIP source code lives). In bash, do

export LD_LIBRARY_PATH=path/to/dir

and everything should work!

By the way, if you've built Dip successfully, it might be better to just
build Dippy and install it, too, since that way, you can be assured of
compatibility. If you just go into the Dip subdirectory and do

python setup.py install

that should do the trick (you will need to set LD_LIBRARY_PATH, though).

Cheers,

Ted


On Tue, Aug 19, 2014 at 10:35 AM, Hugh Medal <hugh.medal at msstate.edu> wrote:

> I am getting this stack trace error when I try to use dippy. Do you have
> any suggestions? I am using Fedora Linux with python 2.7.5. I installed Dip
> without any errors.
>
> hmedal at ws113-16:~/software/Dip-0.82.0$ python
> Python 2.7.5 (default, Jun 25 2014, 10:19:55)
> [GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import coinor.dippy
> /usr/lib/python2.7/site-packages/pkg_resources.py:979: UserWarning:
> /home/hmedal/.python-eggs is writable by group/others and vulnerable to
> attack when used with get_resource_filename. Consider a more secure
> location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment
> variable).
>   warnings.warn(msg, UserWarning)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/usr/lib/python2.7/site-packages/coinor.dippy-1.9.9-py2.7-linux-x86_64.egg/coinor/dippy/__init__.py",
> line 8, in <module>
>   File
> "/usr/lib/python2.7/site-packages/coinor.dippy-1.9.9-py2.7-linux-x86_64.egg/coinor/dippy/dippy.py",
> line 12, in <module>
>   File
> "/usr/lib/python2.7/site-packages/coinor.dippy-1.9.9-py2.7-linux-x86_64.egg/_dippy.py",
> line 7, in <module>
>   File
> "/usr/lib/python2.7/site-packages/coinor.dippy-1.9.9-py2.7-linux-x86_64.egg/_dippy.py",
> line 6, in __bootstrap__
> ImportError: libDecomp.so.1: cannot open shared object file: No such file
> or directory
>
>
> Thanks,
> Hugh
>
> --
> *Hugh Medal*
> Assistant Professor
> Industrial and Systems Engineering
> Mississippi State University
> Office: 260K McCain
> Office: 662-325-3923
> Email: hmedal at i <hmedal at uark.edu>se.msstate.edu
> Website: hm568.ise.msstate.edu
> Office hours: http://hughmedal.youcanbook.me
>
> _______________________________________________
> Dip mailing list
> Dip at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/dip
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/dip/attachments/20140819/6d7a8112/attachment.html>


More information about the Dip mailing list