Ask Your Question

ImportError during installation on MacOS 10.11.6

asked 2016-09-25 00:37:47 +0100

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/", line 7, in <module>
    import argparse
  File "/Applications/", line 85, in <module>
    import collections as _collections
  File "/Applications/", line 9, in <module>
    from operator import itemgetter as _itemgetter, eq as _eq
ImportError: dlopen(/Applications/, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
  Referenced from: /Applications/
  Expected in: flat namespace
 in /Applications/

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

answered 2016-09-25 06:05:49 +0100

A similar error has been reported before:

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


Uninstalling Anaconda helped, thanks!

Kirill23 gravatar imageKirill23 ( 2016-09-25 21:45:27 +0100 )edit

answered 2016-09-25 16:32:00 +0100

slelievre gravatar image

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


Asked: 2016-09-25 00:37:47 +0100

Seen: 230 times

Last updated: Sep 25 '16