he's on an experimental Gentoo distribution of Sage, that most probably uses the system Python rather than the Sage's Python. So this means that the system Python needs to be rebuilt, probably
On Aug 18, 2:33 am, Carl Witty <carl.wi...@gmail.com> wrote: > On Mon, Aug 16, 2010 at 1:22 PM, Jay <jul...@grayvines.com> wrote: > > Hi! > > > Yes, bpython is quite wonderful :). > > > If I try to `easy_install bpython` from within a sage subshell I get > > > ... (Full traceback if you'd like) > > ImportError: /opt/sage/local/lib/python2.6/lib-dynload/operator.so: > > undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString > > > which incidentally is the same error as I get if I try to change > > LD_LIBRARY_PATH from outside a subshell. If I try to run > > This error almost certainly means you're trying to mix a module > compiled for a wide-Unicode Python build with a narrow-Unicode Python. > Sage's Python is unconditionally built with wide-Unicode; if your > system Python is narrow-Unicode, then you'll never be able to use your > distribution's extension modules with Sage's Python, or vice versa. > > I'm not sure how it's happening, though. If you're in a sage > subshell, then "which python" should be Sage's python, and your system > python should never be involved in the easy_install. > > Do you have any extra environment variables set? (Did you change your > PATH or PYTHONPATH while you were in the Sage subshell?) In your sage > subshell, what do you get if you type: > which python > which easy_install > ? > > Carl -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org