Ask Your Question
2

ImportError: libec.so.3: cannot open shared object file: No such file or directory

asked 2018-04-01 04:52:12 +0100

Ps2 gravatar image

updated 2018-04-05 01:50:39 +0100

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: libec.so.3: 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/mwrank.so: undefined symbol: _Z10initprimesSsi

Thank you in advance.

edit retag flag offensive close merge delete

Comments

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

slelievre gravatar imageslelievre ( 2018-04-01 14:39:09 +0100 )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-05 01:44:59 +0100 )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 10:36:04 +0100 )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-11 02:44:54 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-04-07 02:03:35 +0100

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 "libec.so*"

You will see some libec.so.4 not libec.so.3

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 libec.so.4.0.0 libec.so.3
edit flag offensive delete link more

Comments

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

Ps2 gravatar imagePs2 ( 2018-04-11 02:50:03 +0100 )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

Stats

Asked: 2018-04-01 04:52:12 +0100

Seen: 1,481 times

Last updated: Apr 07 '18