Ask Your Question
0

ImportError during installation on MacOS 10.11.6

asked 2016-09-24 17:37:47 -0500

Kirill23 gravatar image

I'm trying to install Sage 7.3 for MacOS 10.11.6, and I get the following error:

 RecursionError: maximum recursion depth exceeded during compilation
Traceback (most recent call last):
  File "/Applications/SageMath-7.3.app/Contents/Resources/sage/src/bin/sage-notebook", line 7, in <module>
    import argparse
  File "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python/argparse.py", line 85, in <module>
    import collections as _collections
  File "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python/collections.py", line 9, in <module>
    from operator import itemgetter as _itemgetter, eq as _eq
ImportError: dlopen(/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
  Referenced from: /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
  Expected in: flat namespace
 in /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so

Any ideas how to resolve it? I've seen anaconda might cause some issues with installation, is it the case here?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-24 23:05:49 -0500

A similar error has been reported before: https://ask.sagemath.org/question/328...

The answer then was to uninstall Anaconda, but the OP didn't verify if that worked. Please try that and let us know if it resolves the issue.

edit flag offensive delete link more

Comments

Uninstalling Anaconda helped, thanks!

Kirill23 gravatar imageKirill23 ( 2016-09-25 14:45:27 -0500 )edit
0

answered 2016-09-25 09:32:00 -0500

You are trying to install 7.3 for OS X 10.11.6... how? by building from source?

Do you have Fink, Homebrew or MacPorts installed? Or Anaconda?

Try cleaning up your PATH so that they are not found. For instance, type this before typing make.

export PATH='/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin'
edit flag offensive delete link more

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: 2016-09-24 17:37:47 -0500

Seen: 51 times

Last updated: Sep 25 '16