Error when starting python3
Glenn Ramsey
gr at componic.co.nz
Sun Sep 20 02:14:42 PDT 2015
Hi Aljaž,
On 14/09/15 22:46, Aljaž Srebrnič wrote:
>> 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
Neither of those had any output.
I installed python 3.4, which worked OK, and then reinstalled 3.5rc4 and it
works now. It must have been some sort of configuration issue as you suggested.
Thanks for your reply.
Glenn
More information about the macports-users
mailing list