On 05/01/2014 08:28 PM, Sandeep wrote:
Hi

I am running spyder2.2.5 on Linux Mint 16 KDE installed via
spyder_2.2.5+dfsg-1_all.deb. I am facing a strange error.

If I run spyder via typing in the command from the terminal. Spyder runs
fine.

/Python 2.7.5+ (default, Sep 19 2013, 13:48:49) /
/[GCC 4.8.1] on linux2/
/Type "help", "copyright", "credits" or "license" for more information./
/>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py',
wdir=r'/opt/gurobi562/linux64/examples/python')/
/Optimize a model with 2 rows, 3 columns and 5 nonzeros/
/Found heuristic solution: objective 2/
/Presolve removed 2 rows and 3 columns/
/Presolve time: 0.00s/
/
/
/Explored 0 nodes (0 simplex iterations) in 0.00 seconds/
/Thread count was 1 (of 4 available processors)/
/
/
/Optimal solution found (tolerance 1.00e-04)/
/Best objective 3.000000000000e+00, best bound 3.000000000000e+00, gap 0.0%/
/x 1/
/y 0/
/z 1/
/Obj: 3/
/>>> /

However if I run via a shortcut created from the Linux custom shortcuts
menu, I get a package loading error

/Python 2.7.5+ (default, Sep 19 2013, 13:48:49) /
/[GCC 4.8.1] on linux2/
/Type "help", "copyright", "credits" or "license" for more information./
/>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py',
wdir=r'/opt/gurobi562/linux64/examples/python')/
/Traceback (most recent call last):/
/  File "<stdin>", line 1, in <module>/
/  File
"/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py",
line 540, in runfile/
/    execfile(filename, namespace)/
/  File "/opt/gurobi562/linux64/examples/python/mip1.py", line 13, in
<module>/
/    from gurobipy import */
/ImportError: libgurobi56.so: cannot open shared object file: No such
file or directory/
 >>>

I have ensured that there is only one installation of spyder by
uninstalling, checking and doing a clean reinstall, still I have the
same problem


Not sure if it is an issue with spyder or with my linux installation Any
ideas?

Looks like a PATH problem to me. In each console do:

import sys
sys.path

That should show what each console is seeing by way of a PYTHONPATH. This is assuming libgurobi56.so is installed with the rest of the gurobi package.


Sandeep

--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
[email protected]

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to