Error when starting python3

Aljaž Srebrnič g5pw at macports.org
Mon Sep 14 03:46:29 PDT 2015


> On 14/set/2015, at 05:55, Glenn Ramsey <gr at componic.co.nz> wrote:
> 
> Hi All,
> 
> I get this error when starting python3:
> 
> $ python3
> Python 3.5.0rc4 (default, Sep 14 2015, 13:58:59)
> [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> Failed calling sys.__interactivehook__
> Traceback (most recent call last):
>  File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py",
> line 380, in register_readline
>    import rlcompleter
>  File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/rlcompleter.py",
> line 167, in <module>
>    readline.set_completer(Completer().complete)
> AttributeError: module 'readline' has no attribute 'set_completer'
> 
> Do I need to install a dependency or is this a bug?

This looks like a configuration issue on your end, it works on my machine.
Could you post the output of:

echo $PYTHONSTARTUP

and

cat $PYTHONSTARTUP

Thanks,
Aljaž
--
Aljaž Srebrnič a.k.a g5pw
My public key:  http://bit.ly/g5pw_pubkey



More information about the macports-users mailing list