Hi Alex, You need to install curses on your homebrew Python. I don't know much about OS X but I think on my MacBook system Python already has this installed. So if you're using a custom Python I guess you'll need to install the headers for ncurses (the C library) and then build Python against that.
Sorry I can't be of more help but I'm not very good with OS X - perhaps somebody with more knowledge than me can help. Good luck. :) On 25 September 2012 17:40, Alex Popescu <[email protected]> wrote: > Hi guys, > > I've got bpython running on my Mac OS X 10.8.2 with Python 2.7.3. I also > installed it for Python 2.5.6, but when running bpython I get an exception > and it doesn't start: > > [code] > Traceback (most recent call last): > File "/Users/alex/.pythonbrew/pythons/Python-2.5.6/bin/bpython", line 9, > in <module> > load_entry_point('bpython==0.11', 'console_scripts', 'bpython')() > File > "/Users/alex/.pythonbrew/pythons/Python-2.5.6/lib/python2.5/site-packages/distribute-0.6.27-py2.5.egg/pkg_resources.py", > line 337, in load_entry_point > return get_distribution(dist).load_entry_point(group, name) > File > "/Users/alex/.pythonbrew/pythons/Python-2.5.6/lib/python2.5/site-packages/distribute-0.6.27-py2.5.egg/pkg_resources.py", > line 2307, in load_entry_point > return ep.load() > File > "/Users/alex/.pythonbrew/pythons/Python-2.5.6/lib/python2.5/site-packages/distribute-0.6.27-py2.5.egg/pkg_resources.py", > line 2017, in load > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > File > "/Users/alex/.pythonbrew/pythons/Python-2.5.6/lib/python2.5/site-packages/bpython-0.11-py2.5.egg/bpython/cli.py", > line 47, in <module> > import curses > File > "/Users/alex/.pythonbrew/pythons/Python-2.5.6/lib/python2.5/curses/__init__.py", > line 15, in <module> > from _curses import * > ImportError: No module named _curses > [/code] > > Has anyone seen this before? Is there a workaround for it? > > tia, > > A:// > > -- > You received this message because you are subscribed to the Google Groups > "bpython" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/bpython/-/uBPCVllrimgJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/bpython?hl=en. -- You received this message because you are subscribed to the Google Groups "bpython" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/bpython?hl=en.
