Ask Your Question

ImportError: cannot open shared object file: No such file or directory

asked 2018-03-31 21:52:12 -0500

Ps2 gravatar image

updated 2018-04-04 18:50:39 -0500

I installed sage through conda in a new conda environment. Now whenever I try to run sage, it crashes. In the crash report I see the following error

ImportError: cannot open shared object file: No such file or directory

So I installed the libec-dev manually throgh apt install commmand. Now when I try to run sage, it crashes with this error

ImportError: /home/user_name/miniconda3/envs/Wsage/lib/python2.7/site-packages/sage/libs/eclib/ undefined symbol: _Z10initprimesSsi

Thank you in advance.

edit retag flag offensive close merge delete


Did you follow the instructions on the Conda wiki page of the Sage wiki?

slelievre gravatar imageslelievre ( 2018-04-01 07:39:09 -0500 )edit

Yes, I did. Also, sage notebook won't open either. sage-python does open . The error will appear if I enter from sage import all.

Ps2 gravatar imagePs2 ( 2018-04-04 18:44:59 -0500 )edit

Could you please give us some informations so that someone can try to reproduce your problem:

  • which OS are you using ?
  • which commands did you type precisely until you reached the error ?
  • did you get some message during the install ?
  • ... ?
tmonteil gravatar imagetmonteil ( 2018-04-05 03:36:04 -0500 )edit
  • Ubuntu 17.10
    • I installed sage in a new conda environment using conda -forge install sage. So when I activate the environment and enter sage , I get the error.
    • Nope.
Ps2 gravatar imagePs2 ( 2018-04-10 19:44:54 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-06 19:03:35 -0500

tmonteil gravatar image

I can reproduce your problem. It seems that there is somewhere a version mismatch. Indeed, you can try the following command (from your terminal):

find /home/user_name/miniconda3/ -name "*"

You will see some not

This should be fixdd upstream, thanks for reporting. A temporary workaround (that might lead to problems somewhere in Sage) is:

cd miniconda3/envs/sage/lib
ln -s
edit flag offensive delete link more


This solution worked. Thank you(and everyone else) for your help. I hope this problem gets fixed soon.

Ps2 gravatar imagePs2 ( 2018-04-10 19:50:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-03-31 21:52:12 -0500

Seen: 62 times

Last updated: Apr 06