You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-s...@googlegroups.com
Hello
I downloaded Sage and Cplex and I connected the two software together: When I tried to run a sage file using load keyword load("filename") I faced the following error
ImportError: No module named cplex_backend
Please help me to fix the error
Thanks Mohammed
Vincent Delecroix
unread,
Jul 9, 2014, 11:17:33 AM7/9/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-s...@googlegroups.com
Hello,
It seems that there is written something like
import cplex_backend
and that cplex_backend does not exist... could you send the complete traceback?
/home/stagiaire/Téléchargements/sage-6.2-i686-Linux/local/lib/python2.7/site-packages/sage/structure/sage_object.so in sage.structure.sage_object.load (sage/structure/sage_object.c:9540)()
/home/stagiaire/Téléchargements/sage-6.2-i686-Linux/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1771 # Preparse in memory only for speed. 1772 exec_file_is(fpath) -> 1773 exec preparse_file(open(fpath).read()) + "\n" in globals 1774 elif fpath.endswith('.spyx') or fpath.endswith('.pyx'): 1775 exec_file_is(fpath)
<string> in <module>()
/home/stagiaire/Téléchargements/sage-6.2-i686-Linux/local/lib/python2.7/site-packages/sage/numerical/mip.so in sage.numerical.mip.MixedIntegerLinearProgram.__init__ (sage/numerical/mip.c:1871)()
/home/stagiaire/Téléchargements/sage-6.2-i686-Linux/local/lib/python2.7/site-packages/sage/numerical/backends/generic_backend.so in sage.numerical.backends.generic_backend.get_solver (sage/numerical/backends/generic_backend.c:7638)()
/home/stagiaire/Téléchargements/sage-6.2-i686-Linux/local/lib/python2.7/site-packages/sage/numerical/backends/generic_backend.so in sage.numerical.backends.generic_backend.get_solver (sage/numerical/backends/generic_backend.c:7396)()
ImportError: No module named cplex_backend
Thank you for your help
Vincent Delecroix
unread,
Jul 10, 2014, 5:22:50 AM7/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-s...@googlegroups.com
I got the same problem (on sage-6.1)
{{{
sage: from sage.numerical.backends.generic_backend import get_solver
sage: get_solver(solver="Cplex")
Traceback (most recent call last):
...